Search squid archive

Re: iptables + wccp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,
   What´s I am wrong?
   I set
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080

   but ,
cache:~ # tcpdump  -s 1600 -n -i any -p port 80

140(0) win 64240 <mss 1380,nop,nop,sackOK>
10:53:16.324378 IP 201.66.103.169.20011 > 66.218.71.102.80: S 1179195225:1179195
225(0) win 16384 <mss 1380,nop,nop,sackOK>
10:53:16.341145 IP 201.66.103.169.20271 > 200.56.83.44.80: S 1101813889:11018138
89(0) win 16384 <mss 1380,nop,nop,sackOK>
10:53:16.349980 IP 201.66.103.169.20006 > 207.68.177.126.80: S 1934873506:193487
3506(0) win 8192 <mss 1380,nop,nop,sackOK>
10:53:16.416353 IP 201.66.103.169.16404 > 209.172.55.4.80: . ack 2761 win 64860 10:53:16.435404 IP 201.66.103.169.20013 > 66.218.71.198.80: S 523263296:52326329
6(0) win 65535 <mss 1380,nop,nop,sackOK>
10:53:16.460689 IP 201.66.103.169.57763 > 64.86.106.214.80: F 0:0(0) ack 1 win 8
280


while trying to browse Internet on my computers isn´t work, but if I put IP address then I can browse Internet


Regards
Ben

----- Original Message ----- From: "Nauman" <nauman@xxxxxxxxxxxxxxxx>
To: "Ben" <benja@xxxxxxxxxxxxxxx>; <squid-users@xxxxxxxxxxxxxxx>
Sent: Friday, October 28, 2005 9:47 AM
Subject: Re:  iptables + wccp


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











[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux