[K12OSN] iptables and prerouting for squid

Adam Melancon adammelancon at gmail.com
Mon Nov 15 21:27:40 UTC 2004


Did you try flushing all of the tables first
iptables -t nat -F
iptables -F
Then
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
REDIRECT --to-port 3128


On Mon, 15 Nov 2004 16:22:46 -0500, KJ <ksj2010 at myrealbox.com> wrote:
> Hello all,
> I FINALLY have squid/squidguard working.  If I enter 127.0.0.1 port 3128
> as my proxy, everything works fine.  The issue that I am having (the
> last before deployment, I think) is that I can't get iptables to route
> all traffic to port 3128.
> When I reinstalled K12 LTSP I made sure to initiate a firewall.  Now I
> have entries in iptables for the RH-Firewall chain.  When I enter:
> 
> iptables - t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
> 
> nothing happens.  I've tried flushing and re-entering the above
> statement, still nothing.
> 
> Any help would be greatly appreciated.
> Thanks!
> KJ
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 


-- 
Adam Melancon
Work: http://www.vermilion.lib.la.us
Personal: http://www.melancon.org




More information about the K12OSN mailing list