masq-local.patch
Stefan (metze) Metzmacher
metze@metzemix.de
Mon, 14 Jan 2002 14:51:12 +0100
Hello,
why isn't local masquerading not implemented yet.
I looked at linux-2.4.17, there no local masquerading!
I hope it will be in linux-2.4.18!
Does anybody test it ???
I had absolutely NO PROBLEMS with LOCAL MASQUERADING!!!
Please test it and apply it!?!?
Stefan Metzmacher
------------------------------------------------------------------------
i wrote on 2001-10-25:
Hello!
I have a patch for masquerading local packets in the same way forwarded packets are masqueraded. I tested it for 5 or 6 month without problems.
masq-local.patch:
----snipp----
diff -urN linux-2.4.10/net/ipv4/netfilter/ipt_MASQUERADE.c linux-2.4.10-masq/net/ipv4/netfilter/ipt_MASQUERADE.c
--- linux-2.4.10/net/ipv4/netfilter/ipt_MASQUERADE.c Thu Oct 25 08:40:51 2001
+++ linux-2.4.10-masq/net/ipv4/netfilter/ipt_MASQUERADE.c Thu Oct 25 08:42:02 2001
@@ -73,11 +73,6 @@
IP_NF_ASSERT(hooknum == NF_IP_POST_ROUTING);
- /* FIXME: For the moment, don't do local packets, breaks
- testsuite for 2.3.49 --RR */
- if ((*pskb)->sk)
- return NF_ACCEPT;
-
ct = ip_conntrack_get(*pskb, &ctinfo);
IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW
|| ctinfo == IP_CT_RELATED));
----snapp----
Use the attached files because of the tabs!!
MfG
metze
Stefan "metze" Metzmacher <metze@metzemix.de>