$ apt-get update
$ apt-get install apache2-utils squid3 -y
$ htpasswd -c /etc/squid3/passwd <USERNAME YOU WANT FOR PROXY>
$ wget -O /etc/squid3/squid.conf https://gist.githubusercontent.com/dzt/da5f94d1af2ce91789655144288f3a80/raw/8fc4e1170b244836ec9a18d34d458c1d7bff84e4/ubuntu.conf --no-check-certificate
$ cp /etc/init/squid3.conf /etc/init.d/squid3
$ touch /etc/squid3/blacklist.acl
$ service squid3 restart && update-rc.d squid3 defaults
$ iptables -I INPUT -p tcp --dport 3128 -j ACCEPT
$ iptables-save
Last active
February 14, 2017 00:03
-
-
Save dzt/b45fa7a21b884d71860c8b55dc6054be to your computer and use it in GitHub Desktop.
Ubuntu 16.04 Proxy Setup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment