Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.