Skip to content

Commit

Permalink
[NETFILTER]: Don't exclude local packets from MASQUERADING
Browse files Browse the repository at this point in the history
Increases consistency in source-address selection.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Aug 29, 2005
1 parent fb13ab2 commit 9baa5c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/ipv4/netfilter/ipt_MASQUERADE.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ masquerade_target(struct sk_buff **pskb,

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
|| ctinfo == IP_CT_RELATED + IP_CT_IS_REPLY));
Expand Down

0 comments on commit 9baa5c6

Please sign in to comment.