Re: transparent squid & iptables

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

 



iptables -A PREROUTING -t nat -p 6 --dport 80 -j REDIRECT --to-port 3128

Abylai Ospan wrote:
Hello, All.
We tried to make transparent squid on 127.0.0.1 and REDIRECT (or DNAT) in iptables but iptables redirect pakets to the received interface IP.
In the iptables:
iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT 3128
For example:
packet from user (IP: 10.0.0.5) to <http://www.ru>www.ru <http://www.ru>:80 received on eth0 (IP: 10.0.0.1). Packet redirected to the 10.0.0.1:3128 but squid listen on 127.0.0.1:3128 so nothing work ;-(
How we can redirect packet to the 127.0.0.1 port 3128 in iptables ?!
wbr, Abylai
NetUP Systems
Moscow, Russia




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux