Kconfig 26 KB

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