"Conntrack - Component netfilter, which provides tracking and stateful packet classification in terms of belonging to a compound that allows netfilter to full stateful-filtering traffic … The notion of the connection status of artificially introduced to the protocols, in which it was initially absent (UDP, ICMP).
"
How in MikroTik - limit the number of “conventional” UDP connections from one IP address?
The Manual does not say it will not work with UDP and I can see UDP ‘connections’ in firewall connection tracker, which suggests that MT could track UDP connections, however I agree that by definition, UDP is connection-less, so I can understand why it may not work. I also see that if you try to create a firewall rule with a match for udp protocol, connection-limit is then in turn, greyed out. Therefore unless MT finds a way to match such traffic patterns, it is currently not an available option.
Why do you need this? What difference does it make if are there 100 UDP packets to 100 different destinations or 100 UPD packets to just 1 destination?
UDP is stateless, so only difference is number of conntrack entries. But problem is - conntrack is way before your firewall filters in packet flow diagram, so drop it or not all UDP “connections” will be in conntrack anyway.
in short - from RouterOS performance point of view this feature is useless
there are lots of needed UDP connections out there, what if they are outside your given number of connections?
I suggest to go for queues, if UDP is such a problem, mark all of them and put a nice SFQ queue for it.
There is difference. 100 UPD packets to just 1 destination may be Skype, VoIP, or others.
100 UDP packets to 100 different destinations with connbytes > 5MB means p2p (e.g. new uTorrent). I’m looking for UDP connlimit solution for recogonizing p2p traffic.
After a bit of testing, it looks like you can apply connection-limit to UDP streams in 5.7, you just need to do it by the terminal window. Hopefully they will fix this in winbox soon.
yes, it’s like with ‘protocol=tcp’, but without it =)
by the way, what does it count now? because earlier, when you use ‘connection-limit’, it counted ALL tcp connections, even if you set some limits, like ‘dst-port=25’. so, if you now set ‘protocol=tcp connection-limit=…’, what will it count: only TCP connections, or all connections from that IP?
I’m personally interested in limiting SMTP connections - is it (will it be) possible to do that?..