The “bdflush” parameters
[root@deep /]# echo “32768 61000″ > /proc/sys/net/ipv4/ip_local_port_range
Add the above commands to the 7etc/rc.d/rc.local” script file and you’ll not have to type it again the next time you reboot your system.
Under Red Hat Linux 6.2
Edit the 7etc/sysctl.conf file and add the following line:
# Allowed local port range net.ipv4.ip_local_port_range = 32768 61000
You must restart your network for the change to take effect. The command to restart the network is the following:
• To restart all network devices manually on your system, use the following command: [root@deep /]# /etc/rc.d/init.d/network restart
Setting network parameters [ OK ]
Bringing up interface lo [ OK ]
Bringing up interface ethO [ OK ]
Bringing up interface eth1 [ OK ]
The “/etc/nsswitch.conf” file
The 7etc/nsswitch.conf” file is used to configure which services are to be used to determine information such as hostnames, password files, and group files. The two last ones, “password files”, and “group files” in our case are not used, since we don’t use NIS services on our server. Thus, we will focus on the “hosts” line in this file.
Edit the nsswitch.conf file (vi /etc/nsswitch.conf) and change the “hosts” line to read: “hosts: dns files”
Which means, for programs that want to resolve an address. They should use the dns feature first, and the “/etc/hosts” file if the DNS servers are not available or can’t resolve the address.
Also, we would recommend deleting all instances of NIS services from each line of this file unless you are using NIS! The result should look like this:
passwd: files
shadow: files
group: files
hosts: dns files
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
automount: files
aliases: files