Sunday 8 December 2013

Ubuntu - Squid Proxy Server

Hi,

There are some steps to install Squid Proxy Server:
  1. Install Squid:
    • sudo apt-get install squid
  2. Backup "squid.conf" file:
    • sudo cp /etc/squid3/squid.conf /etc/squid3/squid.conf.original
    • sudo chmod a-w /etc/squid3/squid.conf.original
  3. Open "/etc/squid3/squid.conf":
    • Find "visible_hostname" and change to your own name:
      • visible_hostname ubuntu
    • Change port:
      • http_port 8888
    • Allow all computers can access:
      • acl
        • acl manager proto cache_object
        • acl localhost src 127.0.0.1/32 ::1
        • acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
        • acl allcomputers src 192.168.1.0/255.255.255.0
      • http_access
        • http_access allow localhost
        • http_access allow allcomputers
  4. View log:
    • more /var/log/squid3/access.log

Good luck!

No comments:

Post a Comment