Advertisement
load-net

ip firewall connection remove

Mar 29th, 2024 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1.  
  2. :global internetStatus;
  3. :global previousInternetStatus
  4. :global internetCheckAddress;
  5. :set value="8.8.8.8" name=$internetCheckAddress;
  6. :set $ui "offline"
  7. :if ([/ping $internetCheckAddress count=1] = 0) do={
  8. :set $internetStatus "offline"
  9. :set $ui "offline"
  10. } else={
  11. :set $internetStatus "online";
  12. :set $uiu "online"
  13. }
  14. if ( $uiu != $previousInternetStatus ) do={
  15. :log info "Clearing connections ";
  16. /ip firewall connection remove [find];
  17. }
  18. :set previousInternetStatus $internetStatus;
  19.  
  20.  
  21.  
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement