Created
November 22, 2016 11:46
-
-
Save luismoramedina/44daca6b535cc6f9074550e36810db94 to your computer and use it in GitHub Desktop.
Squid proxy switcher
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
#!/bin/bash | |
# use: proxy.sh on|off | |
cp /etc/squid/squid.conf.proxy-$1 /etc/squid/squid.conf | |
echo "restarting squid" | |
service squid restart | |
echo 'Proxy ' $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment