Kconfig 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  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_CHECKSUM
  268. tristate "CHECKSUM target support"
  269. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  270. depends on NETFILTER_ADVANCED
  271. ---help---
  272. This option adds a `CHECKSUM' target, which can be used in the iptables mangle
  273. table.
  274. You can use this target to compute and fill in the checksum in
  275. a packet that lacks a checksum. This is particularly useful,
  276. if you need to work around old applications such as dhcp clients,
  277. that do not work well with checksum offloads, but don't want to disable
  278. checksum offload in your device.
  279. To compile it as a module, choose M here. If unsure, say N.
  280. config NETFILTER_XT_TARGET_CLASSIFY
  281. tristate '"CLASSIFY" target support'
  282. depends on NETFILTER_ADVANCED
  283. help
  284. This option adds a `CLASSIFY' target, which enables the user to set
  285. the priority of a packet. Some qdiscs can use this value for
  286. classification, among these are:
  287. atm, cbq, dsmark, pfifo_fast, htb, prio
  288. To compile it as a module, choose M here. If unsure, say N.
  289. config NETFILTER_XT_TARGET_CONNMARK
  290. tristate '"CONNMARK" target support'
  291. depends on NF_CONNTRACK
  292. depends on NETFILTER_ADVANCED
  293. select NETFILTER_XT_CONNMARK
  294. ---help---
  295. This is a backwards-compat option for the user's convenience
  296. (e.g. when running oldconfig). It selects
  297. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  298. config NETFILTER_XT_TARGET_CONNSECMARK
  299. tristate '"CONNSECMARK" target support'
  300. depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
  301. default m if NETFILTER_ADVANCED=n
  302. help
  303. The CONNSECMARK target copies security markings from packets
  304. to connections, and restores security markings from connections
  305. to packets (if the packets are not already marked). This would
  306. normally be used in conjunction with the SECMARK target.
  307. To compile it as a module, choose M here. If unsure, say N.
  308. config NETFILTER_XT_TARGET_CT
  309. tristate '"CT" target support'
  310. depends on NF_CONNTRACK
  311. depends on IP_NF_RAW || IP6_NF_RAW
  312. depends on NETFILTER_ADVANCED
  313. help
  314. This options adds a `CT' target, which allows to specify initial
  315. connection tracking parameters like events to be delivered and
  316. the helper to be used.
  317. To compile it as a module, choose M here. If unsure, say N.
  318. config NETFILTER_XT_TARGET_DSCP
  319. tristate '"DSCP" and "TOS" target support'
  320. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  321. depends on NETFILTER_ADVANCED
  322. help
  323. This option adds a `DSCP' target, which allows you to manipulate
  324. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  325. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  326. It also adds the "TOS" target, which allows you to create rules in
  327. the "mangle" table which alter the Type Of Service field of an IPv4
  328. or the Priority field of an IPv6 packet, prior to routing.
  329. To compile it as a module, choose M here. If unsure, say N.
  330. config NETFILTER_XT_TARGET_HL
  331. tristate '"HL" hoplimit target support'
  332. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  333. depends on NETFILTER_ADVANCED
  334. ---help---
  335. This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
  336. targets, which enable the user to change the
  337. hoplimit/time-to-live value of the IP header.
  338. While it is safe to decrement the hoplimit/TTL value, the
  339. modules also allow to increment and set the hoplimit value of
  340. the header to arbitrary values. This is EXTREMELY DANGEROUS
  341. since you can easily create immortal packets that loop
  342. forever on the network.
  343. config NETFILTER_XT_TARGET_IDLETIMER
  344. tristate "IDLETIMER target support"
  345. depends on NETFILTER_ADVANCED
  346. help
  347. This option adds the `IDLETIMER' target. Each matching packet
  348. resets the timer associated with label specified when the rule is
  349. added. When the timer expires, it triggers a sysfs notification.
  350. The remaining time for expiration can be read via sysfs.
  351. To compile it as a module, choose M here. If unsure, say N.
  352. config NETFILTER_XT_TARGET_LED
  353. tristate '"LED" target support'
  354. depends on LEDS_CLASS && LEDS_TRIGGERS
  355. depends on NETFILTER_ADVANCED
  356. help
  357. This option adds a `LED' target, which allows you to blink LEDs in
  358. response to particular packets passing through your machine.
  359. This can be used to turn a spare LED into a network activity LED,
  360. which only flashes in response to FTP transfers, for example. Or
  361. you could have an LED which lights up for a minute or two every time
  362. somebody connects to your machine via SSH.
  363. You will need support for the "led" class to make this work.
  364. To create an LED trigger for incoming SSH traffic:
  365. iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
  366. Then attach the new trigger to an LED on your system:
  367. echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
  368. For more information on the LEDs available on your system, see
  369. Documentation/leds-class.txt
  370. config NETFILTER_XT_TARGET_MARK
  371. tristate '"MARK" target support'
  372. depends on NETFILTER_ADVANCED
  373. select NETFILTER_XT_MARK
  374. ---help---
  375. This is a backwards-compat option for the user's convenience
  376. (e.g. when running oldconfig). It selects
  377. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  378. config NETFILTER_XT_TARGET_NFLOG
  379. tristate '"NFLOG" target support'
  380. default m if NETFILTER_ADVANCED=n
  381. select NETFILTER_NETLINK_LOG
  382. help
  383. This option enables the NFLOG target, which allows to LOG
  384. messages through nfnetlink_log.
  385. To compile it as a module, choose M here. If unsure, say N.
  386. config NETFILTER_XT_TARGET_NFQUEUE
  387. tristate '"NFQUEUE" target Support'
  388. depends on NETFILTER_ADVANCED
  389. help
  390. This target replaced the old obsolete QUEUE target.
  391. As opposed to QUEUE, it supports 65535 different queues,
  392. not just one.
  393. To compile it as a module, choose M here. If unsure, say N.
  394. config NETFILTER_XT_TARGET_NOTRACK
  395. tristate '"NOTRACK" target support'
  396. depends on IP_NF_RAW || IP6_NF_RAW
  397. depends on NF_CONNTRACK
  398. depends on NETFILTER_ADVANCED
  399. help
  400. The NOTRACK target allows a select rule to specify
  401. which packets *not* to enter the conntrack/NAT
  402. subsystem with all the consequences (no ICMP error tracking,
  403. no protocol helpers for the selected packets).
  404. If you want to compile it as a module, say M here and read
  405. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  406. config NETFILTER_XT_TARGET_RATEEST
  407. tristate '"RATEEST" target support'
  408. depends on NETFILTER_ADVANCED
  409. help
  410. This option adds a `RATEEST' target, which allows to measure
  411. rates similar to TC estimators. The `rateest' match can be
  412. used to match on the measured rates.
  413. To compile it as a module, choose M here. If unsure, say N.
  414. config NETFILTER_XT_TARGET_TEE
  415. tristate '"TEE" - packet cloning to alternate destination'
  416. depends on NETFILTER_ADVANCED
  417. depends on (IPV6 || IPV6=n)
  418. depends on !NF_CONNTRACK || NF_CONNTRACK
  419. ---help---
  420. This option adds a "TEE" target with which a packet can be cloned and
  421. this clone be rerouted to another nexthop.
  422. config NETFILTER_XT_TARGET_TPROXY
  423. tristate '"TPROXY" target support (EXPERIMENTAL)'
  424. depends on EXPERIMENTAL
  425. depends on NETFILTER_TPROXY
  426. depends on NETFILTER_XTABLES
  427. depends on NETFILTER_ADVANCED
  428. select NF_DEFRAG_IPV4
  429. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  430. help
  431. This option adds a `TPROXY' target, which is somewhat similar to
  432. REDIRECT. It can only be used in the mangle table and is useful
  433. to redirect traffic to a transparent proxy. It does _not_ depend
  434. on Netfilter connection tracking and NAT, unlike REDIRECT.
  435. To compile it as a module, choose M here. If unsure, say N.
  436. config NETFILTER_XT_TARGET_TRACE
  437. tristate '"TRACE" target support'
  438. depends on IP_NF_RAW || IP6_NF_RAW
  439. depends on NETFILTER_ADVANCED
  440. help
  441. The TRACE target allows you to mark packets so that the kernel
  442. will log every rule which match the packets as those traverse
  443. the tables, chains, rules.
  444. If you want to compile it as a module, say M here and read
  445. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  446. config NETFILTER_XT_TARGET_SECMARK
  447. tristate '"SECMARK" target support'
  448. depends on NETWORK_SECMARK
  449. default m if NETFILTER_ADVANCED=n
  450. help
  451. The SECMARK target allows security marking of network
  452. packets, for use with security subsystems.
  453. To compile it as a module, choose M here. If unsure, say N.
  454. config NETFILTER_XT_TARGET_TCPMSS
  455. tristate '"TCPMSS" target support'
  456. depends on (IPV6 || IPV6=n)
  457. default m if NETFILTER_ADVANCED=n
  458. ---help---
  459. This option adds a `TCPMSS' target, which allows you to alter the
  460. MSS value of TCP SYN packets, to control the maximum size for that
  461. connection (usually limiting it to your outgoing interface's MTU
  462. minus 40).
  463. This is used to overcome criminally braindead ISPs or servers which
  464. block ICMP Fragmentation Needed packets. The symptoms of this
  465. problem are that everything works fine from your Linux
  466. firewall/router, but machines behind it can never exchange large
  467. packets:
  468. 1) Web browsers connect, then hang with no data received.
  469. 2) Small mail works fine, but large emails hang.
  470. 3) ssh works fine, but scp hangs after initial handshaking.
  471. Workaround: activate this option and add a rule to your firewall
  472. configuration like:
  473. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  474. -j TCPMSS --clamp-mss-to-pmtu
  475. To compile it as a module, choose M here. If unsure, say N.
  476. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  477. tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
  478. depends on EXPERIMENTAL
  479. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  480. depends on NETFILTER_ADVANCED
  481. help
  482. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  483. TCP options from TCP packets.
  484. # alphabetically ordered list of matches
  485. comment "Xtables matches"
  486. config NETFILTER_XT_MATCH_CLUSTER
  487. tristate '"cluster" match support'
  488. depends on NF_CONNTRACK
  489. depends on NETFILTER_ADVANCED
  490. ---help---
  491. This option allows you to build work-load-sharing clusters of
  492. network servers/stateful firewalls without having a dedicated
  493. load-balancing router/server/switch. Basically, this match returns
  494. true when the packet must be handled by this cluster node. Thus,
  495. all nodes see all packets and this match decides which node handles
  496. what packets. The work-load sharing algorithm is based on source
  497. address hashing.
  498. If you say Y or M here, try `iptables -m cluster --help` for
  499. more information.
  500. config NETFILTER_XT_MATCH_COMMENT
  501. tristate '"comment" match support'
  502. depends on NETFILTER_ADVANCED
  503. help
  504. This option adds a `comment' dummy-match, which allows you to put
  505. comments in your iptables ruleset.
  506. If you want to compile it as a module, say M here and read
  507. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  508. config NETFILTER_XT_MATCH_CONNBYTES
  509. tristate '"connbytes" per-connection counter match support'
  510. depends on NF_CONNTRACK
  511. depends on NETFILTER_ADVANCED
  512. help
  513. This option adds a `connbytes' match, which allows you to match the
  514. number of bytes and/or packets for each direction within a connection.
  515. If you want to compile it as a module, say M here and read
  516. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  517. config NETFILTER_XT_MATCH_CONNLIMIT
  518. tristate '"connlimit" match support"'
  519. depends on NF_CONNTRACK
  520. depends on NETFILTER_ADVANCED
  521. ---help---
  522. This match allows you to match against the number of parallel
  523. connections to a server per client IP address (or address block).
  524. config NETFILTER_XT_MATCH_CONNMARK
  525. tristate '"connmark" connection mark match support'
  526. depends on NF_CONNTRACK
  527. depends on NETFILTER_ADVANCED
  528. select NETFILTER_XT_CONNMARK
  529. ---help---
  530. This is a backwards-compat option for the user's convenience
  531. (e.g. when running oldconfig). It selects
  532. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  533. config NETFILTER_XT_MATCH_CONNTRACK
  534. tristate '"conntrack" connection tracking match support'
  535. depends on NF_CONNTRACK
  536. default m if NETFILTER_ADVANCED=n
  537. help
  538. This is a general conntrack match module, a superset of the state match.
  539. It allows matching on additional conntrack information, which is
  540. useful in complex configurations, such as NAT gateways with multiple
  541. internet links or tunnels.
  542. To compile it as a module, choose M here. If unsure, say N.
  543. config NETFILTER_XT_MATCH_CPU
  544. tristate '"cpu" match support'
  545. depends on NETFILTER_ADVANCED
  546. help
  547. CPU matching allows you to match packets based on the CPU
  548. currently handling the packet.
  549. To compile it as a module, choose M here. If unsure, say N.
  550. config NETFILTER_XT_MATCH_DCCP
  551. tristate '"dccp" protocol match support'
  552. depends on NETFILTER_ADVANCED
  553. default IP_DCCP
  554. help
  555. With this option enabled, you will be able to use the iptables
  556. `dccp' match in order to match on DCCP source/destination ports
  557. and DCCP flags.
  558. If you want to compile it as a module, say M here and read
  559. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  560. config NETFILTER_XT_MATCH_DSCP
  561. tristate '"dscp" and "tos" match support'
  562. depends on NETFILTER_ADVANCED
  563. help
  564. This option adds a `DSCP' match, which allows you to match against
  565. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  566. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  567. It will also add a "tos" match, which allows you to match packets
  568. based on the Type Of Service fields of the IPv4 packet (which share
  569. the same bits as DSCP).
  570. To compile it as a module, choose M here. If unsure, say N.
  571. config NETFILTER_XT_MATCH_ESP
  572. tristate '"esp" match support'
  573. depends on NETFILTER_ADVANCED
  574. help
  575. This match extension allows you to match a range of SPIs
  576. inside ESP header of IPSec packets.
  577. To compile it as a module, choose M here. If unsure, say N.
  578. config NETFILTER_XT_MATCH_HASHLIMIT
  579. tristate '"hashlimit" match support'
  580. depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
  581. depends on NETFILTER_ADVANCED
  582. help
  583. This option adds a `hashlimit' match.
  584. As opposed to `limit', this match dynamically creates a hash table
  585. of limit buckets, based on your selection of source/destination
  586. addresses and/or ports.
  587. It enables you to express policies like `10kpps for any given
  588. destination address' or `500pps from any given source address'
  589. with a single rule.
  590. config NETFILTER_XT_MATCH_HELPER
  591. tristate '"helper" match support'
  592. depends on NF_CONNTRACK
  593. depends on NETFILTER_ADVANCED
  594. help
  595. Helper matching allows you to match packets in dynamic connections
  596. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  597. To compile it as a module, choose M here. If unsure, say Y.
  598. config NETFILTER_XT_MATCH_HL
  599. tristate '"hl" hoplimit/TTL match support'
  600. depends on NETFILTER_ADVANCED
  601. ---help---
  602. HL matching allows you to match packets based on the hoplimit
  603. in the IPv6 header, or the time-to-live field in the IPv4
  604. header of the packet.
  605. config NETFILTER_XT_MATCH_IPRANGE
  606. tristate '"iprange" address range match support'
  607. depends on NETFILTER_ADVANCED
  608. ---help---
  609. This option adds a "iprange" match, which allows you to match based on
  610. an IP address range. (Normal iptables only matches on single addresses
  611. with an optional mask.)
  612. If unsure, say M.
  613. config NETFILTER_XT_MATCH_IPVS
  614. tristate '"ipvs" match support'
  615. depends on IP_VS
  616. depends on NETFILTER_ADVANCED
  617. depends on NF_CONNTRACK
  618. help
  619. This option allows you to match against IPVS properties of a packet.
  620. If unsure, say N.
  621. config NETFILTER_XT_MATCH_LENGTH
  622. tristate '"length" match support'
  623. depends on NETFILTER_ADVANCED
  624. help
  625. This option allows you to match the length of a packet against a
  626. specific value or range of values.
  627. To compile it as a module, choose M here. If unsure, say N.
  628. config NETFILTER_XT_MATCH_LIMIT
  629. tristate '"limit" match support'
  630. depends on NETFILTER_ADVANCED
  631. help
  632. limit matching allows you to control the rate at which a rule can be
  633. matched: mainly useful in combination with the LOG target ("LOG
  634. target support", below) and to avoid some Denial of Service attacks.
  635. To compile it as a module, choose M here. If unsure, say N.
  636. config NETFILTER_XT_MATCH_MAC
  637. tristate '"mac" address match support'
  638. depends on NETFILTER_ADVANCED
  639. help
  640. MAC matching allows you to match packets based on the source
  641. Ethernet address of the packet.
  642. To compile it as a module, choose M here. If unsure, say N.
  643. config NETFILTER_XT_MATCH_MARK
  644. tristate '"mark" match support'
  645. depends on NETFILTER_ADVANCED
  646. select NETFILTER_XT_MARK
  647. ---help---
  648. This is a backwards-compat option for the user's convenience
  649. (e.g. when running oldconfig). It selects
  650. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  651. config NETFILTER_XT_MATCH_MULTIPORT
  652. tristate '"multiport" Multiple port match support'
  653. depends on NETFILTER_ADVANCED
  654. help
  655. Multiport matching allows you to match TCP or UDP packets based on
  656. a series of source or destination ports: normally a rule can only
  657. match a single range of ports.
  658. To compile it as a module, choose M here. If unsure, say N.
  659. config NETFILTER_XT_MATCH_OSF
  660. tristate '"osf" Passive OS fingerprint match'
  661. depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
  662. help
  663. This option selects the Passive OS Fingerprinting match module
  664. that allows to passively match the remote operating system by
  665. analyzing incoming TCP SYN packets.
  666. Rules and loading software can be downloaded from
  667. http://www.ioremap.net/projects/osf
  668. To compile it as a module, choose M here. If unsure, say N.
  669. config NETFILTER_XT_MATCH_OWNER
  670. tristate '"owner" match support'
  671. depends on NETFILTER_ADVANCED
  672. ---help---
  673. Socket owner matching allows you to match locally-generated packets
  674. based on who created the socket: the user or group. It is also
  675. possible to check whether a socket actually exists.
  676. config NETFILTER_XT_MATCH_POLICY
  677. tristate 'IPsec "policy" match support'
  678. depends on XFRM
  679. default m if NETFILTER_ADVANCED=n
  680. help
  681. Policy matching allows you to match packets based on the
  682. IPsec policy that was used during decapsulation/will
  683. be used during encapsulation.
  684. To compile it as a module, choose M here. If unsure, say N.
  685. config NETFILTER_XT_MATCH_PHYSDEV
  686. tristate '"physdev" match support'
  687. depends on BRIDGE && BRIDGE_NETFILTER
  688. depends on NETFILTER_ADVANCED
  689. help
  690. Physdev packet matching matches against the physical bridge ports
  691. the IP packet arrived on or will leave by.
  692. To compile it as a module, choose M here. If unsure, say N.
  693. config NETFILTER_XT_MATCH_PKTTYPE
  694. tristate '"pkttype" packet type match support'
  695. depends on NETFILTER_ADVANCED
  696. help
  697. Packet type matching allows you to match a packet by
  698. its "class", eg. BROADCAST, MULTICAST, ...
  699. Typical usage:
  700. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  701. To compile it as a module, choose M here. If unsure, say N.
  702. config NETFILTER_XT_MATCH_QUOTA
  703. tristate '"quota" match support'
  704. depends on NETFILTER_ADVANCED
  705. help
  706. This option adds a `quota' match, which allows to match on a
  707. byte counter.
  708. If you want to compile it as a module, say M here and read
  709. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  710. config NETFILTER_XT_MATCH_RATEEST
  711. tristate '"rateest" match support'
  712. depends on NETFILTER_ADVANCED
  713. select NETFILTER_XT_TARGET_RATEEST
  714. help
  715. This option adds a `rateest' match, which allows to match on the
  716. rate estimated by the RATEEST target.
  717. To compile it as a module, choose M here. If unsure, say N.
  718. config NETFILTER_XT_MATCH_REALM
  719. tristate '"realm" match support'
  720. depends on NETFILTER_ADVANCED
  721. select NET_CLS_ROUTE
  722. help
  723. This option adds a `realm' match, which allows you to use the realm
  724. key from the routing subsystem inside iptables.
  725. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  726. in tc world.
  727. If you want to compile it as a module, say M here and read
  728. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  729. config NETFILTER_XT_MATCH_RECENT
  730. tristate '"recent" match support'
  731. depends on NETFILTER_ADVANCED
  732. ---help---
  733. This match is used for creating one or many lists of recently
  734. used addresses and then matching against that/those list(s).
  735. Short options are available by using 'iptables -m recent -h'
  736. Official Website: <http://snowman.net/projects/ipt_recent/>
  737. config NETFILTER_XT_MATCH_SCTP
  738. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  739. depends on EXPERIMENTAL
  740. depends on NETFILTER_ADVANCED
  741. default IP_SCTP
  742. help
  743. With this option enabled, you will be able to use the
  744. `sctp' match in order to match on SCTP source/destination ports
  745. and SCTP chunk types.
  746. If you want to compile it as a module, say M here and read
  747. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  748. config NETFILTER_XT_MATCH_SOCKET
  749. tristate '"socket" match support (EXPERIMENTAL)'
  750. depends on EXPERIMENTAL
  751. depends on NETFILTER_TPROXY
  752. depends on NETFILTER_XTABLES
  753. depends on NETFILTER_ADVANCED
  754. depends on !NF_CONNTRACK || NF_CONNTRACK
  755. select NF_DEFRAG_IPV4
  756. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  757. help
  758. This option adds a `socket' match, which can be used to match
  759. packets for which a TCP or UDP socket lookup finds a valid socket.
  760. It can be used in combination with the MARK target and policy
  761. routing to implement full featured non-locally bound sockets.
  762. To compile it as a module, choose M here. If unsure, say N.
  763. config NETFILTER_XT_MATCH_STATE
  764. tristate '"state" match support'
  765. depends on NF_CONNTRACK
  766. default m if NETFILTER_ADVANCED=n
  767. help
  768. Connection state matching allows you to match packets based on their
  769. relationship to a tracked connection (ie. previous packets). This
  770. is a powerful tool for packet classification.
  771. To compile it as a module, choose M here. If unsure, say N.
  772. config NETFILTER_XT_MATCH_STATISTIC
  773. tristate '"statistic" match support'
  774. depends on NETFILTER_ADVANCED
  775. help
  776. This option adds a `statistic' match, which allows you to match
  777. on packets periodically or randomly with a given percentage.
  778. To compile it as a module, choose M here. If unsure, say N.
  779. config NETFILTER_XT_MATCH_STRING
  780. tristate '"string" match support'
  781. depends on NETFILTER_ADVANCED
  782. select TEXTSEARCH
  783. select TEXTSEARCH_KMP
  784. select TEXTSEARCH_BM
  785. select TEXTSEARCH_FSM
  786. help
  787. This option adds a `string' match, which allows you to look for
  788. pattern matchings in packets.
  789. To compile it as a module, choose M here. If unsure, say N.
  790. config NETFILTER_XT_MATCH_TCPMSS
  791. tristate '"tcpmss" match support'
  792. depends on NETFILTER_ADVANCED
  793. help
  794. This option adds a `tcpmss' match, which allows you to examine the
  795. MSS value of TCP SYN packets, which control the maximum packet size
  796. for that connection.
  797. To compile it as a module, choose M here. If unsure, say N.
  798. config NETFILTER_XT_MATCH_TIME
  799. tristate '"time" match support'
  800. depends on NETFILTER_ADVANCED
  801. ---help---
  802. This option adds a "time" match, which allows you to match based on
  803. the packet arrival time (at the machine which netfilter is running)
  804. on) or departure time/date (for locally generated packets).
  805. If you say Y here, try `iptables -m time --help` for
  806. more information.
  807. If you want to compile it as a module, say M here.
  808. If unsure, say N.
  809. config NETFILTER_XT_MATCH_U32
  810. tristate '"u32" match support'
  811. depends on NETFILTER_ADVANCED
  812. ---help---
  813. u32 allows you to extract quantities of up to 4 bytes from a packet,
  814. AND them with specified masks, shift them by specified amounts and
  815. test whether the results are in any of a set of specified ranges.
  816. The specification of what to extract is general enough to skip over
  817. headers with lengths stored in the packet, as in IP or TCP header
  818. lengths.
  819. Details and examples are in the kernel module source.
  820. endif # NETFILTER_XTABLES
  821. endmenu
  822. source "net/netfilter/ipvs/Kconfig"