Kconfig 28 KB

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