Forced SNAT in PREROUTING
Hi gurus,
I'm a newbie iptables developer, so I'm reading all the iptables related
stuff I can find. I have experience as an iptables user but now that I have to modify the code I feel very overcomed by the situation.
All I have to do is to allow the target SNAT to be called in the PREROUTING
chain. Could someone guide me through the solution af this problem? I don't need any additional performance that translate the source IP address of the packets before routing.
Thanks in advanced.
Bye,
Eduard Calvo.
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
Quoted 1 line · On Fri, Nov 29, 2002 at 06:25:46PM +0100, Eduard Calvo (B-teljpa) EXP JAN 03…
Hi gurus,
Hi,
Quoted 2 lines
All I have to do is to allow the target SNAT to be called in the PREROUTING
chain.
Actually, I am also interested in something like this. More precisely, I would like to match a packet after doing SNAT, but currently AFAIK this is not possible, after you do a -j SNAT (or -j SAME), the packet leaves all tables and all chains.
Why? It would allow very easy loadbalancing if you have more lines. You simply SNAT/SAME to more addresses and then ROUTE to a specific interface. Now if you SNAT/SAME, the packet can't be matched anymore and there is no way to do ROUTE. And as you just have been in POSTROUTING, you can't reroute from userspace anymore.
Quoted 1 line
Eduard Calvo.
Bye,
Peter Surda (Shurdeek) <[email protected]>, ICQ 10236103, +436505122023
--
I believe the technical term is "Oops!"