iptables help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I want to redirect all outgoing HTTP traffic to a Squid proxy.  I tried:

$IPTABLES -t nat -A PREROUTING -s -p tcp --dport 80 -j
DNAT --to

to test my intended rule:

$IPTABLES -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to

However, it doesn't work... I can no longer access web pages at all, and
Squid isn't seeing my requests at all.  iptables -L doesn't show
anything that has to do with the new rule.  So, I botched something, but
aren't sure what :-)

* John Oliver                              http://www.john-oliver.net/ *

Re: iptables help

Quoted text here. Click to load it



"If a software developer ever believes a rootkit is a necessary part of
their architecture they should go back and re-architect their solution."
--Mark Russinovich

Re: iptables help

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

Found at http://www.visolve.com/squid/whitepapers/trans_caching.php

SDF Public Access UNIX System - http://sdf.lonestar.org

Site Timeline