2

Limiting OUTBOUND TCP Connections to single IP

view story
linux-howto

http://forums.fedoraforum.org – I'm having a problem that seems to plague a lot of people judging from my research on the web. I have a hosting provider that limits the number of incoming connections to the shared host to 50 per IP. I have a single IP for outbound connections and I use Squid as a proxy server. Lately I've tripped across the 50 connection limit frequently - and that's with only 1 user. It seems the problem is related to the performance you can get out of a desktop these days. Its not impossible to have several browsers open with several connections to different sites on the same server - and boom - locked out! So it occurred to me that there must be some way to limit the number of outbound connections in the kernel - but I've not found it. I did find that Microsoft had been limiting the number of outbound connections in XP to 10 to address the virus problem, and I've found countless hosting complaints and dialog on the subject with no easy solution. So my question is simply, does anyone know how to limit the number of OUTBOUND connections to a single IP in the kernel? Len (HowTos)