Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-14 Thread Jan Engelhardt
On May 11 2007 19:14, H. Peter Anvin wrote: >David Miller wrote: >> >> All ports above and including 1024 are non-privileged and available to >> anyone. >> >> Applications which have some requirements in this area need to work >> those things out themselves. > >However, there are a large number

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-14 Thread Jan Engelhardt
On May 11 2007 19:14, H. Peter Anvin wrote: David Miller wrote: All ports above and including 1024 are non-privileged and available to anyone. Applications which have some requirements in this area need to work those things out themselves. However, there are a large number of

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Alan Cox
> > I think the IANA range is considered too small in most cases; I > > suspect there is also a feeling that "there be dragons" near the very > > top. > > Ok, thanks for the explanation. Sounds like we're using high port > numbers in the "spirit" of the IANA recommendation, without using > their

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Mark Glines
On Sat, 12 May 2007 12:12:38 -0700 "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > Mark Glines wrote: > > > > Well, in that case, is there anything wrong with just using the > > range IANA recommends, in all cases? > > > > I think the IANA range is considered too small in most cases; I > suspect

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Alan Cox
> Well, in that case, is there anything wrong with just using the > range IANA recommends, in all cases? > > Please consider this patch instead of my previous one. Please send this patch to the netdev list and CC the relevant networking maintainer. Alan - To unsubscribe from this list: send the

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread H. Peter Anvin
Mark Glines wrote: > > Well, in that case, is there anything wrong with just using the > range IANA recommends, in all cases? > I think the IANA range is considered too small in most cases; I suspect there is also a feeling that "there be dragons" near the very top. -hpa - To

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Mark Glines
On Fri, 11 May 2007 19:12:15 -0700 "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > > Following the principle of least astonishment, I think it seems > > better to use high, out-of-the-way port numbers regardless of how > > much RAM the system has. So, the following patch changes this > > behavior

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Mark Glines
On Fri, 11 May 2007 19:12:15 -0700 H. Peter Anvin [EMAIL PROTECTED] wrote: Following the principle of least astonishment, I think it seems better to use high, out-of-the-way port numbers regardless of how much RAM the system has. So, the following patch changes this behavior slightly. The

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread H. Peter Anvin
Mark Glines wrote: Well, in that case, is there anything wrong with just using the range IANA recommends, in all cases? I think the IANA range is considered too small in most cases; I suspect there is also a feeling that there be dragons near the very top. -hpa - To unsubscribe

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Alan Cox
Well, in that case, is there anything wrong with just using the range IANA recommends, in all cases? Please consider this patch instead of my previous one. Please send this patch to the netdev list and CC the relevant networking maintainer. Alan - To unsubscribe from this list: send the

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Mark Glines
On Sat, 12 May 2007 12:12:38 -0700 H. Peter Anvin [EMAIL PROTECTED] wrote: Mark Glines wrote: Well, in that case, is there anything wrong with just using the range IANA recommends, in all cases? I think the IANA range is considered too small in most cases; I suspect there is also a

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-12 Thread Alan Cox
I think the IANA range is considered too small in most cases; I suspect there is also a feeling that there be dragons near the very top. Ok, thanks for the explanation. Sounds like we're using high port numbers in the spirit of the IANA recommendation, without using their actual

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > However, there are a large number of applications which have registered > ports in this range. And some application who request random listening ports actually query the /etc/services file to ensure it is a "unnamed" port. Gruss Bernd - To unsubscribe

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread H. Peter Anvin
David Miller wrote: > > All ports above and including 1024 are non-privileged and available to > anyone. > > Applications which have some requirements in this area need to work > those things out themselves. However, there are a large number of applications which have registered ports in this

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread H. Peter Anvin
Mark Glines wrote: > > By a one-in-a-million coincidence, this machine has a default port > range starting with 2048, and this breaks things for me. I'm trying to > run both klive and nfs on this box, but klive starts first (probably > because of the filename sort order), and claims UDP port

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Mark Glines
On Sat, 12 May 2007 00:06:45 UTC David Miller <[EMAIL PROTECTED]> wrote: > All ports above and including 1024 are non-privileged and available to > anyone. > > Applications which have some requirements in this area need to work > those things out themselves. Hi David, I agree completely. My

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread David Miller
From: Mark Glines <[EMAIL PROTECTED]> Date: Fri, 11 May 2007 17:01:35 -0700 > Following the principle of least astonishment, I think it seems better > to use high, out-of-the-way port numbers regardless of how much RAM the > system has. So, the following patch changes this behavior slightly. >

[patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Mark Glines
On a powerpc machine (kurobox) I have here with 128M of RAM, the default value of /proc/sys/net/ipv4/ip_local_port_range is: 20484999 This setting affects the port assigned to an application by default when the application doesn't specify a port to use, like, for instance, an outgoing

[patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Mark Glines
On a powerpc machine (kurobox) I have here with 128M of RAM, the default value of /proc/sys/net/ipv4/ip_local_port_range is: 20484999 This setting affects the port assigned to an application by default when the application doesn't specify a port to use, like, for instance, an outgoing

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread David Miller
From: Mark Glines [EMAIL PROTECTED] Date: Fri, 11 May 2007 17:01:35 -0700 Following the principle of least astonishment, I think it seems better to use high, out-of-the-way port numbers regardless of how much RAM the system has. So, the following patch changes this behavior slightly. The

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Mark Glines
On Sat, 12 May 2007 00:06:45 UTC David Miller [EMAIL PROTECTED] wrote: All ports above and including 1024 are non-privileged and available to anyone. Applications which have some requirements in this area need to work those things out themselves. Hi David, I agree completely. My issue is

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread H. Peter Anvin
Mark Glines wrote: By a one-in-a-million coincidence, this machine has a default port range starting with 2048, and this breaks things for me. I'm trying to run both klive and nfs on this box, but klive starts first (probably because of the filename sort order), and claims UDP port 2049 for

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread H. Peter Anvin
David Miller wrote: All ports above and including 1024 are non-privileged and available to anyone. Applications which have some requirements in this area need to work those things out themselves. However, there are a large number of applications which have registered ports in this range.

Re: [patch] ip_local_port_range sysctl has annoying default

2007-05-11 Thread Bernd Eckenfels
In article [EMAIL PROTECTED] you wrote: However, there are a large number of applications which have registered ports in this range. And some application who request random listening ports actually query the /etc/services file to ensure it is a unnamed port. Gruss Bernd - To unsubscribe from