Category Archives: Networking

Linux : How to add a network static route

Here is the traditional way to set static route on Linux OS. route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 The best way to make it permanent, is to add the gateway directly to the interface by editing the interface script : /etc/sysconfig/networking/devices/ifcfg-eth0 add : GATEWAY=192.168.1.1 To remove a static route : route del -net… Read More »

Windows : Adding a permanent static route

Follow these steps to add a permanent static route to Windows. 1. Open the command prompt (must be done as administrator). 2. Enter the following command and replace with your network information : route -p add <NETWORK_IP> mask <NETMASK> <GATEWAY_IP> Let’s explain in details with the following IP information… assume we want to add a… Read More »

Samba : Unable to connect to CUPS server, connection refused

You may notify in /var/log/messages the following error about smbd daemon regarding the cupsd printing service : smbd[5955]: [2011/05/13 15:03:59, 0] printing/print_cups.c:cups_connect(69) May 13 15:03:59 neptune smbd[5955]:   Unable to connect to CUPS server localhost:631 – Connection refused This occur when the service is disabled.  If you do not have a printer and do not want… Read More »

nTop : Install from rpmforge failed to start

After upgrading to latest version or update your existing well working nTop, you may expect this error when starting nTop by doing “service ntop start”. # service ntop start Starting ntop:    Processing file /etc/ntop.conf for parameters… Mon Nov 24 23:56:36 2008  NOTE: Interface merge enabled by default Mon Nov 24 23:56:36 2008  Initializing gdbm databases… Read More »

FTP : File transfer failed but permission correct

FTP Server complain about this error: Command:    STOR upload_test.txt Response:    150 Ok to send data. Response:    451 Failure writing to local file. Error:    File transfer failed   The operation failed to complete even if file permission are correct.  Most of the time on unix ftp servers such as vsFTPd, this may indicate that the user’s… Read More »

Remote Desktop : stop working after Windows Update

This happen after updating to Windows XP Service Pack 3 or Windows Server 2003 SP2: Microsoft added a security feature to disable RDP if Windows Firewall is disabled. Enable Windows Firewall and add exception for Remote Desktop Protocol (TCP-3389) to get it working. (Also make sure that the Windows Terminal Service is started if problem… Read More »

FTP : connection failed to LIST, Failed to retrieve directory listing

The following error occured/hang trying to connect to FTP server: Status:    Connected Status:    Retrieving directory listing… Command:    PWD Response:    257 “/” Command:    TYPE I Response:    200 Switching to Binary mode. Command:    PASV Response:    227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,xx) Command:    LIST Error:    Connection timed out Error:    Failed to retrieve directory listing This is probably because you… Read More »

Mail : SPF Record for Blackberry SMTP servers

Using SPF record restrict the hosts allowed to send message on your behalf. If you are using Blackberry device, all your e-mail are relayed through RIM servers. So to make delivery successful, you need to allow their servers. Add the following to your DNS text string to allow RIM servers to send out e-mails with… Read More »