2005-04-17 00:20:36 +02:00
|
|
|
#
|
|
|
|
# Makefile for the netfilter modules on top of IPv4.
|
|
|
|
#
|
|
|
|
|
2007-01-26 10:06:47 +01:00
|
|
|
# objects for l3 independent conntrack
|
2010-11-21 16:03:18 +01:00
|
|
|
nf_conntrack_ipv4-y := nf_conntrack_l3proto_ipv4.o nf_conntrack_proto_icmp.o
|
2007-01-26 10:06:47 +01:00
|
|
|
ifeq ($(CONFIG_NF_CONNTRACK_PROC_COMPAT),y)
|
|
|
|
ifeq ($(CONFIG_PROC_FS),y)
|
|
|
|
nf_conntrack_ipv4-objs += nf_conntrack_l3proto_ipv4_compat.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
# connection tracking
|
2007-01-26 10:06:47 +01:00
|
|
|
obj-$(CONFIG_NF_CONNTRACK_IPV4) += nf_conntrack_ipv4.o
|
|
|
|
|
2012-08-26 19:14:06 +02:00
|
|
|
nf_nat_ipv4-y := nf_nat_l3proto_ipv4.o nf_nat_proto_icmp.o
|
|
|
|
obj-$(CONFIG_NF_NAT_IPV4) += nf_nat_ipv4.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2008-10-08 11:35:12 +02:00
|
|
|
# defrag
|
|
|
|
obj-$(CONFIG_NF_DEFRAG_IPV4) += nf_defrag_ipv4.o
|
|
|
|
|
2006-12-03 07:07:44 +01:00
|
|
|
# NAT helpers (nf_conntrack)
|
2006-12-03 07:08:46 +01:00
|
|
|
obj-$(CONFIG_NF_NAT_H323) += nf_nat_h323.o
|
2006-12-03 07:09:41 +01:00
|
|
|
obj-$(CONFIG_NF_NAT_PPTP) += nf_nat_pptp.o
|
2006-12-03 07:10:34 +01:00
|
|
|
obj-$(CONFIG_NF_NAT_SNMP_BASIC) += nf_nat_snmp_basic.o
|
2006-12-03 07:09:41 +01:00
|
|
|
|
|
|
|
# NAT protocols (nf_nat)
|
|
|
|
obj-$(CONFIG_NF_NAT_PROTO_GRE) += nf_nat_proto_gre.o
|
2006-12-03 07:07:44 +01:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
# generic IP tables
|
|
|
|
obj-$(CONFIG_IP_NF_IPTABLES) += ip_tables.o
|
|
|
|
|
|
|
|
# the three instances of ip_tables
|
|
|
|
obj-$(CONFIG_IP_NF_FILTER) += iptable_filter.o
|
|
|
|
obj-$(CONFIG_IP_NF_MANGLE) += iptable_mangle.o
|
2012-08-26 19:14:06 +02:00
|
|
|
obj-$(CONFIG_NF_NAT_IPV4) += iptable_nat.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_IP_NF_RAW) += iptable_raw.o
|
2008-06-10 00:57:24 +02:00
|
|
|
obj-$(CONFIG_IP_NF_SECURITY) += iptable_security.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
# matches
|
2007-11-06 05:42:54 +01:00
|
|
|
obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o
|
netfilter: add ipv4 reverse path filter match
This tries to do the same thing as fib_validate_source(), but differs
in several aspects.
The most important difference is that the reverse path filter built into
fib_validate_source uses the oif as iif when performing the reverse
lookup. We do not do this, as the oif is not yet known by the time the
PREROUTING hook is invoked.
We can't wait until FORWARD chain because by the time FORWARD is invoked
ipv4 forward path may have already sent icmp messages is response
to to-be-discarded-via-rpfilter packets.
To avoid the such an additional lookup in PREROUTING, Patrick McHardy
suggested to attach the path information directly in the match
(i.e., just do what the standard ipv4 path does a bit earlier in PREROUTING).
This works, but it also has a few caveats. Most importantly, when using
marks in PREROUTING to re-route traffic based on the nfmark, -m rpfilter
would have to be used after the nfmark has been set; otherwise the nfmark
would have no effect (because the route is already attached).
Another problem would be interaction with -j TPROXY, as this target sets an
nfmark and uses ACCEPT instead of continue, i.e. such a version of
-m rpfilter cannot be used for the initial to-be-intercepted packets.
In case in turns out that the oif is required, we can add Patricks
suggestion with a new match option (e.g. --rpf-use-oif) to keep ruleset
compatibility.
Another difference to current builtin ipv4 rpfilter is that packets subject to ipsec
transformation are not automatically excluded. If you want this, simply
combine -m rpfilter with the policy match.
Packets arriving on loopback interfaces always match.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2011-07-04 23:48:10 +02:00
|
|
|
obj-$(CONFIG_IP_NF_MATCH_RPFILTER) += ipt_rpfilter.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
# targets
|
2007-11-06 05:42:54 +01:00
|
|
|
obj-$(CONFIG_IP_NF_TARGET_CLUSTERIP) += ipt_CLUSTERIP.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_IP_NF_TARGET_ECN) += ipt_ECN.o
|
|
|
|
obj-$(CONFIG_IP_NF_TARGET_MASQUERADE) += ipt_MASQUERADE.o
|
2007-11-06 05:42:54 +01:00
|
|
|
obj-$(CONFIG_IP_NF_TARGET_REJECT) += ipt_REJECT.o
|
2013-08-27 08:50:14 +02:00
|
|
|
obj-$(CONFIG_IP_NF_TARGET_SYNPROXY) += ipt_SYNPROXY.o
|
2007-11-06 05:42:54 +01:00
|
|
|
obj-$(CONFIG_IP_NF_TARGET_ULOG) += ipt_ULOG.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
# generic ARP tables
|
|
|
|
obj-$(CONFIG_IP_NF_ARPTABLES) += arp_tables.o
|
|
|
|
obj-$(CONFIG_IP_NF_ARP_MANGLE) += arpt_mangle.o
|
|
|
|
|
|
|
|
# just filtering instance of ARP tables for now
|
|
|
|
obj-$(CONFIG_IP_NF_ARPFILTER) += arptable_filter.o
|