Kconfig 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  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. # transparent proxy support
  239. config NETFILTER_TPROXY
  240. tristate "Transparent proxying support (EXPERIMENTAL)"
  241. depends on EXPERIMENTAL
  242. depends on IP_NF_MANGLE
  243. depends on NETFILTER_ADVANCED
  244. help
  245. This option enables transparent proxying support, that is,
  246. support for handling non-locally bound IPv4 TCP and UDP sockets.
  247. For it to work you will have to configure certain iptables rules
  248. and use policy routing. For more information on how to set it up
  249. see Documentation/networking/tproxy.txt.
  250. To compile it as a module, choose M here. If unsure, say N.
  251. config NETFILTER_XTABLES
  252. tristate "Netfilter Xtables support (required for ip_tables)"
  253. default m if NETFILTER_ADVANCED=n
  254. help
  255. This is required if you intend to use any of ip_tables,
  256. ip6_tables or arp_tables.
  257. # alphabetically ordered list of targets
  258. config NETFILTER_XT_TARGET_CLASSIFY
  259. tristate '"CLASSIFY" target support'
  260. depends on NETFILTER_XTABLES
  261. depends on NETFILTER_ADVANCED
  262. help
  263. This option adds a `CLASSIFY' target, which enables the user to set
  264. the priority of a packet. Some qdiscs can use this value for
  265. classification, among these are:
  266. atm, cbq, dsmark, pfifo_fast, htb, prio
  267. To compile it as a module, choose M here. If unsure, say N.
  268. config NETFILTER_XT_TARGET_CONNMARK
  269. tristate '"CONNMARK" target support'
  270. depends on NETFILTER_XTABLES
  271. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  272. depends on NF_CONNTRACK
  273. depends on NETFILTER_ADVANCED
  274. select NF_CONNTRACK_MARK
  275. help
  276. This option adds a `CONNMARK' target, which allows one to manipulate
  277. the connection mark value. Similar to the MARK target, but
  278. affects the connection mark value rather than the packet mark value.
  279. If you want to compile it as a module, say M here and read
  280. <file:Documentation/kbuild/modules.txt>. The module will be called
  281. ipt_CONNMARK.ko. If unsure, say `N'.
  282. config NETFILTER_XT_TARGET_DSCP
  283. tristate '"DSCP" and "TOS" target support'
  284. depends on NETFILTER_XTABLES
  285. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  286. depends on NETFILTER_ADVANCED
  287. help
  288. This option adds a `DSCP' target, which allows you to manipulate
  289. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  290. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  291. It also adds the "TOS" target, which allows you to create rules in
  292. the "mangle" table which alter the Type Of Service field of an IPv4
  293. or the Priority field of an IPv6 packet, prior to routing.
  294. To compile it as a module, choose M here. If unsure, say N.
  295. config NETFILTER_XT_TARGET_MARK
  296. tristate '"MARK" target support'
  297. depends on NETFILTER_XTABLES
  298. default m if NETFILTER_ADVANCED=n
  299. help
  300. This option adds a `MARK' target, which allows you to create rules
  301. in the `mangle' table which alter the netfilter mark (nfmark) field
  302. associated with the packet prior to routing. This can change
  303. the routing method (see `Use netfilter MARK value as routing
  304. key') and can also be used by other subsystems to change their
  305. behavior.
  306. To compile it as a module, choose M here. If unsure, say N.
  307. config NETFILTER_XT_TARGET_NFQUEUE
  308. tristate '"NFQUEUE" target Support'
  309. depends on NETFILTER_XTABLES
  310. depends on NETFILTER_ADVANCED
  311. help
  312. This target replaced the old obsolete QUEUE target.
  313. As opposed to QUEUE, it supports 65535 different queues,
  314. not just one.
  315. To compile it as a module, choose M here. If unsure, say N.
  316. config NETFILTER_XT_TARGET_NFLOG
  317. tristate '"NFLOG" target support'
  318. depends on NETFILTER_XTABLES
  319. default m if NETFILTER_ADVANCED=n
  320. help
  321. This option enables the NFLOG target, which allows to LOG
  322. messages through the netfilter logging API, which can use
  323. either the old LOG target, the old ULOG target or nfnetlink_log
  324. as backend.
  325. To compile it as a module, choose M here. If unsure, say N.
  326. config NETFILTER_XT_TARGET_NOTRACK
  327. tristate '"NOTRACK" target support'
  328. depends on NETFILTER_XTABLES
  329. depends on IP_NF_RAW || IP6_NF_RAW
  330. depends on NF_CONNTRACK
  331. depends on NETFILTER_ADVANCED
  332. help
  333. The NOTRACK target allows a select rule to specify
  334. which packets *not* to enter the conntrack/NAT
  335. subsystem with all the consequences (no ICMP error tracking,
  336. no protocol helpers for the selected packets).
  337. If you want to compile it as a module, say M here and read
  338. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  339. config NETFILTER_XT_TARGET_RATEEST
  340. tristate '"RATEEST" target support'
  341. depends on NETFILTER_XTABLES
  342. depends on NETFILTER_ADVANCED
  343. help
  344. This option adds a `RATEEST' target, which allows to measure
  345. rates similar to TC estimators. The `rateest' match can be
  346. used to match on the measured rates.
  347. To compile it as a module, choose M here. If unsure, say N.
  348. config NETFILTER_XT_TARGET_TRACE
  349. tristate '"TRACE" target support'
  350. depends on NETFILTER_XTABLES
  351. depends on IP_NF_RAW || IP6_NF_RAW
  352. depends on NETFILTER_ADVANCED
  353. help
  354. The TRACE target allows you to mark packets so that the kernel
  355. will log every rule which match the packets as those traverse
  356. the tables, chains, rules.
  357. If you want to compile it as a module, say M here and read
  358. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  359. config NETFILTER_XT_TARGET_SECMARK
  360. tristate '"SECMARK" target support'
  361. depends on NETFILTER_XTABLES && NETWORK_SECMARK
  362. default m if NETFILTER_ADVANCED=n
  363. help
  364. The SECMARK target allows security marking of network
  365. packets, for use with security subsystems.
  366. To compile it as a module, choose M here. If unsure, say N.
  367. config NETFILTER_XT_TARGET_CONNSECMARK
  368. tristate '"CONNSECMARK" target support'
  369. depends on NETFILTER_XTABLES && NF_CONNTRACK && NF_CONNTRACK_SECMARK
  370. default m if NETFILTER_ADVANCED=n
  371. help
  372. The CONNSECMARK target copies security markings from packets
  373. to connections, and restores security markings from connections
  374. to packets (if the packets are not already marked). This would
  375. normally be used in conjunction with the SECMARK target.
  376. To compile it as a module, choose M here. If unsure, say N.
  377. config NETFILTER_XT_TARGET_TCPMSS
  378. tristate '"TCPMSS" target support'
  379. depends on NETFILTER_XTABLES && (IPV6 || IPV6=n)
  380. default m if NETFILTER_ADVANCED=n
  381. ---help---
  382. This option adds a `TCPMSS' target, which allows you to alter the
  383. MSS value of TCP SYN packets, to control the maximum size for that
  384. connection (usually limiting it to your outgoing interface's MTU
  385. minus 40).
  386. This is used to overcome criminally braindead ISPs or servers which
  387. block ICMP Fragmentation Needed packets. The symptoms of this
  388. problem are that everything works fine from your Linux
  389. firewall/router, but machines behind it can never exchange large
  390. packets:
  391. 1) Web browsers connect, then hang with no data received.
  392. 2) Small mail works fine, but large emails hang.
  393. 3) ssh works fine, but scp hangs after initial handshaking.
  394. Workaround: activate this option and add a rule to your firewall
  395. configuration like:
  396. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  397. -j TCPMSS --clamp-mss-to-pmtu
  398. To compile it as a module, choose M here. If unsure, say N.
  399. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  400. tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
  401. depends on EXPERIMENTAL && NETFILTER_XTABLES
  402. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  403. depends on NETFILTER_ADVANCED
  404. help
  405. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  406. TCP options from TCP packets.
  407. config NETFILTER_XT_MATCH_COMMENT
  408. tristate '"comment" match support'
  409. depends on NETFILTER_XTABLES
  410. depends on NETFILTER_ADVANCED
  411. help
  412. This option adds a `comment' dummy-match, which allows you to put
  413. comments in your iptables ruleset.
  414. If you want to compile it as a module, say M here and read
  415. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  416. config NETFILTER_XT_MATCH_CONNBYTES
  417. tristate '"connbytes" per-connection counter match support'
  418. depends on NETFILTER_XTABLES
  419. depends on NF_CONNTRACK
  420. depends on NETFILTER_ADVANCED
  421. select NF_CT_ACCT
  422. help
  423. This option adds a `connbytes' match, which allows you to match the
  424. number of bytes and/or packets for each direction within a connection.
  425. If you want to compile it as a module, say M here and read
  426. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  427. config NETFILTER_XT_MATCH_CONNLIMIT
  428. tristate '"connlimit" match support"'
  429. depends on NETFILTER_XTABLES
  430. depends on NF_CONNTRACK
  431. depends on NETFILTER_ADVANCED
  432. ---help---
  433. This match allows you to match against the number of parallel
  434. connections to a server per client IP address (or address block).
  435. config NETFILTER_XT_MATCH_CONNMARK
  436. tristate '"connmark" connection mark match support'
  437. depends on NETFILTER_XTABLES
  438. depends on NF_CONNTRACK
  439. depends on NETFILTER_ADVANCED
  440. select NF_CONNTRACK_MARK
  441. help
  442. This option adds a `connmark' match, which allows you to match the
  443. connection mark value previously set for the session by `CONNMARK'.
  444. If you want to compile it as a module, say M here and read
  445. <file:Documentation/kbuild/modules.txt>. The module will be called
  446. ipt_connmark.ko. If unsure, say `N'.
  447. config NETFILTER_XT_MATCH_CONNTRACK
  448. tristate '"conntrack" connection tracking match support'
  449. depends on NETFILTER_XTABLES
  450. depends on NF_CONNTRACK
  451. default m if NETFILTER_ADVANCED=n
  452. help
  453. This is a general conntrack match module, a superset of the state match.
  454. It allows matching on additional conntrack information, which is
  455. useful in complex configurations, such as NAT gateways with multiple
  456. internet links or tunnels.
  457. To compile it as a module, choose M here. If unsure, say N.
  458. config NETFILTER_XT_MATCH_DCCP
  459. tristate '"dccp" protocol match support'
  460. depends on NETFILTER_XTABLES
  461. depends on NETFILTER_ADVANCED
  462. default IP_DCCP
  463. help
  464. With this option enabled, you will be able to use the iptables
  465. `dccp' match in order to match on DCCP source/destination ports
  466. and DCCP flags.
  467. If you want to compile it as a module, say M here and read
  468. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  469. config NETFILTER_XT_MATCH_DSCP
  470. tristate '"dscp" and "tos" match support'
  471. depends on NETFILTER_XTABLES
  472. depends on NETFILTER_ADVANCED
  473. help
  474. This option adds a `DSCP' match, which allows you to match against
  475. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  476. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  477. It will also add a "tos" match, which allows you to match packets
  478. based on the Type Of Service fields of the IPv4 packet (which share
  479. the same bits as DSCP).
  480. To compile it as a module, choose M here. If unsure, say N.
  481. config NETFILTER_XT_MATCH_ESP
  482. tristate '"esp" match support'
  483. depends on NETFILTER_XTABLES
  484. depends on NETFILTER_ADVANCED
  485. help
  486. This match extension allows you to match a range of SPIs
  487. inside ESP header of IPSec packets.
  488. To compile it as a module, choose M here. If unsure, say N.
  489. config NETFILTER_XT_MATCH_HELPER
  490. tristate '"helper" match support'
  491. depends on NETFILTER_XTABLES
  492. depends on NF_CONNTRACK
  493. depends on NETFILTER_ADVANCED
  494. help
  495. Helper matching allows you to match packets in dynamic connections
  496. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  497. To compile it as a module, choose M here. If unsure, say Y.
  498. config NETFILTER_XT_MATCH_IPRANGE
  499. tristate '"iprange" address range match support'
  500. depends on NETFILTER_XTABLES
  501. depends on NETFILTER_ADVANCED
  502. ---help---
  503. This option adds a "iprange" match, which allows you to match based on
  504. an IP address range. (Normal iptables only matches on single addresses
  505. with an optional mask.)
  506. If unsure, say M.
  507. config NETFILTER_XT_MATCH_LENGTH
  508. tristate '"length" match support'
  509. depends on NETFILTER_XTABLES
  510. depends on NETFILTER_ADVANCED
  511. help
  512. This option allows you to match the length of a packet against a
  513. specific value or range of values.
  514. To compile it as a module, choose M here. If unsure, say N.
  515. config NETFILTER_XT_MATCH_LIMIT
  516. tristate '"limit" match support'
  517. depends on NETFILTER_XTABLES
  518. depends on NETFILTER_ADVANCED
  519. help
  520. limit matching allows you to control the rate at which a rule can be
  521. matched: mainly useful in combination with the LOG target ("LOG
  522. target support", below) and to avoid some Denial of Service attacks.
  523. To compile it as a module, choose M here. If unsure, say N.
  524. config NETFILTER_XT_MATCH_MAC
  525. tristate '"mac" address match support'
  526. depends on NETFILTER_XTABLES
  527. depends on NETFILTER_ADVANCED
  528. help
  529. MAC matching allows you to match packets based on the source
  530. Ethernet address of the packet.
  531. To compile it as a module, choose M here. If unsure, say N.
  532. config NETFILTER_XT_MATCH_MARK
  533. tristate '"mark" match support'
  534. depends on NETFILTER_XTABLES
  535. default m if NETFILTER_ADVANCED=n
  536. help
  537. Netfilter mark matching allows you to match packets based on the
  538. `nfmark' value in the packet. This can be set by the MARK target
  539. (see below).
  540. To compile it as a module, choose M here. If unsure, say N.
  541. config NETFILTER_XT_MATCH_OWNER
  542. tristate '"owner" match support'
  543. depends on NETFILTER_XTABLES
  544. depends on NETFILTER_ADVANCED
  545. ---help---
  546. Socket owner matching allows you to match locally-generated packets
  547. based on who created the socket: the user or group. It is also
  548. possible to check whether a socket actually exists.
  549. config NETFILTER_XT_MATCH_POLICY
  550. tristate 'IPsec "policy" match support'
  551. depends on NETFILTER_XTABLES && XFRM
  552. default m if NETFILTER_ADVANCED=n
  553. help
  554. Policy matching allows you to match packets based on the
  555. IPsec policy that was used during decapsulation/will
  556. be used during encapsulation.
  557. To compile it as a module, choose M here. If unsure, say N.
  558. config NETFILTER_XT_MATCH_MULTIPORT
  559. tristate '"multiport" Multiple port match support'
  560. depends on NETFILTER_XTABLES
  561. depends on NETFILTER_ADVANCED
  562. help
  563. Multiport matching allows you to match TCP or UDP packets based on
  564. a series of source or destination ports: normally a rule can only
  565. match a single range of ports.
  566. To compile it as a module, choose M here. If unsure, say N.
  567. config NETFILTER_XT_MATCH_PHYSDEV
  568. tristate '"physdev" match support'
  569. depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
  570. depends on NETFILTER_ADVANCED
  571. help
  572. Physdev packet matching matches against the physical bridge ports
  573. the IP packet arrived on or will leave by.
  574. To compile it as a module, choose M here. If unsure, say N.
  575. config NETFILTER_XT_MATCH_PKTTYPE
  576. tristate '"pkttype" packet type match support'
  577. depends on NETFILTER_XTABLES
  578. depends on NETFILTER_ADVANCED
  579. help
  580. Packet type matching allows you to match a packet by
  581. its "class", eg. BROADCAST, MULTICAST, ...
  582. Typical usage:
  583. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  584. To compile it as a module, choose M here. If unsure, say N.
  585. config NETFILTER_XT_MATCH_QUOTA
  586. tristate '"quota" match support'
  587. depends on NETFILTER_XTABLES
  588. depends on NETFILTER_ADVANCED
  589. help
  590. This option adds a `quota' match, which allows to match on a
  591. byte counter.
  592. If you want to compile it as a module, say M here and read
  593. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  594. config NETFILTER_XT_MATCH_RATEEST
  595. tristate '"rateest" match support'
  596. depends on NETFILTER_XTABLES
  597. depends on NETFILTER_ADVANCED
  598. select NETFILTER_XT_TARGET_RATEEST
  599. help
  600. This option adds a `rateest' match, which allows to match on the
  601. rate estimated by the RATEEST target.
  602. To compile it as a module, choose M here. If unsure, say N.
  603. config NETFILTER_XT_MATCH_REALM
  604. tristate '"realm" match support'
  605. depends on NETFILTER_XTABLES
  606. depends on NETFILTER_ADVANCED
  607. select NET_CLS_ROUTE
  608. help
  609. This option adds a `realm' match, which allows you to use the realm
  610. key from the routing subsystem inside iptables.
  611. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  612. in tc world.
  613. If you want to compile it as a module, say M here and read
  614. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  615. config NETFILTER_XT_MATCH_RECENT
  616. tristate '"recent" match support'
  617. depends on NETFILTER_XTABLES
  618. depends on NETFILTER_ADVANCED
  619. ---help---
  620. This match is used for creating one or many lists of recently
  621. used addresses and then matching against that/those list(s).
  622. Short options are available by using 'iptables -m recent -h'
  623. Official Website: <http://snowman.net/projects/ipt_recent/>
  624. config NETFILTER_XT_MATCH_RECENT_PROC_COMPAT
  625. bool 'Enable obsolete /proc/net/ipt_recent'
  626. depends on NETFILTER_XT_MATCH_RECENT && PROC_FS
  627. ---help---
  628. This option enables the old /proc/net/ipt_recent interface,
  629. which has been obsoleted by /proc/net/xt_recent.
  630. config NETFILTER_XT_MATCH_SCTP
  631. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  632. depends on NETFILTER_XTABLES && EXPERIMENTAL
  633. depends on NETFILTER_ADVANCED
  634. default IP_SCTP
  635. help
  636. With this option enabled, you will be able to use the
  637. `sctp' match in order to match on SCTP source/destination ports
  638. and SCTP chunk types.
  639. If you want to compile it as a module, say M here and read
  640. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  641. config NETFILTER_XT_MATCH_SOCKET
  642. tristate '"socket" match support (EXPERIMENTAL)'
  643. depends on EXPERIMENTAL
  644. depends on NETFILTER_TPROXY
  645. depends on NETFILTER_XTABLES
  646. depends on NETFILTER_ADVANCED
  647. select NF_DEFRAG_IPV4
  648. help
  649. This option adds a `socket' match, which can be used to match
  650. packets for which a TCP or UDP socket lookup finds a valid socket.
  651. It can be used in combination with the MARK target and policy
  652. routing to implement full featured non-locally bound sockets.
  653. To compile it as a module, choose M here. If unsure, say N.
  654. config NETFILTER_XT_MATCH_STATE
  655. tristate '"state" match support'
  656. depends on NETFILTER_XTABLES
  657. depends on NF_CONNTRACK
  658. default m if NETFILTER_ADVANCED=n
  659. help
  660. Connection state matching allows you to match packets based on their
  661. relationship to a tracked connection (ie. previous packets). This
  662. is a powerful tool for packet classification.
  663. To compile it as a module, choose M here. If unsure, say N.
  664. config NETFILTER_XT_MATCH_STATISTIC
  665. tristate '"statistic" match support'
  666. depends on NETFILTER_XTABLES
  667. depends on NETFILTER_ADVANCED
  668. help
  669. This option adds a `statistic' match, which allows you to match
  670. on packets periodically or randomly with a given percentage.
  671. To compile it as a module, choose M here. If unsure, say N.
  672. config NETFILTER_XT_MATCH_STRING
  673. tristate '"string" match support'
  674. depends on NETFILTER_XTABLES
  675. depends on NETFILTER_ADVANCED
  676. select TEXTSEARCH
  677. select TEXTSEARCH_KMP
  678. select TEXTSEARCH_BM
  679. select TEXTSEARCH_FSM
  680. help
  681. This option adds a `string' match, which allows you to look for
  682. pattern matchings in packets.
  683. To compile it as a module, choose M here. If unsure, say N.
  684. config NETFILTER_XT_MATCH_TCPMSS
  685. tristate '"tcpmss" match support'
  686. depends on NETFILTER_XTABLES
  687. depends on NETFILTER_ADVANCED
  688. help
  689. This option adds a `tcpmss' match, which allows you to examine the
  690. MSS value of TCP SYN packets, which control the maximum packet size
  691. for that connection.
  692. To compile it as a module, choose M here. If unsure, say N.
  693. config NETFILTER_XT_MATCH_TIME
  694. tristate '"time" match support'
  695. depends on NETFILTER_XTABLES
  696. depends on NETFILTER_ADVANCED
  697. ---help---
  698. This option adds a "time" match, which allows you to match based on
  699. the packet arrival time (at the machine which netfilter is running)
  700. on) or departure time/date (for locally generated packets).
  701. If you say Y here, try `iptables -m time --help` for
  702. more information.
  703. If you want to compile it as a module, say M here.
  704. If unsure, say N.
  705. config NETFILTER_XT_MATCH_U32
  706. tristate '"u32" match support'
  707. depends on NETFILTER_XTABLES
  708. depends on NETFILTER_ADVANCED
  709. ---help---
  710. u32 allows you to extract quantities of up to 4 bytes from a packet,
  711. AND them with specified masks, shift them by specified amounts and
  712. test whether the results are in any of a set of specified ranges.
  713. The specification of what to extract is general enough to skip over
  714. headers with lengths stored in the packet, as in IP or TCP header
  715. lengths.
  716. Details and examples are in the kernel module source.
  717. config NETFILTER_XT_MATCH_HASHLIMIT
  718. tristate '"hashlimit" match support'
  719. depends on NETFILTER_XTABLES && (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
  720. depends on NETFILTER_ADVANCED
  721. help
  722. This option adds a `hashlimit' match.
  723. As opposed to `limit', this match dynamically creates a hash table
  724. of limit buckets, based on your selection of source/destination
  725. addresses and/or ports.
  726. It enables you to express policies like `10kpps for any given
  727. destination address' or `500pps from any given source address'
  728. with a single rule.
  729. endmenu