Kconfig 28 KB

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