Kconfig 33 KB

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