Re: ip local port range

From: H. Peter Anvin (hpa@zytor.com)
Date: Wed Jun 21 2000 - 18:23:48 EST


Followup to: <395137FD.3F9DF0F@lifeline.nl>
By author: Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
In newsgroup: linux.dev.kernel
>
> David Ford wrote:
>
> > It's even more trivial if you do this:
> >
> > echo "51024 54999" > /proc/sys/net/ipv4/ip_local_port_range
> >
>
> Actually I did :
>
> echo "net.ipv4.ip_local_port_range = 51024 54999" >> /etc/sysctl.conf
> sysctl -p
>
> Sorry I did not mention I know how to work around the default configuration. I
> just feel it would be nicer if Linux does the right thing right out of the box.
> The current setting leads to random failures of applications expecting to get
> their reserved port. The IANA reserved port list isn't there for nothing ! ;-)
>

What you're suggesting is more broken that what Linux does, because
you only allow 3976 local ports. By default, Linux allows 28233
(32768..61000); if you want to be strictly IANA compliant that should
be 49152..61000 or somesuch.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:23 EST