Sunday, April 20, 2014

Install Squid Proxy Ubuntu Server

  • Install Squid
sudo apt-get install squid
  • Set squid to run after startup
update-rc.d squid3 defaults
  • Open squid configuration file
sudo nano /etc/squid/squid.config
  • Add this to the first line of squid.conf to use ipv4 only
dns_v4_first on
  • Press Ctrl+w to search "http_access deny all"
  • clear "#"
  • Search "acl localnet" with Ctrl+w
  • add line "acl localnet src your-ip-public"
  • Press Ctrl+w to search "http_access allow"
  • add line "http_access allow localnet"
  • Press Ctrl+o and then press enter to save edited file
  • restart squid service
sudo service squid3 restart
NB:
  • You can change localnet to whatever you want
  • To change proxy port, search "http_port 3128" and change 3128 with port you want
Source

0 comments:

Post a Comment