summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy2006-04-10 07:38:29 +0200
committerDavid S. Miller2006-04-10 07:38:29 +0200
commit19910d1aec0b2b96ff4b4a93e2aed0d32643e850 (patch)
tree75d76070c55bc6564d27828ad251ac3fce462879 /net
parent[X25]: Restore skb->dev setting in x25_type_trans(). (diff)
downloadkernel-qcow2-linux-19910d1aec0b2b96ff4b4a93e2aed0d32643e850.tar.gz
kernel-qcow2-linux-19910d1aec0b2b96ff4b4a93e2aed0d32643e850.tar.xz
kernel-qcow2-linux-19910d1aec0b2b96ff4b4a93e2aed0d32643e850.zip
[NETFILTER]: Fix DNAT in LOCAL_OUT
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/ip_nat_rule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_nat_rule.c b/net/ipv4/netfilter/ip_nat_rule.c
index efba8c4e42e0..1aba926c1cb0 100644
--- a/net/ipv4/netfilter/ip_nat_rule.c
+++ b/net/ipv4/netfilter/ip_nat_rule.c
@@ -279,7 +279,7 @@ static struct ipt_target ipt_dnat_reg = {
.target = ipt_dnat_target,
.targetsize = sizeof(struct ip_nat_multi_range_compat),
.table = "nat",
- .hooks = 1 << NF_IP_PRE_ROUTING,
+ .hooks = (1 << NF_IP_PRE_ROUTING) | (1 << NF_IP_LOCAL_OUT),
.checkentry = ipt_dnat_checkentry,
};