For ubuntu or Debian
nano squid.conf
Copy and paste the content below .just change <serverip> to ur server ip.
----------------------
search and change to following..
http_port 8080
acl Only_hosts dst <serverip>
http_access allow Only_hosts
optional for username/pass verify
ctrl+x =exit
service squid3 restart
Done
apt-get install squid3 build-essential libssl-devcd /etc/squid3
nano squid.conf
Copy and paste the content below .just change <serverip> to ur server ip.
----------------------
forwarded_for off header_access Via deny all header_access Forwarded-For deny all header_access X-Forwarded-For deny all
ident_lookup_access deny all deny_info ::0 all---------------------------------------
search and change to following..
http_port 8080
acl Only_hosts dst <serverip>
http_access allow Only_hosts
optional for username/pass verify
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/squid_passwd auth_param basic children 5 auth_param basic realm Nugi.Biz Proxy auth_param basic credentialsttl 2 hours auth_param basic casesensitive off
-----------------------------------------------------------------------------------------------
htpasswd -b -c /etc/squid/squid_passwd [username] [password]
ctrl+o =savectrl+x =exit
service squid3 restart
Done
No comments:
Post a Comment