Networking Forums

Networking Forums > Computer Networking > Linux Networking > Limit maximum TCP connections for NAT connection

Reply
Thread Tools Display Modes

Limit maximum TCP connections for NAT connection

 
 
Frank
Guest
Posts: n/a

 
      08-23-2006, 04:31 PM
Hi,

How can I limit the number of TCP connections that can be served per NAT
(masquerade) host?
Some induviduals on our network tend to p2p like hell.


Regards,


Frank
 
Reply With Quote
 
 
 
 
buck
Guest
Posts: n/a

 
      08-23-2006, 07:17 PM
On Wed, 23 Aug 2006 18:31:23 +0200, Frank <(E-Mail Removed)> wrote:

>Hi,
>
>How can I limit the number of TCP connections that can be served per NAT
> (masquerade) host?
>Some induviduals on our network tend to p2p like hell.
>
>
>Regards,
>
>
>Frank


Probably what you want is a combination of MATCH RECENT and CONNLIMIT
in the FORWARD chain of iptables. In comp.os.linux.security you will
find much about limiting SSH and the same applies for any service or
connection. However, with p2p you can't select by port, so you may
need to look into Layer 7 methods that track p2p.

I use RECENT and CONNLIMIT for FTP, SSH and SMTP but not HTTP because
limiting HTTP causes Apache to fill my logs with 408 timeout messages.
I just DROP file sharing packets because that's "play" and company
policy is to allow only business use of its net connection.
--
buck

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
maximum TCP/IP connections Marek Windows Networking 0 01-23-2008 07:38 AM
Routing and Remote Access - Maximum ports limit power159 Windows Networking 0 11-13-2006 06:11 PM
Maximum outbound connections ? Pierrot Robert Windows Networking 0 01-12-2006 01:08 PM
Maximum number of connections MedTech Windows Networking 2 08-20-2005 06:25 PM
MN-700 - Maximum Number of Connections TC Broadband Hardware 2 02-16-2004 01:30 AM



1 2 3 4 5 6 7 8 9 10 11