Last active
August 29, 2015 14:07
-
-
Save dcrystalj/90ce6c2b909eff47e028 to your computer and use it in GitHub Desktop.
proxy tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://news.softpedia.com/news/Seting-Up-a-HTTP-Proxy-Server-with-Authentication-and-Filtering-52467.shtml | |
sudo apt-get install squid3 | |
vim /etc/squid/squid.conf | |
http_port 3128 <- povezes na nek ip | |
comment | |
http_access deny all | |
write | |
http_access allow all | |
sudo /etc/init.d/squid3 restart | |
=========== auth ========== if u want ====== | |
vim /etc/squid/squid.conf | |
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd | |
sudo htpasswd -c /etc/squid/passwd full_access | |
sudo htpasswd /etc/squid/passwd limit_access | |
acl full_access_user proxy_auth full_access | |
acl limit_access_user proxy_auth limit_access | |
acl whitelist dstdomain "/etc/squid/whitelist" | |
http_access allow full_access_user | |
http_access allow limit_access_user whitelist | |
uncomment | |
http_access deny all | |
comment | |
http_access allow all | |
vim /etc/squid/whitelist | |
enter: .google.com | |
.kids-play.com | |
.yahoo.com | |
.msn.com | |
sudo service squid3 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment