Kconfig 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. menu "Core Netfilter Configuration"
  2. depends on NET && INET && NETFILTER
  3. config NETFILTER_NETLINK
  4. tristate "Netfilter netlink interface"
  5. help
  6. If this option is enabled, the kernel will include support
  7. for the new netfilter netlink interface.
  8. config NETFILTER_NETLINK_QUEUE
  9. tristate "Netfilter NFQUEUE over NFNETLINK interface"
  10. depends on NETFILTER_NETLINK
  11. help
  12. If this option is enabled, the kernel will include support
  13. for queueing packets via NFNETLINK.
  14. config NETFILTER_NETLINK_LOG
  15. tristate "Netfilter LOG over NFNETLINK interface"
  16. depends on NETFILTER_NETLINK
  17. help
  18. If this option is enabled, the kernel will include support
  19. for logging packets via NFNETLINK.
  20. This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
  21. and is also scheduled to replace the old syslog-based ipt_LOG
  22. and ip6t_LOG modules.
  23. config NF_CONNTRACK
  24. tristate "Netfilter connection tracking support"
  25. help
  26. Connection tracking keeps a record of what packets have passed
  27. through your machine, in order to figure out how they are related
  28. into connections.
  29. This is required to do Masquerading or other kinds of Network
  30. Address Translation (except for Fast NAT). It can also be used to
  31. enhance packet filtering (see `Connection state match support'
  32. below).
  33. To compile it as a module, choose M here. If unsure, say N.
  34. config NF_CT_ACCT
  35. bool "Connection tracking flow accounting"
  36. depends on NF_CONNTRACK
  37. help
  38. If this option is enabled, the connection tracking code will
  39. keep per-flow packet and byte counters.
  40. Those counters can be used for flow-based accounting or the
  41. `connbytes' match.
  42. If unsure, say `N'.
  43. config NF_CONNTRACK_MARK
  44. bool 'Connection mark tracking support'
  45. depends on NF_CONNTRACK
  46. help
  47. This option enables support for connection marks, used by the
  48. `CONNMARK' target and `connmark' match. Similar to the mark value
  49. of packets, but this mark value is kept in the conntrack session
  50. instead of the individual packets.
  51. config NF_CONNTRACK_SECMARK
  52. bool 'Connection tracking security mark support'
  53. depends on NF_CONNTRACK && NETWORK_SECMARK
  54. help
  55. This option enables security markings to be applied to
  56. connections. Typically they are copied to connections from
  57. packets using the CONNSECMARK target and copied back from
  58. connections to packets with the same target, with the packets
  59. being originally labeled via SECMARK.
  60. If unsure, say 'N'.
  61. config NF_CONNTRACK_EVENTS
  62. bool "Connection tracking events (EXPERIMENTAL)"
  63. depends on EXPERIMENTAL && NF_CONNTRACK
  64. help
  65. If this option is enabled, the connection tracking code will
  66. provide a notifier chain that can be used by other kernel code
  67. to get notified about changes in the connection tracking state.
  68. If unsure, say `N'.
  69. config NF_CT_PROTO_GRE
  70. tristate
  71. depends on NF_CONNTRACK
  72. config NF_CT_PROTO_SCTP
  73. tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
  74. depends on EXPERIMENTAL && NF_CONNTRACK
  75. default n
  76. help
  77. With this option enabled, the layer 3 independent connection
  78. tracking code will be able to do state tracking on SCTP connections.
  79. If you want to compile it as a module, say M here and read
  80. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  81. config NF_CT_PROTO_UDPLITE
  82. tristate 'UDP-Lite protocol connection tracking support (EXPERIMENTAL)'
  83. depends on EXPERIMENTAL && NF_CONNTRACK
  84. help
  85. With this option enabled, the layer 3 independent connection
  86. tracking code will be able to do state tracking on UDP-Lite
  87. connections.
  88. To compile it as a module, choose M here. If unsure, say N.
  89. config NF_CONNTRACK_AMANDA
  90. tristate "Amanda backup protocol support"
  91. depends on NF_CONNTRACK
  92. select TEXTSEARCH
  93. select TEXTSEARCH_KMP
  94. help
  95. If you are running the Amanda backup package <http://www.amanda.org/>
  96. on this machine or machines that will be MASQUERADED through this
  97. machine, then you may want to enable this feature. This allows the
  98. connection tracking and natting code to allow the sub-channels that
  99. Amanda requires for communication of the backup data, messages and
  100. index.
  101. To compile it as a module, choose M here. If unsure, say N.
  102. config NF_CONNTRACK_FTP
  103. tristate "FTP protocol support"
  104. depends on NF_CONNTRACK
  105. help
  106. Tracking FTP connections is problematic: special helpers are
  107. required for tracking them, and doing masquerading and other forms
  108. of Network Address Translation on them.
  109. This is FTP support on Layer 3 independent connection tracking.
  110. Layer 3 independent connection tracking is experimental scheme
  111. which generalize ip_conntrack to support other layer 3 protocols.
  112. To compile it as a module, choose M here. If unsure, say N.
  113. config NF_CONNTRACK_H323
  114. tristate "H.323 protocol support (EXPERIMENTAL)"
  115. depends on EXPERIMENTAL && NF_CONNTRACK && (IPV6 || IPV6=n)
  116. help
  117. H.323 is a VoIP signalling protocol from ITU-T. As one of the most
  118. important VoIP protocols, it is widely used by voice hardware and
  119. software including voice gateways, IP phones, Netmeeting, OpenPhone,
  120. Gnomemeeting, etc.
  121. With this module you can support H.323 on a connection tracking/NAT
  122. firewall.
  123. This module supports RAS, Fast Start, H.245 Tunnelling, Call
  124. Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
  125. whiteboard, file transfer, etc. For more information, please
  126. visit http://nath323.sourceforge.net/.
  127. To compile it as a module, choose M here. If unsure, say N.
  128. config NF_CONNTRACK_IRC
  129. tristate "IRC protocol support"
  130. depends on NF_CONNTRACK
  131. help
  132. There is a commonly-used extension to IRC called
  133. Direct Client-to-Client Protocol (DCC). This enables users to send
  134. files to each other, and also chat to each other without the need
  135. of a server. DCC Sending is used anywhere you send files over IRC,
  136. and DCC Chat is most commonly used by Eggdrop bots. If you are
  137. using NAT, this extension will enable you to send files and initiate
  138. chats. Note that you do NOT need this extension to get files or
  139. have others initiate chats, or everything else in IRC.
  140. To compile it as a module, choose M here. If unsure, say N.
  141. config NF_CONNTRACK_NETBIOS_NS
  142. tristate "NetBIOS name service protocol support (EXPERIMENTAL)"
  143. depends on EXPERIMENTAL && NF_CONNTRACK
  144. help
  145. NetBIOS name service requests are sent as broadcast messages from an
  146. unprivileged port and responded to with unicast messages to the
  147. same port. This make them hard to firewall properly because connection
  148. tracking doesn't deal with broadcasts. This helper tracks locally
  149. originating NetBIOS name service requests and the corresponding
  150. responses. It relies on correct IP address configuration, specifically
  151. netmask and broadcast address. When properly configured, the output
  152. of "ip address show" should look similar to this:
  153. $ ip -4 address show eth0
  154. 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
  155. inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
  156. To compile it as a module, choose M here. If unsure, say N.
  157. config NF_CONNTRACK_PPTP
  158. tristate "PPtP protocol support"
  159. depends on NF_CONNTRACK
  160. select NF_CT_PROTO_GRE
  161. help
  162. This module adds support for PPTP (Point to Point Tunnelling
  163. Protocol, RFC2637) connection tracking and NAT.
  164. If you are running PPTP sessions over a stateful firewall or NAT
  165. box, you may want to enable this feature.
  166. Please note that not all PPTP modes of operation are supported yet.
  167. Specifically these limitations exist:
  168. - Blindly assumes that control connections are always established
  169. in PNS->PAC direction. This is a violation of RFC2637.
  170. - Only supports a single call within each session
  171. To compile it as a module, choose M here. If unsure, say N.
  172. config NF_CONNTRACK_SANE
  173. tristate "SANE protocol support (EXPERIMENTAL)"
  174. depends on EXPERIMENTAL && NF_CONNTRACK
  175. help
  176. SANE is a protocol for remote access to scanners as implemented
  177. by the 'saned' daemon. Like FTP, it uses separate control and
  178. data connections.
  179. With this module you can support SANE on a connection tracking
  180. firewall.
  181. To compile it as a module, choose M here. If unsure, say N.
  182. config NF_CONNTRACK_SIP
  183. tristate "SIP protocol support (EXPERIMENTAL)"
  184. depends on EXPERIMENTAL && NF_CONNTRACK
  185. help
  186. SIP is an application-layer control protocol that can establish,
  187. modify, and terminate multimedia sessions (conferences) such as
  188. Internet telephony calls. With the ip_conntrack_sip and
  189. the nf_nat_sip modules you can support the protocol on a connection
  190. tracking/NATing firewall.
  191. To compile it as a module, choose M here. If unsure, say N.
  192. config NF_CONNTRACK_TFTP
  193. tristate "TFTP protocol support"
  194. depends on NF_CONNTRACK
  195. help
  196. TFTP connection tracking helper, this is required depending
  197. on how restrictive your ruleset is.
  198. If you are using a tftp client behind -j SNAT or -j MASQUERADING
  199. you will need this.
  200. To compile it as a module, choose M here. If unsure, say N.
  201. config NF_CT_NETLINK
  202. tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
  203. depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
  204. depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
  205. depends on NF_NAT=n || NF_NAT
  206. help
  207. This option enables support for a netlink-based userspace interface
  208. config NETFILTER_XTABLES
  209. tristate "Netfilter Xtables support (required for ip_tables)"
  210. help
  211. This is required if you intend to use any of ip_tables,
  212. ip6_tables or arp_tables.
  213. # alphabetically ordered list of targets
  214. config NETFILTER_XT_TARGET_CLASSIFY
  215. tristate '"CLASSIFY" target support'
  216. depends on NETFILTER_XTABLES
  217. help
  218. This option adds a `CLASSIFY' target, which enables the user to set
  219. the priority of a packet. Some qdiscs can use this value for
  220. classification, among these are:
  221. atm, cbq, dsmark, pfifo_fast, htb, prio
  222. To compile it as a module, choose M here. If unsure, say N.
  223. config NETFILTER_XT_TARGET_CONNMARK
  224. tristate '"CONNMARK" target support'
  225. depends on NETFILTER_XTABLES
  226. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  227. depends on NF_CONNTRACK
  228. select NF_CONNTRACK_MARK
  229. help
  230. This option adds a `CONNMARK' target, which allows one to manipulate
  231. the connection mark value. Similar to the MARK target, but
  232. affects the connection mark value rather than the packet mark value.
  233. If you want to compile it as a module, say M here and read
  234. <file:Documentation/kbuild/modules.txt>. The module will be called
  235. ipt_CONNMARK.ko. If unsure, say `N'.
  236. config NETFILTER_XT_TARGET_DSCP
  237. tristate '"DSCP" and "TOS" target support'
  238. depends on NETFILTER_XTABLES
  239. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  240. help
  241. This option adds a `DSCP' target, which allows you to manipulate
  242. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  243. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  244. It also adds the "TOS" target, which allows you to create rules in
  245. the "mangle" table which alter the Type Of Service field of an IPv4
  246. or the Priority field of an IPv6 packet, prior to routing.
  247. To compile it as a module, choose M here. If unsure, say N.
  248. config NETFILTER_XT_TARGET_MARK
  249. tristate '"MARK" target support'
  250. depends on NETFILTER_XTABLES
  251. help
  252. This option adds a `MARK' target, which allows you to create rules
  253. in the `mangle' table which alter the netfilter mark (nfmark) field
  254. associated with the packet prior to routing. This can change
  255. the routing method (see `Use netfilter MARK value as routing
  256. key') and can also be used by other subsystems to change their
  257. behavior.
  258. To compile it as a module, choose M here. If unsure, say N.
  259. config NETFILTER_XT_TARGET_NFQUEUE
  260. tristate '"NFQUEUE" target Support'
  261. depends on NETFILTER_XTABLES
  262. help
  263. This target replaced the old obsolete QUEUE target.
  264. As opposed to QUEUE, it supports 65535 different queues,
  265. not just one.
  266. To compile it as a module, choose M here. If unsure, say N.
  267. config NETFILTER_XT_TARGET_NFLOG
  268. tristate '"NFLOG" target support'
  269. depends on NETFILTER_XTABLES
  270. help
  271. This option enables the NFLOG target, which allows to LOG
  272. messages through the netfilter logging API, which can use
  273. either the old LOG target, the old ULOG target or nfnetlink_log
  274. as backend.
  275. To compile it as a module, choose M here. If unsure, say N.
  276. config NETFILTER_XT_TARGET_NOTRACK
  277. tristate '"NOTRACK" target support'
  278. depends on NETFILTER_XTABLES
  279. depends on IP_NF_RAW || IP6_NF_RAW
  280. depends on NF_CONNTRACK
  281. help
  282. The NOTRACK target allows a select rule to specify
  283. which packets *not* to enter the conntrack/NAT
  284. subsystem with all the consequences (no ICMP error tracking,
  285. no protocol helpers for the selected packets).
  286. If you want to compile it as a module, say M here and read
  287. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  288. config NETFILTER_XT_TARGET_RATEEST
  289. tristate '"RATEEST" target support'
  290. depends on NETFILTER_XTABLES
  291. help
  292. This option adds a `RATEEST' target, which allows to measure
  293. rates similar to TC estimators. The `rateest' match can be
  294. used to match on the measured rates.
  295. To compile it as a module, choose M here. If unsure, say N.
  296. config NETFILTER_XT_TARGET_TRACE
  297. tristate '"TRACE" target support'
  298. depends on NETFILTER_XTABLES
  299. depends on IP_NF_RAW || IP6_NF_RAW
  300. help
  301. The TRACE target allows you to mark packets so that the kernel
  302. will log every rule which match the packets as those traverse
  303. the tables, chains, rules.
  304. If you want to compile it as a module, say M here and read
  305. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  306. config NETFILTER_XT_TARGET_SECMARK
  307. tristate '"SECMARK" target support'
  308. depends on NETFILTER_XTABLES && NETWORK_SECMARK
  309. help
  310. The SECMARK target allows security marking of network
  311. packets, for use with security subsystems.
  312. To compile it as a module, choose M here. If unsure, say N.
  313. config NETFILTER_XT_TARGET_CONNSECMARK
  314. tristate '"CONNSECMARK" target support'
  315. depends on NETFILTER_XTABLES && NF_CONNTRACK && NF_CONNTRACK_SECMARK
  316. help
  317. The CONNSECMARK target copies security markings from packets
  318. to connections, and restores security markings from connections
  319. to packets (if the packets are not already marked). This would
  320. normally be used in conjunction with the SECMARK target.
  321. To compile it as a module, choose M here. If unsure, say N.
  322. config NETFILTER_XT_TARGET_TCPMSS
  323. tristate '"TCPMSS" target support'
  324. depends on NETFILTER_XTABLES && (IPV6 || IPV6=n)
  325. ---help---
  326. This option adds a `TCPMSS' target, which allows you to alter the
  327. MSS value of TCP SYN packets, to control the maximum size for that
  328. connection (usually limiting it to your outgoing interface's MTU
  329. minus 40).
  330. This is used to overcome criminally braindead ISPs or servers which
  331. block ICMP Fragmentation Needed packets. The symptoms of this
  332. problem are that everything works fine from your Linux
  333. firewall/router, but machines behind it can never exchange large
  334. packets:
  335. 1) Web browsers connect, then hang with no data received.
  336. 2) Small mail works fine, but large emails hang.
  337. 3) ssh works fine, but scp hangs after initial handshaking.
  338. Workaround: activate this option and add a rule to your firewall
  339. configuration like:
  340. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  341. -j TCPMSS --clamp-mss-to-pmtu
  342. To compile it as a module, choose M here. If unsure, say N.
  343. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  344. tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
  345. depends on EXPERIMENTAL && NETFILTER_XTABLES
  346. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  347. help
  348. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  349. TCP options from TCP packets.
  350. config NETFILTER_XT_MATCH_COMMENT
  351. tristate '"comment" match support'
  352. depends on NETFILTER_XTABLES
  353. help
  354. This option adds a `comment' dummy-match, which allows you to put
  355. comments in your iptables ruleset.
  356. If you want to compile it as a module, say M here and read
  357. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  358. config NETFILTER_XT_MATCH_CONNBYTES
  359. tristate '"connbytes" per-connection counter match support'
  360. depends on NETFILTER_XTABLES
  361. depends on NF_CONNTRACK
  362. select NF_CT_ACCT
  363. help
  364. This option adds a `connbytes' match, which allows you to match the
  365. number of bytes and/or packets for each direction within a connection.
  366. If you want to compile it as a module, say M here and read
  367. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  368. config NETFILTER_XT_MATCH_CONNLIMIT
  369. tristate '"connlimit" match support"'
  370. depends on NETFILTER_XTABLES
  371. depends on NF_CONNTRACK
  372. ---help---
  373. This match allows you to match against the number of parallel
  374. connections to a server per client IP address (or address block).
  375. config NETFILTER_XT_MATCH_CONNMARK
  376. tristate '"connmark" connection mark match support'
  377. depends on NETFILTER_XTABLES
  378. depends on NF_CONNTRACK
  379. select NF_CONNTRACK_MARK
  380. help
  381. This option adds a `connmark' match, which allows you to match the
  382. connection mark value previously set for the session by `CONNMARK'.
  383. If you want to compile it as a module, say M here and read
  384. <file:Documentation/kbuild/modules.txt>. The module will be called
  385. ipt_connmark.ko. If unsure, say `N'.
  386. config NETFILTER_XT_MATCH_CONNTRACK
  387. tristate '"conntrack" connection tracking match support'
  388. depends on NETFILTER_XTABLES
  389. depends on NF_CONNTRACK
  390. help
  391. This is a general conntrack match module, a superset of the state match.
  392. It allows matching on additional conntrack information, which is
  393. useful in complex configurations, such as NAT gateways with multiple
  394. internet links or tunnels.
  395. To compile it as a module, choose M here. If unsure, say N.
  396. config NETFILTER_XT_MATCH_DCCP
  397. tristate '"dccp" protocol match support'
  398. depends on NETFILTER_XTABLES
  399. help
  400. With this option enabled, you will be able to use the iptables
  401. `dccp' match in order to match on DCCP source/destination ports
  402. and DCCP flags.
  403. If you want to compile it as a module, say M here and read
  404. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  405. config NETFILTER_XT_MATCH_DSCP
  406. tristate '"dscp" and "tos" match support'
  407. depends on NETFILTER_XTABLES
  408. help
  409. This option adds a `DSCP' match, which allows you to match against
  410. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  411. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  412. It will also add a "tos" match, which allows you to match packets
  413. based on the Type Of Service fields of the IPv4 packet (which share
  414. the same bits as DSCP).
  415. To compile it as a module, choose M here. If unsure, say N.
  416. config NETFILTER_XT_MATCH_ESP
  417. tristate '"esp" match support'
  418. depends on NETFILTER_XTABLES
  419. help
  420. This match extension allows you to match a range of SPIs
  421. inside ESP header of IPSec packets.
  422. To compile it as a module, choose M here. If unsure, say N.
  423. config NETFILTER_XT_MATCH_HELPER
  424. tristate '"helper" match support'
  425. depends on NETFILTER_XTABLES
  426. depends on NF_CONNTRACK
  427. help
  428. Helper matching allows you to match packets in dynamic connections
  429. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  430. To compile it as a module, choose M here. If unsure, say Y.
  431. config NETFILTER_XT_MATCH_LENGTH
  432. tristate '"length" match support'
  433. depends on NETFILTER_XTABLES
  434. help
  435. This option allows you to match the length of a packet against a
  436. specific value or range of values.
  437. To compile it as a module, choose M here. If unsure, say N.
  438. config NETFILTER_XT_MATCH_LIMIT
  439. tristate '"limit" match support'
  440. depends on NETFILTER_XTABLES
  441. help
  442. limit matching allows you to control the rate at which a rule can be
  443. matched: mainly useful in combination with the LOG target ("LOG
  444. target support", below) and to avoid some Denial of Service attacks.
  445. To compile it as a module, choose M here. If unsure, say N.
  446. config NETFILTER_XT_MATCH_MAC
  447. tristate '"mac" address match support'
  448. depends on NETFILTER_XTABLES
  449. help
  450. MAC matching allows you to match packets based on the source
  451. Ethernet address of the packet.
  452. To compile it as a module, choose M here. If unsure, say N.
  453. config NETFILTER_XT_MATCH_MARK
  454. tristate '"mark" match support'
  455. depends on NETFILTER_XTABLES
  456. help
  457. Netfilter mark matching allows you to match packets based on the
  458. `nfmark' value in the packet. This can be set by the MARK target
  459. (see below).
  460. To compile it as a module, choose M here. If unsure, say N.
  461. config NETFILTER_XT_MATCH_OWNER
  462. tristate '"owner" match support'
  463. depends on NETFILTER_XTABLES
  464. ---help---
  465. Socket owner matching allows you to match locally-generated packets
  466. based on who created the socket: the user or group. It is also
  467. possible to check whether a socket actually exists.
  468. config NETFILTER_XT_MATCH_POLICY
  469. tristate 'IPsec "policy" match support'
  470. depends on NETFILTER_XTABLES && XFRM
  471. help
  472. Policy matching allows you to match packets based on the
  473. IPsec policy that was used during decapsulation/will
  474. be used during encapsulation.
  475. To compile it as a module, choose M here. If unsure, say N.
  476. config NETFILTER_XT_MATCH_MULTIPORT
  477. tristate '"multiport" Multiple port match support'
  478. depends on NETFILTER_XTABLES
  479. help
  480. Multiport matching allows you to match TCP or UDP packets based on
  481. a series of source or destination ports: normally a rule can only
  482. match a single range of ports.
  483. To compile it as a module, choose M here. If unsure, say N.
  484. config NETFILTER_XT_MATCH_PHYSDEV
  485. tristate '"physdev" match support'
  486. depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
  487. help
  488. Physdev packet matching matches against the physical bridge ports
  489. the IP packet arrived on or will leave by.
  490. To compile it as a module, choose M here. If unsure, say N.
  491. config NETFILTER_XT_MATCH_PKTTYPE
  492. tristate '"pkttype" packet type match support'
  493. depends on NETFILTER_XTABLES
  494. help
  495. Packet type matching allows you to match a packet by
  496. its "class", eg. BROADCAST, MULTICAST, ...
  497. Typical usage:
  498. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  499. To compile it as a module, choose M here. If unsure, say N.
  500. config NETFILTER_XT_MATCH_QUOTA
  501. tristate '"quota" match support'
  502. depends on NETFILTER_XTABLES
  503. help
  504. This option adds a `quota' match, which allows to match on a
  505. byte counter.
  506. If you want to compile it as a module, say M here and read
  507. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  508. config NETFILTER_XT_MATCH_RATEEST
  509. tristate '"rateest" match support'
  510. depends on NETFILTER_XTABLES
  511. select NETFILTER_XT_TARGET_RATEEST
  512. help
  513. This option adds a `rateest' match, which allows to match on the
  514. rate estimated by the RATEEST target.
  515. To compile it as a module, choose M here. If unsure, say N.
  516. config NETFILTER_XT_MATCH_REALM
  517. tristate '"realm" match support'
  518. depends on NETFILTER_XTABLES
  519. select NET_CLS_ROUTE
  520. help
  521. This option adds a `realm' match, which allows you to use the realm
  522. key from the routing subsystem inside iptables.
  523. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  524. in tc world.
  525. If you want to compile it as a module, say M here and read
  526. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  527. config NETFILTER_XT_MATCH_SCTP
  528. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  529. depends on NETFILTER_XTABLES && EXPERIMENTAL
  530. help
  531. With this option enabled, you will be able to use the
  532. `sctp' match in order to match on SCTP source/destination ports
  533. and SCTP chunk types.
  534. If you want to compile it as a module, say M here and read
  535. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  536. config NETFILTER_XT_MATCH_STATE
  537. tristate '"state" match support'
  538. depends on NETFILTER_XTABLES
  539. depends on NF_CONNTRACK
  540. help
  541. Connection state matching allows you to match packets based on their
  542. relationship to a tracked connection (ie. previous packets). This
  543. is a powerful tool for packet classification.
  544. To compile it as a module, choose M here. If unsure, say N.
  545. config NETFILTER_XT_MATCH_STATISTIC
  546. tristate '"statistic" match support'
  547. depends on NETFILTER_XTABLES
  548. help
  549. This option adds a `statistic' match, which allows you to match
  550. on packets periodically or randomly with a given percentage.
  551. To compile it as a module, choose M here. If unsure, say N.
  552. config NETFILTER_XT_MATCH_STRING
  553. tristate '"string" match support'
  554. depends on NETFILTER_XTABLES
  555. select TEXTSEARCH
  556. select TEXTSEARCH_KMP
  557. select TEXTSEARCH_BM
  558. select TEXTSEARCH_FSM
  559. help
  560. This option adds a `string' match, which allows you to look for
  561. pattern matchings in packets.
  562. To compile it as a module, choose M here. If unsure, say N.
  563. config NETFILTER_XT_MATCH_TCPMSS
  564. tristate '"tcpmss" match support'
  565. depends on NETFILTER_XTABLES
  566. help
  567. This option adds a `tcpmss' match, which allows you to examine the
  568. MSS value of TCP SYN packets, which control the maximum packet size
  569. for that connection.
  570. To compile it as a module, choose M here. If unsure, say N.
  571. config NETFILTER_XT_MATCH_TIME
  572. tristate '"time" match support'
  573. depends on NETFILTER_XTABLES
  574. ---help---
  575. This option adds a "time" match, which allows you to match based on
  576. the packet arrival time (at the machine which netfilter is running)
  577. on) or departure time/date (for locally generated packets).
  578. If you say Y here, try `iptables -m time --help` for
  579. more information.
  580. If you want to compile it as a module, say M here.
  581. If unsure, say N.
  582. config NETFILTER_XT_MATCH_U32
  583. tristate '"u32" match support'
  584. depends on NETFILTER_XTABLES
  585. ---help---
  586. u32 allows you to extract quantities of up to 4 bytes from a packet,
  587. AND them with specified masks, shift them by specified amounts and
  588. test whether the results are in any of a set of specified ranges.
  589. The specification of what to extract is general enough to skip over
  590. headers with lengths stored in the packet, as in IP or TCP header
  591. lengths.
  592. Details and examples are in the kernel module source.
  593. config NETFILTER_XT_MATCH_HASHLIMIT
  594. tristate '"hashlimit" match support'
  595. depends on NETFILTER_XTABLES && (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
  596. help
  597. This option adds a `hashlimit' match.
  598. As opposed to `limit', this match dynamically creates a hash table
  599. of limit buckets, based on your selection of source/destination
  600. addresses and/or ports.
  601. It enables you to express policies like `10kpps for any given
  602. destination address' or `500pps from any given source address'
  603. with a single rule.
  604. endmenu