Kconfig 40 KB

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