Re: [2.2.18] outgoing connections getting stuck in SYN_SENT

Eric Lammerts (eric@lammerts.org)
Wed, 24 Jan 2001 22:39:06 +0100 (CET)


On 24 Jan 2001, Mark Longair wrote:
> It turned out that this was caused by using autofw to forward a range
> of ports (2300-2400 in this case.) It seems that these ports aren't
> reserved in any way, so eventually the server tries to use one as a
> local port on an outgoing connection.
>
> I'm looking at finding fix for that.

Tell the kernel to use a different range for automatically
assigned ports, that doesn't conflict with your forwarded ports.
For example:
echo "49152 59999" >/proc/sys/net/ipv4/ip_local_port_range

Eric

-- 
Eric Lammerts <eric@lammerts.org> | The best way to accelerate a computer
http://www.lammerts.org           | running Windows is at 9.8 m/s^2.

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