LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Shorewall gurus: Connection redirect problem

[ILUG] Shorewall gurus: Connection redirect problem

Kenn Humborg kenn at linux.ie
Fri Sep 16 16:05:11 IST 2011


> Even though you can direct traffic from external-to-external, unless
> it's usng a local proxy like balance, the response will fly directly
> from the external server to the client, and so arriving out-of-context.

I know about that.  That's why I have an SNAT rule to re-write
the source addr of the forwarded packets so that responses
come back to the forwarding box and conntrack de-NAT them
back to the original client.

I've worked around the problem by adding this to 
/etc/shorewall/start:

   run_iptables -t filter -A eth0_fwd -o eth0    \
      -m policy --dir out --pol none -j net2net

But I'm sure there is a more "proper" way to do this.

Later,
Kenn




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell