Skip to content

Instantly share code, notes, and snippets.

@luismoramedina
Created November 22, 2016 11:46
Show Gist options
  • Save luismoramedina/44daca6b535cc6f9074550e36810db94 to your computer and use it in GitHub Desktop.
Save luismoramedina/44daca6b535cc6f9074550e36810db94 to your computer and use it in GitHub Desktop.
Squid proxy switcher
#!/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