On Wed, Jul 17, 2002, Iftach Hyams wrote about "RE: Disabaling (UDP/IP) ports for system use :": > >> # cat /proc/sys/net/ipv4/ip_local_port_range > >> 32768 61000 > For me it is 1024 4099
Yes, this is usually the default, meaning that ephemeral ports (ports chosen arbitrarily when the user does not specify a specific port number) will only be from 1024 to 4099. As far as I know, if you're doing NAT on your machine you should keep the maximum value in ip_local_port_range below 32768 - as ports above 32768 are used when doing NAT. > I understand those are ports the system will give automaticaly. Yes. > >> # echo LOWEST_PORT HIGHEST_PORT > ip_local_port_range > What service should I restart if any ? None, this effects the kernel immediately. > Will it last the after reboot ? No, it won't. On Redhat systems (for example) to set these values through reboots, you normally add a line to /etc/sysctl.conf, such as (untested:) net.ipv4.ip_local_port_range = 1024 12345 This file is read during the boot process, using the sysctl(8) tool. -- Nadav Har'El | Wednesday, Jul 17 2002, 8 Av 5762 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |I considered atheism but there weren't http://nadav.harel.org.il |enough holidays. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]