iptable for single nic
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
could it be the input interface?
Have you tried without -i?
Quoted 46 lines · john decot
yes i have gone throughout transparent proxy "howto". As i said everything is fine but only the thing is iptables is not working properly. And expecting help now.
Edmundo Carmona <[email protected]> wrote:
I guess you have to configure squid to do transparent proxy. There' a "howto" devoted to that.Quoted 5 lines · john decot
Hello all,
i am facing a problem in iptables as follows:
i have single nic which ip is eth0=x.x.x.x(public_ip)alias is eth0:1=y.y.y.y(private_ip)
the proxy works when ip of server and port 3128 at lan connection isconfigured at client side(windows os).
Quoted 1 line
But doesn't work without that whenever i flow traffic to proxy server,
again i have used ip tables as:
Quoted 6 lines
iptables -A PREROUTING -t nat -p tcp --dport 80 -i eth0 -j REDIRECT 3128
with above it doesn't work then i tried following
iptables -A PREROUTING -t nat -p tcp --dport 80 -i eth0 -j DNAT $public_ip
or $private_ip:3128
Quoted 3 lines
again the same result.
client pc and server is connect at same switch. and clients have privateip where as server has public as well as private ip.
Quoted 11 lines
any help will be appreciated.
thanks in advance.
john---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.________________________________
Yahoo! Mail for Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.