Skip to contentSkip to conversation

add CONFIG_IP_NF_MASQUERADE_LOCAL

PATCH Stefan Metzmacher 1 participant 1 message Feb 4, 2003 netfilter

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · you
Quoted 5 lines · Stefan (metze) Metzmacher

Hi *,

I have patches witch allow the masuerading of local packets. Now support for DNAT of local packets are in the kernel.

Quoted 6 lines
Quoted 1 line

But somebody (like me) could need masuerading of local packets.

why do you need MASQUERADE? isn't SNAT enough? and SNAT of local connections is supported by the stock linux kernel for a very long time.

DNAT has been added recently.

I need masquerading because I have some daemon's listening on internal(specified) ip's only and they(a squid and postfix,...) should only use this ip for all incoming and outging connections exept when they go through my dsl-link witch have a *dynamic* ip(then the connection should be *masqueraded*!)

I don't really understand where the problem is to not support masquerading of local packets...

you should only remove two lines of code
(witch where added because of an routing bug in 2.3.49 )

I have removed this two lines and run it since 2.4.3 WITHOUT ANY PROBLEM :-)

It would be nice if anyone could test it :-)

I would also accept when there is an option in make config to compile it in or it could be the default.

Please help me, that I would not have to patch/compile kernels by myself each time... so that I can simply use standart kernels.

Quoted 2 lines
Quoted 2 lines

Feedback please!!!:-)

It would be so great to get this in the standart kernel! thanks for feedback:-)

Quoted 2 lines

--
- Harald Welte / [email protected] http://www.gnumonks.org/

-----------------------------------------------

Stefan Metzmacher

[email protected]