doktersquid

Untitled

Mar 6th, 2016
4,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. /system scheduler
  2. add disabled=no interval=10s comment="MONITORING SQUID-WCCP" name=service-squid on-event=":global SQUID\r\
  3. \n:if ([/ip firewall address-list find list=wccp2] = \"\") do={\r\
  4. \n:if (\$SQUID != \"down\") do={\r\
  5. \n/ip firewall mangle disable [find comment=\"tproxy\"]\r\
  6. \n:set SQUID \"down\"\r\
  7. \n:log info \"SQUID DOWN\"\r\
  8. \n}\r\
  9. \n} else={\r\
  10. \n:if (\$SQUID != \"hidup\") do={\r\
  11. \n/ip firewall mangle enable [find comment=\"tproxy\"]\r\
  12. \n:set SQUID \"hidup\"\r\
  13. \n:log info \"SQUID HIDUP\"\r\
  14. \n}\r\
  15. \n}" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=nov/14/2014 start-time=\
  16. 00:00:00
Advertisement
Add Comment
Please, Sign In to add comment