Mailing List Archive

How can I enlarge the useful port number?
Now I use a computer send our request to
LVS director. I find that in my client machine it
uses the port number between 1024 - 4096. After
it reaches the 4096, it will loop back to 1024
and reuse the port. I want to use more port nubmers
instead of just 1024 - 4096. How can I change it.

Another problem is I want to change the time out
of the director after it receives FIN for each
connection. I use IP tunneling in my configuration.
Seems the timeout table is in ip_masq.c. Is that right?

Thanks.

Wang Haiguang
Re: How can I enlarge the useful port number? [ In reply to ]
On Tue, Feb 06, 2001 at 02:47:35PM +0800, Wang Haiguang wrote:
> Another problem is I want to change the time out
> of the director after it receives FIN for each
> connection. I use IP tunneling in my configuration.
> Seems the timeout table is in ip_masq.c. Is that right?

You can change the timeouts at run-time using "ipchains -S".
See the ipchains man page for more information.

--
Horms
Re: How can I enlarge the useful port number? [ In reply to ]
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range

/usr/src/linux/Documentation/networking/ip-sysctl.txt

On Tue, 6 Feb 2001, Wang Haiguang wrote:

>
> Now I use a computer send our request to
> LVS director. I find that in my client machine it
> uses the port number between 1024 - 4096. After
> it reaches the 4096, it will loop back to 1024
> and reuse the port. I want to use more port nubmers
> instead of just 1024 - 4096. How can I change it.
>
> Another problem is I want to change the time out
> of the director after it receives FIN for each
> connection. I use IP tunneling in my configuration.
> Seems the timeout table is in ip_masq.c. Is that right?
>
> Thanks.
>
> Wang Haiguang
>
>
>
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>