Community discussions

MikroTik App
 
valypetre
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Fri Oct 19, 2007 7:15 pm
Location: Oltenita - Romania

connection limit on a port

Thu Mar 06, 2008 5:29 pm

I'm trying to limit the number of connections of a client (say 10.100.10.16) on a port (say 411) at 12 connections. I've enabled connection tracking and I've tryed lots of rules and all they give me is a headache. HELP!!! give me the exact line please :D
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: connection limit on a port

Fri Mar 07, 2008 3:34 pm

Note, that you can set limit only for TCP, you may use the third rule from this menu,
http://www.mikrotik.com/testdocs/ros/2.9/ip/filter.php
 
valypetre
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Fri Oct 19, 2007 7:15 pm
Location: Oltenita - Romania

Re: connection limit on a port

Sat Mar 08, 2008 4:50 pm

It does NOT work :(
You do not have the required permissions to view the files attached to this post.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: connection limit on a port

Sat Mar 08, 2008 6:49 pm

you need another rule right below it to drop everything else on that port.

Sam
 
valypetre
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Fri Oct 19, 2007 7:15 pm
Location: Oltenita - Romania

Re: connection limit on a port

Sun Mar 09, 2008 11:28 am

As much I understand, that doesn't make sense. Now, can anyone give me a line that can limit the connection number of a client on a certain port?
 
User avatar
Letni
Member
Member
Posts: 376
Joined: Tue Dec 05, 2006 5:16 am
Location: South Carolina

Re: connection limit on a port

Sun Mar 09, 2008 11:53 am

/ip firewall filter add action=drop chain=forward comment="" connection-limit=13,32 disabled=no dst-port=411 protocol=tcp src-address=10.100.10.16 tcp-flags=syn

-Louis

Who is online

Users browsing this forum: JohnTRIVOLTA, maattie, xaverli and 32 guests