Last active
August 29, 2015 14:09
-
-
Save yenleidong/fadab3ab6f42b8e650fe to your computer and use it in GitHub Desktop.
mikrotik_add_script_squid_netwatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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