Skip to content

Instantly share code, notes, and snippets.

@yenleidong
Last active August 29, 2015 14:09
Show Gist options
  • Save yenleidong/fadab3ab6f42b8e650fe to your computer and use it in GitHub Desktop.
Save yenleidong/fadab3ab6f42b8e650fe to your computer and use it in GitHub Desktop.
mikrotik_add_script_squid_netwatch
/script
add name="Squid ON" policy=ftp,reboot,read,write,policy,test,winbox,password source=\
":log info \"Squid ON, Enabling NAT Redirect\"\r\
\n/ip firewall nat set [find comment=Redirect_Ke_Squid] disable=no"
add name="Squid OFF" policy=ftp,reboot,read,write,policy,test,winbox,password source=\
":log info \"Squid OFF, Disabling NAT Redirecti\"\r\
\n/ip firewall nat set [find comment=Redirect_Ke_Squid] disable=yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment