Thursday, July 31, 2008

ip_local_port_range

The following command modifies the file /proc/sys/net/ipv4/ip_local_port_range.
Some times I can not directly write to the file in proc. But this works:

$ sudo sysctl -w net.ipv4.ip_local_port_range="1024 64000"