Kconfig 28 KB

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