[HELP] Iptables - block multiconnection from the same ip
DComTalk.com Forum Index DComTalk.com
Discussion of VoIP, VPN, Video Conferencen, DSL and other data commucations.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web dcomtalk.com
[HELP] Iptables - block multiconnection from the same ip

 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Firewalls
Author Message
Omar Speranza
Guest





Posted: Sat Nov 19, 2005 12:41 am    Post subject: [HELP] Iptables - block multiconnection from the same ip Reply with quote

I need to block connections on port 23 (or other...) from an IP when it
try to open more than one connection...

In other words the ip xxx.xxx.xxx.xxx might open only one telnet session
at time...

I don't want 2 or more connection from the same ip... only one...

Is that possible using itables rules?
Could you help me?



~oma
Back to top
bjk of course
Guest





Posted: Sun Nov 20, 2005 1:10 am    Post subject: Re: [HELP] Iptables - block multiconnection from the same ip Reply with quote

On Fri, Nov 18, 2005 at 07:41:24PM +0100, Omar Speranza wrote:
Quote:
I need to block connections on port 23 (or other...) from an IP when it
try to open more than one connection...

In other words the ip xxx.xxx.xxx.xxx might open only one telnet session
at time...

I don't want 2 or more connection from the same ip... only one...

Is that possible using itables rules?
Could you help me?



~oma


From the iptables manual page:

iptables -p tcp --syn --dport 23 -s xxx.xxx.xxx.xxx
-m connlimit --connlimit-above 1 -j REJECT

--
b e n k i b b e y ::: bjk AT arbornet DOT org
Back to top
 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Firewalls All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Solutions: Telephone Systems Electronics Satellite TV Tech & Gadgets
Powered by phpBB