Basic squid In A Gateway

This trial is done in a RedHat (RHEL 5.2) inside VirtualBox. The required squid package is using squid-3.0.STABLE13-1.el5.i386.rpm. Two interfaces is configured in this box as shown in the following NAT masquerading which build a simple router at 192.168.40.40 (eth1) :

1
2
3
4
5
6
7
8

WAN=wan0
LAN=eth1
IPTABLES=/sbin/iptables
$IPTABLES --flush # Flush all the rules in filter and nat tables$IPTABLES--table nat --flush$IPTABLES --delete-chain # Delete all chains that are not in default filter and nat table$IPTABLES--table nat --delete-chain