Kconfig 29 KB

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