Created
June 5, 2017 10:02
-
-
Save kzn4/b3e4b597152b3fab65d469eb7f0c4caf to your computer and use it in GitHub Desktop.
auto script
This file contains 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
#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