Skip to content

Instantly share code, notes, and snippets.

@kzn4
Created June 5, 2017 10:02
Show Gist options
  • Save kzn4/b3e4b597152b3fab65d469eb7f0c4caf to your computer and use it in GitHub Desktop.
Save kzn4/b3e4b597152b3fab65d469eb7f0c4caf to your computer and use it in GitHub Desktop.
auto script
#Squid Proxy 3.1
apt-get -y install aptitude curl
# Specify our IP Server
if [ "$IP" = "" ]; then
IP=$(curl -s ifconfig.me)
fi
aptitude -y install squid3
rm -f /etc/squid3/squid.conf
wget -P /etc/squid3/ "https://raw.githubusercontent.com/narrundo/vishera/conf/squid.conf"
# sed -i 's/#cache_dir/cache_dir/g' /etc/squid3/squid.conf
sed -i "s/ipserver/$IP/g" /etc/squid3/squid.conf
service squid3 restart
#by VisheraCatalyt
#compiled based bunch of reference and open source on Internet :)
# you are freely to use this script, but NEVER SELL and CHANGE THE AUTHOR of this script !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment