Connection Tracking Via SSH

Is there a way view and delete connections from the connection tracking screen via SSH instead?

View:

/ip firewall connection print

Delete by number(s):

/ip firewall connection remove 0,1

Delete by expression:

/ip firewall connection remove [find where dst-address=192.168.88.1:22]

Thank you very much! There weren’t any examples or anything on the wiki page for connection tracking so I wasn’t sure if there was even an option to do it via ssh and I wasn’t finding anything, but obviously I must not have been looking in the right place. Much appreciated.

Tab completion is your friend :slight_smile:

If you want to programmatically maintain connections, you could also use the Mikrotik API with these commands.

Yes I know, I was just one level too deep on the tracking menu. :slight_smile: