[HELP] Iptables - block multiconnection from the same ip

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

Reply to
Omar Speranza
Loading thread data ...

From the iptables manual page:

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

Reply to
bjk of course

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.