Skip to content

Instantly share code, notes, and snippets.

@Shellbye
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shellbye/f79d1645dbc1cbbe6798 to your computer and use it in GitHub Desktop.
Save Shellbye/f79d1645dbc1cbbe6798 to your computer and use it in GitHub Desktop.
set up http proxy
#!/bin/sh
sudo apt-get update
sudo apt-get install -y squid3
sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.original
sudo chmod a-w /etc/squid3/squid.conf.original
echo "use vim /etc/squid3/squid.conf to change port(default 3128) and http_access allow"
# change port: http_port 8888
# allow access: http_access allow all <==this should at top of all http_access
# ref: https://help.ubuntu.com/lts/serverguide/squid.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment