Kconfig 32 KB

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