Kconfig 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  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_LOG
  428. tristate "LOG target support"
  429. default m if NETFILTER_ADVANCED=n
  430. help
  431. This option adds a `LOG' target, which allows you to create rules in
  432. any iptables table which records the packet header to the syslog.
  433. To compile it as a module, choose M here. If unsure, say N.
  434. config NETFILTER_XT_TARGET_MARK
  435. tristate '"MARK" target support'
  436. depends on NETFILTER_ADVANCED
  437. select NETFILTER_XT_MARK
  438. ---help---
  439. This is a backwards-compat option for the user's convenience
  440. (e.g. when running oldconfig). It selects
  441. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  442. config NETFILTER_XT_TARGET_NFLOG
  443. tristate '"NFLOG" target support'
  444. default m if NETFILTER_ADVANCED=n
  445. select NETFILTER_NETLINK_LOG
  446. help
  447. This option enables the NFLOG target, which allows to LOG
  448. messages through nfnetlink_log.
  449. To compile it as a module, choose M here. If unsure, say N.
  450. config NETFILTER_XT_TARGET_NFQUEUE
  451. tristate '"NFQUEUE" target Support'
  452. depends on NETFILTER_ADVANCED
  453. select NETFILTER_NETLINK_QUEUE
  454. help
  455. This target replaced the old obsolete QUEUE target.
  456. As opposed to QUEUE, it supports 65535 different queues,
  457. not just one.
  458. To compile it as a module, choose M here. If unsure, say N.
  459. config NETFILTER_XT_TARGET_NOTRACK
  460. tristate '"NOTRACK" target support'
  461. depends on IP_NF_RAW || IP6_NF_RAW
  462. depends on NF_CONNTRACK
  463. help
  464. The NOTRACK target allows a select rule to specify
  465. which packets *not* to enter the conntrack/NAT
  466. subsystem with all the consequences (no ICMP error tracking,
  467. no protocol helpers for the selected packets).
  468. If you want to compile it as a module, say M here and read
  469. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  470. config NETFILTER_XT_TARGET_RATEEST
  471. tristate '"RATEEST" target support'
  472. depends on NETFILTER_ADVANCED
  473. help
  474. This option adds a `RATEEST' target, which allows to measure
  475. rates similar to TC estimators. The `rateest' match can be
  476. used to match on the measured rates.
  477. To compile it as a module, choose M here. If unsure, say N.
  478. config NETFILTER_XT_TARGET_TEE
  479. tristate '"TEE" - packet cloning to alternate destination'
  480. depends on NETFILTER_ADVANCED
  481. depends on (IPV6 || IPV6=n)
  482. depends on !NF_CONNTRACK || NF_CONNTRACK
  483. ---help---
  484. This option adds a "TEE" target with which a packet can be cloned and
  485. this clone be rerouted to another nexthop.
  486. config NETFILTER_XT_TARGET_TPROXY
  487. tristate '"TPROXY" target support (EXPERIMENTAL)'
  488. depends on EXPERIMENTAL
  489. depends on NETFILTER_TPROXY
  490. depends on NETFILTER_XTABLES
  491. depends on NETFILTER_ADVANCED
  492. select NF_DEFRAG_IPV4
  493. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  494. help
  495. This option adds a `TPROXY' target, which is somewhat similar to
  496. REDIRECT. It can only be used in the mangle table and is useful
  497. to redirect traffic to a transparent proxy. It does _not_ depend
  498. on Netfilter connection tracking and NAT, unlike REDIRECT.
  499. To compile it as a module, choose M here. If unsure, say N.
  500. config NETFILTER_XT_TARGET_TRACE
  501. tristate '"TRACE" target support'
  502. depends on IP_NF_RAW || IP6_NF_RAW
  503. depends on NETFILTER_ADVANCED
  504. help
  505. The TRACE target allows you to mark packets so that the kernel
  506. will log every rule which match the packets as those traverse
  507. the tables, chains, rules.
  508. If you want to compile it as a module, say M here and read
  509. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  510. config NETFILTER_XT_TARGET_SECMARK
  511. tristate '"SECMARK" target support'
  512. depends on NETWORK_SECMARK
  513. default m if NETFILTER_ADVANCED=n
  514. help
  515. The SECMARK target allows security marking of network
  516. packets, for use with security subsystems.
  517. To compile it as a module, choose M here. If unsure, say N.
  518. config NETFILTER_XT_TARGET_TCPMSS
  519. tristate '"TCPMSS" target support'
  520. depends on (IPV6 || IPV6=n)
  521. default m if NETFILTER_ADVANCED=n
  522. ---help---
  523. This option adds a `TCPMSS' target, which allows you to alter the
  524. MSS value of TCP SYN packets, to control the maximum size for that
  525. connection (usually limiting it to your outgoing interface's MTU
  526. minus 40).
  527. This is used to overcome criminally braindead ISPs or servers which
  528. block ICMP Fragmentation Needed packets. The symptoms of this
  529. problem are that everything works fine from your Linux
  530. firewall/router, but machines behind it can never exchange large
  531. packets:
  532. 1) Web browsers connect, then hang with no data received.
  533. 2) Small mail works fine, but large emails hang.
  534. 3) ssh works fine, but scp hangs after initial handshaking.
  535. Workaround: activate this option and add a rule to your firewall
  536. configuration like:
  537. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  538. -j TCPMSS --clamp-mss-to-pmtu
  539. To compile it as a module, choose M here. If unsure, say N.
  540. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  541. tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
  542. depends on EXPERIMENTAL
  543. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  544. depends on NETFILTER_ADVANCED
  545. help
  546. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  547. TCP options from TCP packets.
  548. # alphabetically ordered list of matches
  549. comment "Xtables matches"
  550. config NETFILTER_XT_MATCH_ADDRTYPE
  551. tristate '"addrtype" address type match support'
  552. depends on NETFILTER_ADVANCED
  553. ---help---
  554. This option allows you to match what routing thinks of an address,
  555. eg. UNICAST, LOCAL, BROADCAST, ...
  556. If you want to compile it as a module, say M here and read
  557. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  558. config NETFILTER_XT_MATCH_CLUSTER
  559. tristate '"cluster" match support'
  560. depends on NF_CONNTRACK
  561. depends on NETFILTER_ADVANCED
  562. ---help---
  563. This option allows you to build work-load-sharing clusters of
  564. network servers/stateful firewalls without having a dedicated
  565. load-balancing router/server/switch. Basically, this match returns
  566. true when the packet must be handled by this cluster node. Thus,
  567. all nodes see all packets and this match decides which node handles
  568. what packets. The work-load sharing algorithm is based on source
  569. address hashing.
  570. If you say Y or M here, try `iptables -m cluster --help` for
  571. more information.
  572. config NETFILTER_XT_MATCH_COMMENT
  573. tristate '"comment" match support'
  574. depends on NETFILTER_ADVANCED
  575. help
  576. This option adds a `comment' dummy-match, which allows you to put
  577. comments in your iptables ruleset.
  578. If you want to compile it as a module, say M here and read
  579. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  580. config NETFILTER_XT_MATCH_CONNBYTES
  581. tristate '"connbytes" per-connection counter match support'
  582. depends on NF_CONNTRACK
  583. depends on NETFILTER_ADVANCED
  584. help
  585. This option adds a `connbytes' match, which allows you to match the
  586. number of bytes and/or packets for each direction within a connection.
  587. If you want to compile it as a module, say M here and read
  588. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  589. config NETFILTER_XT_MATCH_CONNLIMIT
  590. tristate '"connlimit" match support"'
  591. depends on NF_CONNTRACK
  592. depends on NETFILTER_ADVANCED
  593. ---help---
  594. This match allows you to match against the number of parallel
  595. connections to a server per client IP address (or address block).
  596. config NETFILTER_XT_MATCH_CONNMARK
  597. tristate '"connmark" connection mark match support'
  598. depends on NF_CONNTRACK
  599. depends on NETFILTER_ADVANCED
  600. select NETFILTER_XT_CONNMARK
  601. ---help---
  602. This is a backwards-compat option for the user's convenience
  603. (e.g. when running oldconfig). It selects
  604. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  605. config NETFILTER_XT_MATCH_CONNTRACK
  606. tristate '"conntrack" connection tracking match support'
  607. depends on NF_CONNTRACK
  608. default m if NETFILTER_ADVANCED=n
  609. help
  610. This is a general conntrack match module, a superset of the state match.
  611. It allows matching on additional conntrack information, which is
  612. useful in complex configurations, such as NAT gateways with multiple
  613. internet links or tunnels.
  614. To compile it as a module, choose M here. If unsure, say N.
  615. config NETFILTER_XT_MATCH_CPU
  616. tristate '"cpu" match support'
  617. depends on NETFILTER_ADVANCED
  618. help
  619. CPU matching allows you to match packets based on the CPU
  620. currently handling the packet.
  621. To compile it as a module, choose M here. If unsure, say N.
  622. config NETFILTER_XT_MATCH_DCCP
  623. tristate '"dccp" protocol match support'
  624. depends on NETFILTER_ADVANCED
  625. default IP_DCCP
  626. help
  627. With this option enabled, you will be able to use the iptables
  628. `dccp' match in order to match on DCCP source/destination ports
  629. and DCCP flags.
  630. If you want to compile it as a module, say M here and read
  631. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  632. config NETFILTER_XT_MATCH_DEVGROUP
  633. tristate '"devgroup" match support'
  634. depends on NETFILTER_ADVANCED
  635. help
  636. This options adds a `devgroup' match, which allows to match on the
  637. device group a network device is assigned to.
  638. To compile it as a module, choose M here. If unsure, say N.
  639. config NETFILTER_XT_MATCH_DSCP
  640. tristate '"dscp" and "tos" match support'
  641. depends on NETFILTER_ADVANCED
  642. help
  643. This option adds a `DSCP' match, which allows you to match against
  644. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  645. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  646. It will also add a "tos" match, which allows you to match packets
  647. based on the Type Of Service fields of the IPv4 packet (which share
  648. the same bits as DSCP).
  649. To compile it as a module, choose M here. If unsure, say N.
  650. config NETFILTER_XT_MATCH_ECN
  651. tristate '"ecn" match support'
  652. depends on NETFILTER_ADVANCED
  653. ---help---
  654. This option adds an "ECN" match, which allows you to match against
  655. the IPv4 and TCP header ECN fields.
  656. To compile it as a module, choose M here. If unsure, say N.
  657. config NETFILTER_XT_MATCH_ESP
  658. tristate '"esp" match support'
  659. depends on NETFILTER_ADVANCED
  660. help
  661. This match extension allows you to match a range of SPIs
  662. inside ESP header of IPSec packets.
  663. To compile it as a module, choose M here. If unsure, say N.
  664. config NETFILTER_XT_MATCH_HASHLIMIT
  665. tristate '"hashlimit" match support'
  666. depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
  667. depends on NETFILTER_ADVANCED
  668. help
  669. This option adds a `hashlimit' match.
  670. As opposed to `limit', this match dynamically creates a hash table
  671. of limit buckets, based on your selection of source/destination
  672. addresses and/or ports.
  673. It enables you to express policies like `10kpps for any given
  674. destination address' or `500pps from any given source address'
  675. with a single rule.
  676. config NETFILTER_XT_MATCH_HELPER
  677. tristate '"helper" match support'
  678. depends on NF_CONNTRACK
  679. depends on NETFILTER_ADVANCED
  680. help
  681. Helper matching allows you to match packets in dynamic connections
  682. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  683. To compile it as a module, choose M here. If unsure, say Y.
  684. config NETFILTER_XT_MATCH_HL
  685. tristate '"hl" hoplimit/TTL match support'
  686. depends on NETFILTER_ADVANCED
  687. ---help---
  688. HL matching allows you to match packets based on the hoplimit
  689. in the IPv6 header, or the time-to-live field in the IPv4
  690. header of the packet.
  691. config NETFILTER_XT_MATCH_IPRANGE
  692. tristate '"iprange" address range match support'
  693. depends on NETFILTER_ADVANCED
  694. ---help---
  695. This option adds a "iprange" match, which allows you to match based on
  696. an IP address range. (Normal iptables only matches on single addresses
  697. with an optional mask.)
  698. If unsure, say M.
  699. config NETFILTER_XT_MATCH_IPVS
  700. tristate '"ipvs" match support'
  701. depends on IP_VS
  702. depends on NETFILTER_ADVANCED
  703. depends on NF_CONNTRACK
  704. help
  705. This option allows you to match against IPVS properties of a packet.
  706. If unsure, say N.
  707. config NETFILTER_XT_MATCH_LENGTH
  708. tristate '"length" match support'
  709. depends on NETFILTER_ADVANCED
  710. help
  711. This option allows you to match the length of a packet against a
  712. specific value or range of values.
  713. To compile it as a module, choose M here. If unsure, say N.
  714. config NETFILTER_XT_MATCH_LIMIT
  715. tristate '"limit" match support'
  716. depends on NETFILTER_ADVANCED
  717. help
  718. limit matching allows you to control the rate at which a rule can be
  719. matched: mainly useful in combination with the LOG target ("LOG
  720. target support", below) and to avoid some Denial of Service attacks.
  721. To compile it as a module, choose M here. If unsure, say N.
  722. config NETFILTER_XT_MATCH_MAC
  723. tristate '"mac" address match support'
  724. depends on NETFILTER_ADVANCED
  725. help
  726. MAC matching allows you to match packets based on the source
  727. Ethernet address of the packet.
  728. To compile it as a module, choose M here. If unsure, say N.
  729. config NETFILTER_XT_MATCH_MARK
  730. tristate '"mark" match support'
  731. depends on NETFILTER_ADVANCED
  732. select NETFILTER_XT_MARK
  733. ---help---
  734. This is a backwards-compat option for the user's convenience
  735. (e.g. when running oldconfig). It selects
  736. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  737. config NETFILTER_XT_MATCH_MULTIPORT
  738. tristate '"multiport" Multiple port match support'
  739. depends on NETFILTER_ADVANCED
  740. help
  741. Multiport matching allows you to match TCP or UDP packets based on
  742. a series of source or destination ports: normally a rule can only
  743. match a single range of ports.
  744. To compile it as a module, choose M here. If unsure, say N.
  745. config NETFILTER_XT_MATCH_NFACCT
  746. tristate '"nfacct" match support'
  747. depends on NETFILTER_ADVANCED
  748. select NETFILTER_NETLINK_ACCT
  749. help
  750. This option allows you to use the extended accounting through
  751. nfnetlink_acct.
  752. To compile it as a module, choose M here. If unsure, say N.
  753. config NETFILTER_XT_MATCH_OSF
  754. tristate '"osf" Passive OS fingerprint match'
  755. depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
  756. help
  757. This option selects the Passive OS Fingerprinting match module
  758. that allows to passively match the remote operating system by
  759. analyzing incoming TCP SYN packets.
  760. Rules and loading software can be downloaded from
  761. http://www.ioremap.net/projects/osf
  762. To compile it as a module, choose M here. If unsure, say N.
  763. config NETFILTER_XT_MATCH_OWNER
  764. tristate '"owner" match support'
  765. depends on NETFILTER_ADVANCED
  766. ---help---
  767. Socket owner matching allows you to match locally-generated packets
  768. based on who created the socket: the user or group. It is also
  769. possible to check whether a socket actually exists.
  770. config NETFILTER_XT_MATCH_POLICY
  771. tristate 'IPsec "policy" match support'
  772. depends on XFRM
  773. default m if NETFILTER_ADVANCED=n
  774. help
  775. Policy matching allows you to match packets based on the
  776. IPsec policy that was used during decapsulation/will
  777. be used during encapsulation.
  778. To compile it as a module, choose M here. If unsure, say N.
  779. config NETFILTER_XT_MATCH_PHYSDEV
  780. tristate '"physdev" match support'
  781. depends on BRIDGE && BRIDGE_NETFILTER
  782. depends on NETFILTER_ADVANCED
  783. help
  784. Physdev packet matching matches against the physical bridge ports
  785. the IP packet arrived on or will leave by.
  786. To compile it as a module, choose M here. If unsure, say N.
  787. config NETFILTER_XT_MATCH_PKTTYPE
  788. tristate '"pkttype" packet type match support'
  789. depends on NETFILTER_ADVANCED
  790. help
  791. Packet type matching allows you to match a packet by
  792. its "class", eg. BROADCAST, MULTICAST, ...
  793. Typical usage:
  794. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  795. To compile it as a module, choose M here. If unsure, say N.
  796. config NETFILTER_XT_MATCH_QUOTA
  797. tristate '"quota" match support'
  798. depends on NETFILTER_ADVANCED
  799. help
  800. This option adds a `quota' match, which allows to match on a
  801. byte counter.
  802. If you want to compile it as a module, say M here and read
  803. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  804. config NETFILTER_XT_MATCH_RATEEST
  805. tristate '"rateest" match support'
  806. depends on NETFILTER_ADVANCED
  807. select NETFILTER_XT_TARGET_RATEEST
  808. help
  809. This option adds a `rateest' match, which allows to match on the
  810. rate estimated by the RATEEST target.
  811. To compile it as a module, choose M here. If unsure, say N.
  812. config NETFILTER_XT_MATCH_REALM
  813. tristate '"realm" match support'
  814. depends on NETFILTER_ADVANCED
  815. select IP_ROUTE_CLASSID
  816. help
  817. This option adds a `realm' match, which allows you to use the realm
  818. key from the routing subsystem inside iptables.
  819. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  820. in tc world.
  821. If you want to compile it as a module, say M here and read
  822. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  823. config NETFILTER_XT_MATCH_RECENT
  824. tristate '"recent" match support'
  825. depends on NETFILTER_ADVANCED
  826. ---help---
  827. This match is used for creating one or many lists of recently
  828. used addresses and then matching against that/those list(s).
  829. Short options are available by using 'iptables -m recent -h'
  830. Official Website: <http://snowman.net/projects/ipt_recent/>
  831. config NETFILTER_XT_MATCH_SCTP
  832. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  833. depends on EXPERIMENTAL
  834. depends on NETFILTER_ADVANCED
  835. default IP_SCTP
  836. help
  837. With this option enabled, you will be able to use the
  838. `sctp' match in order to match on SCTP source/destination ports
  839. and SCTP chunk types.
  840. If you want to compile it as a module, say M here and read
  841. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  842. config NETFILTER_XT_MATCH_SOCKET
  843. tristate '"socket" match support (EXPERIMENTAL)'
  844. depends on EXPERIMENTAL
  845. depends on NETFILTER_TPROXY
  846. depends on NETFILTER_XTABLES
  847. depends on NETFILTER_ADVANCED
  848. depends on !NF_CONNTRACK || NF_CONNTRACK
  849. select NF_DEFRAG_IPV4
  850. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  851. help
  852. This option adds a `socket' match, which can be used to match
  853. packets for which a TCP or UDP socket lookup finds a valid socket.
  854. It can be used in combination with the MARK target and policy
  855. routing to implement full featured non-locally bound sockets.
  856. To compile it as a module, choose M here. If unsure, say N.
  857. config NETFILTER_XT_MATCH_STATE
  858. tristate '"state" match support'
  859. depends on NF_CONNTRACK
  860. default m if NETFILTER_ADVANCED=n
  861. help
  862. Connection state matching allows you to match packets based on their
  863. relationship to a tracked connection (ie. previous packets). This
  864. is a powerful tool for packet classification.
  865. To compile it as a module, choose M here. If unsure, say N.
  866. config NETFILTER_XT_MATCH_STATISTIC
  867. tristate '"statistic" match support'
  868. depends on NETFILTER_ADVANCED
  869. help
  870. This option adds a `statistic' match, which allows you to match
  871. on packets periodically or randomly with a given percentage.
  872. To compile it as a module, choose M here. If unsure, say N.
  873. config NETFILTER_XT_MATCH_STRING
  874. tristate '"string" match support'
  875. depends on NETFILTER_ADVANCED
  876. select TEXTSEARCH
  877. select TEXTSEARCH_KMP
  878. select TEXTSEARCH_BM
  879. select TEXTSEARCH_FSM
  880. help
  881. This option adds a `string' match, which allows you to look for
  882. pattern matchings in packets.
  883. To compile it as a module, choose M here. If unsure, say N.
  884. config NETFILTER_XT_MATCH_TCPMSS
  885. tristate '"tcpmss" match support'
  886. depends on NETFILTER_ADVANCED
  887. help
  888. This option adds a `tcpmss' match, which allows you to examine the
  889. MSS value of TCP SYN packets, which control the maximum packet size
  890. for that connection.
  891. To compile it as a module, choose M here. If unsure, say N.
  892. config NETFILTER_XT_MATCH_TIME
  893. tristate '"time" match support'
  894. depends on NETFILTER_ADVANCED
  895. ---help---
  896. This option adds a "time" match, which allows you to match based on
  897. the packet arrival time (at the machine which netfilter is running)
  898. on) or departure time/date (for locally generated packets).
  899. If you say Y here, try `iptables -m time --help` for
  900. more information.
  901. If you want to compile it as a module, say M here.
  902. If unsure, say N.
  903. config NETFILTER_XT_MATCH_U32
  904. tristate '"u32" match support'
  905. depends on NETFILTER_ADVANCED
  906. ---help---
  907. u32 allows you to extract quantities of up to 4 bytes from a packet,
  908. AND them with specified masks, shift them by specified amounts and
  909. test whether the results are in any of a set of specified ranges.
  910. The specification of what to extract is general enough to skip over
  911. headers with lengths stored in the packet, as in IP or TCP header
  912. lengths.
  913. Details and examples are in the kernel module source.
  914. endif # NETFILTER_XTABLES
  915. endmenu
  916. source "net/netfilter/ipset/Kconfig"
  917. source "net/netfilter/ipvs/Kconfig"