For Caching:-
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j
REDIRECT --to-port 8080
For Natting:-
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -d 0/0 -j
MASQUERADE
For Flushing iptable Nat Rules:-
iptables -t nat -F
Entries of "/etc/rc.local" :-
echo 1> /proc/sys/net/ipv4/ip_forward
iptables -t nat -F
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j
REDIRECT --to-port 8080
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -d 0/0 -j
MASQUERADE
For Saving iptables Rules:-
iptables-save > /opt/iptables_rule
For Restore iptables Rules:-
iptables-restore < /opt/iptables_rule
Thanks and regards,
M.Nauman Habib
----- Original Message -----
From: "Ben" <benja@xxxxxxxxxxxxxxx>
To: <squid-users@xxxxxxxxxxxxxxx>
Sent: Friday, October 28, 2005 7:39 PM
Subject: iptables + wccp
Hi all,
What configuration must have iptables for use wccp?
Suse 9.3
Kernel 2.6
Wccp V1
IOS 12.x
Regards
Ben