Ubuntu Server + Squid3 (Proxy Server) Notes

Install squid

#sudo apt-get install squid

Make a copy of the default conf file

#cp /etc/squid3/squid.conf /etc/squid3/squid.conf.old

Edit the squid.conf file

visible_hostname proxy-server

acl local-net src 192.168.1.0/255.255.255.0

http_access allow local-net

Add this line at the end so that every one else is deny access except the local-net subnet

http_access deny all

Restart Squid daemon

sudo /etc/init.d/squid3 restart

Changing the size of the proxy cache
Edit the squid.conf file

cache_dir ufs /var/spool/squid 100 16 256

change the 100 to 200 or 500

Ubuntu Server change network setting

/etc/network

sudo nano interfaces

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
dns-nameserver 192.168.1.8 192.168.1.9 218.102.23.228 203.198.7.66 8.8.8.8

Chnage DNS setting

sudo nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

sudo /etc/init.d/networking restart