Skip to content

Instantly share code, notes, and snippets.

@nabakdev
Created August 23, 2023 05:44
Show Gist options
  • Save nabakdev/1c60dbf9edf6a7594da2370c2b1e0b78 to your computer and use it in GitHub Desktop.
Save nabakdev/1c60dbf9edf6a7594da2370c2b1e0b78 to your computer and use it in GitHub Desktop.
clear/remove/delete all connections on Router OS mikrotik

clear

/ip firewall connection remove [find]

clear with loop 3x

:for i from=1 to=3 do={ :do { /ip firewall connection remove [find] } on-error={ }; delay 1 }

add delay 1 second & suppress errors to prevent script stopped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment