Hello Dear Users
anybody know how can limit connection per port in mikrotik firewall?
i want limit connection per port
for example the any ip address just can make 5 connection on port 80
my mean is " just 5 ip adress " can connect to port 80 because i want just total 5 connection
i founded the answer
we can do it with this rules
/ip firewall filter add chain=forward protocol=tcp dst-port=80 connection-limit=5,0
action=drop
So there is another problem i want do that for more than one port
for example for port 20000 to 30000
if we adding this port rang in this rule “dst-port=20000-30000” then we have incorrect return
because the firewall think we want make limit just 5 connection on this port range !
But this is not true because we want make this filter for each port
for example total 5 connection on port 20000 and total 5 connection on port 20001 , 20002 , and …
with this method we must make one rule for each port and it not have a good performance
any body know another method ?!