hello,
can anyone help me.
i search a code snipet which returns me the ip adresses of the connections on the mikrotik which have more than x connections on it
thanks max
hello,
can anyone help me.
i search a code snipet which returns me the ip adresses of the connections on the mikrotik which have more than x connections on it
thanks max
You could do it with a script, but something like that would cause the CPU to max out as you could potentially be looping through thousands of connections. It might be better to add a firewall filter rule that checks for a connection limit and adds the IP to an address list. Then you can check the address list manually, or set up a scheduled script to email you with all IPs in the list.
/ip firewall filter
add action=add-src-to-address-list address-list=“CONN LIMIT” address-list-timeout=30m chain=forward connection-limit=10,32 disabled=no