User:Ybon/Squid
Jump to navigation
Jump to search
sudo apt-get install squid sudo vim /etc/squid3/squid.conf
Changed these lines:
acl localnet src 10.42.0.0/24 # IP comes from ifconfig http_access allow localnet http_access allow localhost http_port 8888 cache_mem 1024 MB cache_dir ufs /home/squid 30000 16 256 # create the dir before with correct perms # (not in /var to get more space) visible_hostname ouanaminthe # chose a name, will be also used in the HTTP headers
Then:
sudo service squid3 restart
Then, other computers can use the shared wifi using:
host: 10.42.0.1 # ping ouanaminthe.local to get the IP port: 8888
To see the access log:
sudo tail -f /var/log/squid3/access.log