Install Squid Proxy Ubuntu Server
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"
- 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
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:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* : 8-} ~x( :-t b-( :-L x( =))
Post a Comment