Kconfig 34 KB

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