Re: Limit number of outgoing connections

This is a discussion on Re: Limit number of outgoing connections within the IPFilter forums, part of the System Security and Security Related category; Toomas Aas wrote: > Hello! > > I have an internal network behind a gateway running ipfilter/ipnat. Is > ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-22-2006
Darren Reed
 
Posts: n/a
Default Re: Limit number of outgoing connections

Toomas Aas wrote:
> Hello!
>
> I have an internal network behind a gateway running ipfilter/ipnat. Is
> it possible to limit the number of simultaneous outgoing connections
> per internal client? For example, if some client runs something like
> eMule or bittorrent it creates a lot of outgoing connections which are
> passed by a 'keep state' filter rule, and I'm afraid it fills up the
> state table.


You can define a limit per-rule, like this:

pass in proto tcp from any to any port 6881:6889 flags S keep state
(limit 10)
pass out proto tcp from any to any port 6881:6889 flags S keep state
(limit 10)

To limit inbound and outbound bittorrent connections to 10 each.
You can also over commit with rules, so that if your state table had a
max size of
100 but you had a rule like this:

pass in proto tcp from any to any port 6881:6889 flags S keep state
pass in proto tcp from any to any port = ssh flags S keep state (limit 10)

Will *always allow* upto 10 ssh connections, even if there are 100
bittorrent
connections.

Darren

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0