kernel-ark/net/ipv4/netfilter
Harald Welte 8b83bc77bf [PATCH] don't try to do any NAT on untracked connections
With the introduction of 'rustynat' in 2.6.11, the old tricks of preventing
NAT of 'untracked' connections (e.g. NOTRACK target in 'raw' table) are no
longer sufficient.

The ip_conntrack_untracked.status |= IPS_NAT_DONE_MASK effectively
prevents iteration of the 'nat' table, but doesn't prevent nat_packet()
to be executed.  Since nr_manips is gone in 'rustynat', nat_packet() now
implicitly thinks that it has to do NAT on the packet.

This patch fixes that problem by explicitly checking for
ip_conntrack_untracked in ip_nat_fn().

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-08 11:48:28 -07:00
..
arp_tables.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
arpt_mangle.c
arptable_filter.c
ip_conntrack_amanda.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_conntrack_core.c [NETFILTER] Inherit masq_index to slave connections 2005-07-30 17:44:07 -07:00
ip_conntrack_ftp.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_conntrack_irc.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_conntrack_proto_generic.c
ip_conntrack_proto_icmp.c
ip_conntrack_proto_sctp.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ip_conntrack_proto_tcp.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ip_conntrack_proto_udp.c [NETFILTER]: Avoid unncessary checksum validation in UDP connection tracking 2005-06-21 14:03:23 -07:00
ip_conntrack_standalone.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_conntrack_tftp.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_nat_amanda.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_nat_core.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ip_nat_ftp.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_nat_helper.c [NETFILTER]: Kill nf_debug 2005-06-21 14:01:57 -07:00
ip_nat_irc.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_nat_proto_icmp.c [NETFILTER]: Use correct byteorder in ICMP NAT 2005-07-22 12:51:38 -07:00
ip_nat_proto_tcp.c [NETFILTER]: Fix potential memory corruption in NAT code (aka memory NAT) 2005-07-22 12:50:29 -07:00
ip_nat_proto_udp.c [NETFILTER]: Fix potential memory corruption in NAT code (aka memory NAT) 2005-07-22 12:50:29 -07:00
ip_nat_proto_unknown.c
ip_nat_rule.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ip_nat_snmp_basic.c
ip_nat_standalone.c [PATCH] don't try to do any NAT on untracked connections 2005-08-08 11:48:28 -07:00
ip_nat_tftp.c [NETFILTER]: ip_conntrack_expect_related must not free expectation 2005-07-21 13:14:46 -07:00
ip_queue.c
ip_tables.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ipt_addrtype.c
ipt_ah.c
ipt_CLASSIFY.c
ipt_CLUSTERIP.c [NETFILTER]: ipt_CLUSTERIP: fix ARP mangling 2005-06-28 12:49:30 -07:00
ipt_comment.c
ipt_connmark.c
ipt_CONNMARK.c
ipt_conntrack.c
ipt_dscp.c
ipt_DSCP.c
ipt_ecn.c
ipt_ECN.c
ipt_esp.c
ipt_hashlimit.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ipt_helper.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ipt_iprange.c
ipt_length.c
ipt_limit.c
ipt_LOG.c
ipt_mac.c
ipt_mark.c
ipt_MARK.c
ipt_MASQUERADE.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
ipt_multiport.c
ipt_NETMAP.c
ipt_NOTRACK.c
ipt_owner.c
ipt_physdev.c
ipt_pkttype.c
ipt_realm.c
ipt_recent.c
ipt_REDIRECT.c
ipt_REJECT.c [NETFILTER]: Check TCP checksum in ipt_REJECT 2005-06-21 14:03:46 -07:00
ipt_SAME.c
ipt_sctp.c
ipt_state.c
ipt_tcpmss.c
ipt_TCPMSS.c
ipt_tos.c
ipt_TOS.c
ipt_ttl.c
ipt_ULOG.c [NETFILTER]: Kill lockhelp.h 2005-06-21 14:01:30 -07:00
iptable_filter.c
iptable_mangle.c
iptable_raw.c
Kconfig
Makefile