blob: 4bff1f297e39a4affcf82e6b7aca2e6078b4dc50 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# IP netfilter configuration
3#
4
Patrick McHardy8ce22fc2008-01-14 23:31:36 -08005menu "IPv6: Netfilter Configuration"
6 depends on INET && IPV6 && NETFILTER
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
KOVACS Krisztianf6318e52010-10-24 23:38:32 +00008config NF_DEFRAG_IPV6
9 tristate
10 default n
11
Yasuyuki Kozakai9bdf87d2005-11-14 15:26:58 -080012config NF_CONNTRACK_IPV6
Patrick McHardy8ce22fc2008-01-14 23:31:36 -080013 tristate "IPv6 connection tracking support"
14 depends on INET && IPV6 && NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -080015 default m if NETFILTER_ADVANCED=n
KOVACS Krisztianf6318e52010-10-24 23:38:32 +000016 select NF_DEFRAG_IPV6
Yasuyuki Kozakai9bdf87d2005-11-14 15:26:58 -080017 ---help---
18 Connection tracking keeps a record of what packets have passed
19 through your machine, in order to figure out how they are related
20 into connections.
21
22 This is IPv6 support on Layer 3 independent connection tracking.
23 Layer 3 independent connection tracking is experimental scheme
24 which generalize ip_conntrack to support other layer 3 protocols.
25
26 To compile it as a module, choose M here. If unsure, say N.
27
Patrick McHardy96518512013-10-14 11:00:02 +020028config NF_TABLES_IPV6
29 depends on NF_TABLES
30 tristate "IPv6 nf_tables support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +010031 help
32 This option enables the IPv6 support for nf_tables.
Patrick McHardy96518512013-10-14 11:00:02 +020033
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020034config NFT_CHAIN_ROUTE_IPV6
Patrick McHardy96518512013-10-14 11:00:02 +020035 depends on NF_TABLES_IPV6
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020036 tristate "IPv6 nf_tables route chain support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +010037 help
38 This option enables the "route" chain for IPv6 in nf_tables. This
39 chain type is used to force packet re-routing after mangling header
40 fields such as the source, destination, flowlabel, hop-limit and
41 the packet mark.
Patrick McHardy96518512013-10-14 11:00:02 +020042
Tomasz Bursztykaeb316282013-10-10 13:39:19 +020043config NFT_CHAIN_NAT_IPV6
44 depends on NF_TABLES_IPV6
45 depends on NF_NAT_IPV6 && NFT_NAT
46 tristate "IPv6 nf_tables nat chain support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +010047 help
48 This option enables the "nat" chain for IPv6 in nf_tables. This
49 chain type is used to perform Network Address Translation (NAT)
50 packet transformations such as the source, destination address and
51 source and destination ports.
Tomasz Bursztykaeb316282013-10-10 13:39:19 +020052
Patrick McHardycc4723c2014-02-05 15:03:38 +000053config NFT_REJECT_IPV6
54 depends on NF_TABLES_IPV6
55 default NFT_REJECT
56 tristate
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058config IP6_NF_IPTABLES
Patrick McHardy844dc7c2006-10-30 15:12:16 -080059 tristate "IP6 tables support (required for filtering)"
Patrick McHardy8ce22fc2008-01-14 23:31:36 -080060 depends on INET && IPV6
Patrick McHardya3c941b2007-02-12 11:15:02 -080061 select NETFILTER_XTABLES
Patrick McHardy33b8e772007-12-17 22:47:05 -080062 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -070063 help
64 ip6tables is a general, extensible packet identification framework.
65 Currently only the packet filtering and packet mangling subsystem
66 for IPv6 use this, but connection tracking is going to follow.
67 Say 'Y' or 'M' here if you want to use either of those.
68
69 To compile it as a module, choose M here. If unsure, say N.
70
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020071if IP6_NF_IPTABLES
72
Linus Torvalds1da177e2005-04-16 15:20:36 -070073# The simple matches.
Jan Engelhardtaba0d342008-10-08 11:35:17 +020074config IP6_NF_MATCH_AH
75 tristate '"ah" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080076 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -070077 help
Jan Engelhardtaba0d342008-10-08 11:35:17 +020078 This module allows one to match AH packets.
79
80 To compile it as a module, choose M here. If unsure, say N.
81
82config IP6_NF_MATCH_EUI64
83 tristate '"eui64" address check'
Jan Engelhardtaba0d342008-10-08 11:35:17 +020084 depends on NETFILTER_ADVANCED
85 help
86 This module performs checking on the IPv6 source address
87 Compares the last 64 bits with the EUI64 (delivered
88 from the MAC address) address
89
90 To compile it as a module, choose M here. If unsure, say N.
91
92config IP6_NF_MATCH_FRAG
93 tristate '"frag" Fragmentation header match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +020094 depends on NETFILTER_ADVANCED
95 help
96 frag matching allows you to match packets based on the fragmentation
Linus Torvalds1da177e2005-04-16 15:20:36 -070097 header of the packet.
98
99 To compile it as a module, choose M here. If unsure, say N.
100
101config IP6_NF_MATCH_OPTS
Jan Engelhardt77d73582008-10-08 11:35:17 +0200102 tristate '"hbh" hop-by-hop and "dst" opts header match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800103 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104 help
105 This allows one to match packets based on the hop-by-hop
106 and destination options headers of a packet.
107
108 To compile it as a module, choose M here. If unsure, say N.
109
Jan Engelhardt43233622009-02-19 11:16:03 +0100110config IP6_NF_MATCH_HL
111 tristate '"hl" hoplimit match support'
112 depends on NETFILTER_ADVANCED
113 select NETFILTER_XT_MATCH_HL
114 ---help---
115 This is a backwards-compat option for the user's convenience
116 (e.g. when running oldconfig). It selects
Jan Engelhardt8dd1d042009-03-24 13:35:27 -0700117 CONFIG_NETFILTER_XT_MATCH_HL.
Jan Engelhardt43233622009-02-19 11:16:03 +0100118
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119config IP6_NF_MATCH_IPV6HEADER
Jan Engelhardt4c377992007-12-04 23:31:59 -0800120 tristate '"ipv6header" IPv6 Extension Headers Match'
Linus Torvalds44c45eb2008-01-31 00:26:10 +1100121 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 help
123 This module allows one to match packets based upon
124 the ipv6 extension headers.
125
126 To compile it as a module, choose M here. If unsure, say N.
127
Masahide NAKAMURAa0ca2152007-02-07 15:12:57 -0800128config IP6_NF_MATCH_MH
Jan Engelhardt4c377992007-12-04 23:31:59 -0800129 tristate '"mh" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800130 depends on NETFILTER_ADVANCED
Masahide NAKAMURAa0ca2152007-02-07 15:12:57 -0800131 help
132 This module allows one to match MH packets.
133
134 To compile it as a module, choose M here. If unsure, say N.
135
Florian Westphale26f9a42011-08-19 13:52:40 +0200136config IP6_NF_MATCH_RPFILTER
137 tristate '"rpfilter" reverse path filter match support'
Florian Westphald37d6962013-04-17 22:45:25 +0000138 depends on NETFILTER_ADVANCED && (IP6_NF_MANGLE || IP6_NF_RAW)
Florian Westphale26f9a42011-08-19 13:52:40 +0200139 ---help---
140 This option allows you to match packets whose replies would
141 go out via the interface the packet came in.
142
143 To compile it as a module, choose M here. If unsure, say N.
144 The module will be called ip6t_rpfilter.
145
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200146config IP6_NF_MATCH_RT
147 tristate '"rt" Routing header match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800148 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 help
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200150 rt matching allows you to match packets based on the routing
151 header of the packet.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152
153 To compile it as a module, choose M here. If unsure, say N.
154
Linus Torvalds1da177e2005-04-16 15:20:36 -0700155# The targets
Jan Engelhardt43233622009-02-19 11:16:03 +0100156config IP6_NF_TARGET_HL
157 tristate '"HL" hoplimit target support'
Randy Dunlap76b67172010-10-18 11:13:30 +0200158 depends on NETFILTER_ADVANCED && IP6_NF_MANGLE
Jan Engelhardt43233622009-02-19 11:16:03 +0100159 select NETFILTER_XT_TARGET_HL
160 ---help---
Randy Dunlap76b67172010-10-18 11:13:30 +0200161 This is a backwards-compatible option for the user's convenience
Jan Engelhardt43233622009-02-19 11:16:03 +0100162 (e.g. when running oldconfig). It selects
Jan Engelhardt8dd1d042009-03-24 13:35:27 -0700163 CONFIG_NETFILTER_XT_TARGET_HL.
Jan Engelhardt43233622009-02-19 11:16:03 +0100164
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165config IP6_NF_FILTER
166 tristate "Packet filtering"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800167 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168 help
169 Packet filtering defines a table `filter', which has a series of
170 rules for simple packet filtering at local input, forwarding and
171 local output. See the man page for iptables(8).
172
173 To compile it as a module, choose M here. If unsure, say N.
174
Patrick McHardy764d8a92005-08-21 23:31:06 -0700175config IP6_NF_TARGET_REJECT
176 tristate "REJECT target support"
177 depends on IP6_NF_FILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -0800178 default m if NETFILTER_ADVANCED=n
Patrick McHardy764d8a92005-08-21 23:31:06 -0700179 help
180 The REJECT target allows a filtering rule to specify that an ICMPv6
181 error should be issued in response to an incoming packet, rather
182 than silently being dropped.
183
184 To compile it as a module, choose M here. If unsure, say N.
185
Patrick McHardy4ad36222013-08-27 08:50:16 +0200186config IP6_NF_TARGET_SYNPROXY
187 tristate "SYNPROXY target support"
188 depends on NF_CONNTRACK && NETFILTER_ADVANCED
189 select NETFILTER_SYNPROXY
190 select SYN_COOKIES
191 help
192 The SYNPROXY target allows you to intercept TCP connections and
193 establish them using syncookies before they are passed on to the
194 server. This allows to avoid conntrack and server resource usage
195 during SYN-flood attacks.
196
197 To compile it as a module, choose M here. If unsure, say N.
198
Linus Torvalds1da177e2005-04-16 15:20:36 -0700199config IP6_NF_MANGLE
200 tristate "Packet mangling"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800201 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202 help
203 This option adds a `mangle' table to iptables: see the man page for
204 iptables(8). This table is used for various packet alterations
205 which can effect how the packet is routed.
206
207 To compile it as a module, choose M here. If unsure, say N.
208
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209config IP6_NF_RAW
210 tristate 'raw table support (required for TRACE)'
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211 help
212 This option adds a `raw' table to ip6tables. This table is the very
213 first in the netfilter framework and hooks in at the PREROUTING
214 and OUTPUT chains.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800215
Linus Torvalds1da177e2005-04-16 15:20:36 -0700216 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500217 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218
James Morris17e6e592008-06-09 15:58:05 -0700219# security table for MAC policy
220config IP6_NF_SECURITY
221 tristate "Security table"
James Morris17e6e592008-06-09 15:58:05 -0700222 depends on SECURITY
Patrick McHardy70eed752008-07-23 16:42:42 -0700223 depends on NETFILTER_ADVANCED
James Morris17e6e592008-06-09 15:58:05 -0700224 help
225 This option adds a `security' table to iptables, for use
226 with Mandatory Access Control (MAC) policy.
Pablo Neira Ayusob0041d12012-09-18 21:03:39 +0200227
James Morris17e6e592008-06-09 15:58:05 -0700228 If unsure, say N.
229
Pablo Neira Ayusob0041d12012-09-18 21:03:39 +0200230config NF_NAT_IPV6
231 tristate "IPv6 NAT"
232 depends on NF_CONNTRACK_IPV6
233 depends on NETFILTER_ADVANCED
234 select NF_NAT
235 help
236 The IPv6 NAT option allows masquerading, port forwarding and other
237 forms of full Network Address Port Translation. It is controlled by
238 the `nat' table in ip6tables, see the man page for ip6tables(8).
239
240 To compile it as a module, choose M here. If unsure, say N.
241
242if NF_NAT_IPV6
243
244config IP6_NF_TARGET_MASQUERADE
245 tristate "MASQUERADE target support"
246 help
247 Masquerading is a special case of NAT: all outgoing connections are
248 changed to seem to come from a particular interface's address, and
249 if the interface goes down, those connections are lost. This is
250 only useful for dialup accounts with dynamic IP address (ie. your IP
251 address will be different on next dialup).
252
253 To compile it as a module, choose M here. If unsure, say N.
254
Pablo Neira Ayusob0041d12012-09-18 21:03:39 +0200255config IP6_NF_TARGET_NPT
256 tristate "NPT (Network Prefix translation) target support"
257 help
258 This option adds the `SNPT' and `DNPT' target, which perform
259 stateless IPv6-to-IPv6 Network Prefix Translation per RFC 6296.
260
261 To compile it as a module, choose M here. If unsure, say N.
262
263endif # NF_NAT_IPV6
264
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200265endif # IP6_NF_IPTABLES
266
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267endmenu
268