Networking Forums

Networking Forums > Computer Networking > Linux Networking > (iptables) connlimit per destination IP equivalent

Reply
Thread Tools Display Modes

(iptables) connlimit per destination IP equivalent

 
 
dzikus
Guest
Posts: n/a

 
      04-04-2006, 07:52 PM
Hi,

I can control the number of outgoing connections per source IP by:

iptables -A FORWARD -o $IF_EXTERNAL -p tcp --syn --dport 1024: -m
connlimit --connlimit-above 100 -j DROP

The question is, how can i limit the number of incoming connections ??
I don't think about limiting incoming connections per source IP (like
connlimit does) but rather per destination IP.

Is this possible, and how?

Thanks in advance.
 
Reply With Quote
 
 
 
 
Robert
Guest
Posts: n/a

 
      04-07-2006, 11:23 PM
On Tue, 04 Apr 2006 21:52:23 +0200, dzikus wrote:

> Hi,
>
> I can control the number of outgoing connections per source IP by:
>
> iptables -A FORWARD -o $IF_EXTERNAL -p tcp --syn --dport 1024: -m
> connlimit --connlimit-above 100 -j DROP


I would suggest that you place this on the internal interface in stead of
letting the packet pass through your box before being dropped.


> The question is, how can i limit the number of incoming connections ??
> I don't think about limiting incoming connections per source IP (like
> connlimit does) but rather per destination IP.
>
> Is this possible, and how?


Sure look at the LIMIT setting in iptables.


--

Regards
Robert

Smile... it increases your face value!


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
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
Equivalent Network elements karthikbalaguru Wireless Internet 0 03-21-2009 10:00 AM
iptables with connlimit question Ken Williams Linux Networking 1 01-27-2008 03:30 AM
iptables REDIRECT original destination-ip bubzilla Linux Networking 4 10-18-2006 10:45 AM
iptables: destination nat onto same network Chris Lutka Linux Networking 3 03-19-2005 01:35 AM
IPTABLES: -d (destination)=Internet AcCeSsDeNiEd Linux Networking 2 10-02-2004 11:36 AM



1 2 3 4 5 6 7 8 9 10 11