[lug] iptables redirection

Sean Reifschneider jafo at tummy.com
Tue Jan 9 00:16:11 MST 2007


On Sun, Jan 07, 2007 at 11:11:17AM -0700, George Sexton wrote:
>This is the problem. It's bypassing the NAT chain.

You mean NAT table?  My guess was that it was bypassing the PREROUTING
chain.  I'm not sure that there's a way to force locally generated packets
to go through that.  Probably the solution would be to put a proxy like
rinetd or Apache mod_proxy to proxy 80 to 8080.  You can leave the NAT in
there since it is working for public packets (and would therefore leave the
remote IP unchanged for log-files), but the forward would pick up local
packets.

Sean
-- 
 People who interview themselves shouldn't criticize writing styles.
                 -- John Bentley, Programming Pearls
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability




More information about the LUG mailing list