Re: [opensuse] Re: [Fwbuilder-discussion] Dual-homed NAT question
- From: Per Jessen <per@xxxxxxxxxxxx>
- Date: Fri, 18 May 2012 20:33:41 +0200
James Knott wrote:
Whit Blauvelt wrote:
I'm not an expert here but so far as I'm aware there's nothing inThink you're right. When it's being handled on just the firewall
the IP
packet which has information about which interface it arrived on..
Without that information it can not be routed predictably for
the return journey.
system, I believe it's the kernel's rp_filter that's enabling it to
work. But that's lost when it goes on by DNAT. Thus the desire to use
a port. There's_got_ to be a way to implement the logic "if it comes
from 192.168.1.xyz on port 24, route it out through interface X on
port 22" - except iptable's limitation on outward port translation
blocks the easy and obvious way.
If I put a daemon on the firewall box, with my current setup it just
works. Putting it on a separate system behind it though, I haven't
found an appropriate way yet to have the firewall recognize which
outgoing interface to use, to have it match the incoming.
As has been mentioned before, there is no way for the firewall/NAT to
determine which port is to be used.
fwmark?
The packets behind the firewall will have a destination address and
the routing tables will determine which interface will be used.
Unless there is a specific route for a given address, the default
route will always be used.
It can be changed with ip rule and fwmark.
--
Per Jessen, Zürich (14.8°C)
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx
- References:
- [opensuse] Re: [Fwbuilder-discussion] Dual-homed NAT question
- From: James Knott
- [opensuse] Re: [Fwbuilder-discussion] Dual-homed NAT question
- Prev by Date: [opensuse] nVidia repos unavailable?
- Next by Date: Re: [opensuse] libreoffice cannot open smb:// files
- Previous by thread: [opensuse] Re: [Fwbuilder-discussion] Dual-homed NAT question
- Next by thread: [opensuse] libreoffice cannot open smb:// files
- Index(es):
Relevant Pages
|