Setup Squid Proxy - LemontechSA/TideSDK GitHub Wiki
Setup Squid Proxy on Ubuntu
- Refer Squid Setup for ubuntu Guide for setting up the squid proxy.
Transparent Proxy
Perform following modifications to your "/etc/squid3/squid.conf"
modify default port of your http proxy from 3128 to 8888
#http_port 3128
http_port 8888
Modify config to allow all the traffic to pass through the proxy.
http_access allow all
#http_access allow manager localhost
#http_access deny manager
Run following command for restarting squid3.
$ sudo service squid3 restart
NCSA Username/Password Authentication
create squid_passwd file and add the test user
- A nice guide to setup squid with NCSA
# Create squid_passwd file
$ touch /etc/squid3/squid_passwd
$ chmod o+r /etc/squid3/squid_passwd
# Adding user "test"
htpasswd /etc/squid/squid_passwd test
New password:
Re-type new password:
Adding password for user test
# find your ncsa_auth file
$ locate ncsa_auth
/usr/lib/squid3/ncsa_auth
Now we need to change the config as per below.. the order of the statement matters.
#
# Add this to the auth_param section of squid.conf
#
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/squid_passwd
#
# Add this to the bottom of the ACL section of squid.conf
#
acl ncsa_users proxy_auth REQUIRED
#
# Add this at the top of the http_access section of squid.conf
#
http_access allow ncsa_users
Run following command for restarting squid3.
$ sudo service squid3 restart