Today I will install a squid server on server 192.168.0.5 and use client 192.168.0.6 to visit internet through web proxy on 192.168.0.5
1. I will install a bridged network card on server 192.168.0.5, and start it up, since it is bridged with physical one, it can get the internet access from my physic network card.
2. I will install a squid server on 192.168.0.5 and configure following lines
acl mynet ser 192.168.0.0/255.255.255.0  (this one set up mynet as a local network name, and use it in the following lines)
http_access allow mynet (this one enable 192.168.0.0/24 network )
http_access deny all(this one disable all visitors from the other networks)
iptables -I INPUT -s 192.168.0.6 -p tcp –dport 8080 -j ACCEPT
Advertisements