Kconfig 38 KB

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