Kconfig 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537
  1. menu "Core Netfilter Configuration"
  2. depends on NET && INET && NETFILTER
  3. config NETFILTER_INGRESS
  4. bool "Netfilter ingress support"
  5. default y
  6. select NET_INGRESS
  7. help
  8. This allows you to classify packets from ingress using the Netfilter
  9. infrastructure.
  10. config NETFILTER_NETLINK
  11. tristate
  12. config NETFILTER_NETLINK_ACCT
  13. tristate "Netfilter NFACCT 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 extended accounting via NFNETLINK.
  19. config NETFILTER_NETLINK_QUEUE
  20. tristate "Netfilter NFQUEUE over NFNETLINK interface"
  21. depends on NETFILTER_ADVANCED
  22. select NETFILTER_NETLINK
  23. help
  24. If this option is enabled, the kernel will include support
  25. for queueing packets via NFNETLINK.
  26. config NETFILTER_NETLINK_LOG
  27. tristate "Netfilter LOG over NFNETLINK interface"
  28. default m if NETFILTER_ADVANCED=n
  29. select NETFILTER_NETLINK
  30. help
  31. If this option is enabled, the kernel will include support
  32. for logging packets via NFNETLINK.
  33. This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
  34. and is also scheduled to replace the old syslog-based ipt_LOG
  35. and ip6t_LOG modules.
  36. config NF_CONNTRACK
  37. tristate "Netfilter connection tracking support"
  38. default m if NETFILTER_ADVANCED=n
  39. help
  40. Connection tracking keeps a record of what packets have passed
  41. through your machine, in order to figure out how they are related
  42. into connections.
  43. This is required to do Masquerading or other kinds of Network
  44. Address Translation. It can also be used to enhance packet
  45. filtering (see `Connection state match support' below).
  46. To compile it as a module, choose M here. If unsure, say N.
  47. config NF_LOG_COMMON
  48. tristate
  49. config NF_LOG_NETDEV
  50. tristate "Netdev packet logging"
  51. select NF_LOG_COMMON
  52. if NF_CONNTRACK
  53. config NF_CONNTRACK_MARK
  54. bool 'Connection mark tracking support'
  55. depends on NETFILTER_ADVANCED
  56. help
  57. This option enables support for connection marks, used by the
  58. `CONNMARK' target and `connmark' match. Similar to the mark value
  59. of packets, but this mark value is kept in the conntrack session
  60. instead of the individual packets.
  61. config NF_CONNTRACK_SECMARK
  62. bool 'Connection tracking security mark support'
  63. depends on NETWORK_SECMARK
  64. default m if NETFILTER_ADVANCED=n
  65. help
  66. This option enables security markings to be applied to
  67. connections. Typically they are copied to connections from
  68. packets using the CONNSECMARK target and copied back from
  69. connections to packets with the same target, with the packets
  70. being originally labeled via SECMARK.
  71. If unsure, say 'N'.
  72. config NF_CONNTRACK_ZONES
  73. bool 'Connection tracking zones'
  74. depends on NETFILTER_ADVANCED
  75. depends on NETFILTER_XT_TARGET_CT
  76. help
  77. This option enables support for connection tracking zones.
  78. Normally, each connection needs to have a unique system wide
  79. identity. Connection tracking zones allow to have multiple
  80. connections using the same identity, as long as they are
  81. contained in different zones.
  82. If unsure, say `N'.
  83. config NF_CONNTRACK_PROCFS
  84. bool "Supply CT list in procfs (OBSOLETE)"
  85. default y
  86. depends on PROC_FS
  87. ---help---
  88. This option enables for the list of known conntrack entries
  89. to be shown in procfs under net/netfilter/nf_conntrack. This
  90. is considered obsolete in favor of using the conntrack(8)
  91. tool which uses Netlink.
  92. config NF_CONNTRACK_EVENTS
  93. bool "Connection tracking events"
  94. depends on NETFILTER_ADVANCED
  95. help
  96. If this option is enabled, the connection tracking code will
  97. provide a notifier chain that can be used by other kernel code
  98. to get notified about changes in the connection tracking state.
  99. If unsure, say `N'.
  100. config NF_CONNTRACK_TIMEOUT
  101. bool 'Connection tracking timeout'
  102. depends on NETFILTER_ADVANCED
  103. help
  104. This option enables support for connection tracking timeout
  105. extension. This allows you to attach timeout policies to flow
  106. via the CT target.
  107. If unsure, say `N'.
  108. config NF_CONNTRACK_TIMESTAMP
  109. bool 'Connection tracking timestamping'
  110. depends on NETFILTER_ADVANCED
  111. help
  112. This option enables support for connection tracking timestamping.
  113. This allows you to store the flow start-time and to obtain
  114. the flow-stop time (once it has been destroyed) via Connection
  115. tracking events.
  116. If unsure, say `N'.
  117. config NF_CONNTRACK_LABELS
  118. bool
  119. help
  120. This option enables support for assigning user-defined flag bits
  121. to connection tracking entries. It selected by the connlabel match.
  122. config NF_CT_PROTO_DCCP
  123. bool 'DCCP protocol connection tracking support'
  124. depends on NETFILTER_ADVANCED
  125. default y
  126. help
  127. With this option enabled, the layer 3 independent connection
  128. tracking code will be able to do state tracking on DCCP connections.
  129. If unsure, say Y.
  130. config NF_CT_PROTO_GRE
  131. tristate
  132. config NF_CT_PROTO_SCTP
  133. bool 'SCTP protocol connection tracking support'
  134. depends on NETFILTER_ADVANCED
  135. default y
  136. select LIBCRC32C
  137. help
  138. With this option enabled, the layer 3 independent connection
  139. tracking code will be able to do state tracking on SCTP connections.
  140. If unsure, say Y.
  141. config NF_CT_PROTO_UDPLITE
  142. bool 'UDP-Lite protocol connection tracking support'
  143. depends on NETFILTER_ADVANCED
  144. default y
  145. help
  146. With this option enabled, the layer 3 independent connection
  147. tracking code will be able to do state tracking on UDP-Lite
  148. connections.
  149. If unsure, say Y.
  150. config NF_CONNTRACK_AMANDA
  151. tristate "Amanda backup protocol support"
  152. depends on NETFILTER_ADVANCED
  153. select TEXTSEARCH
  154. select TEXTSEARCH_KMP
  155. help
  156. If you are running the Amanda backup package <http://www.amanda.org/>
  157. on this machine or machines that will be MASQUERADED through this
  158. machine, then you may want to enable this feature. This allows the
  159. connection tracking and natting code to allow the sub-channels that
  160. Amanda requires for communication of the backup data, messages and
  161. index.
  162. To compile it as a module, choose M here. If unsure, say N.
  163. config NF_CONNTRACK_FTP
  164. tristate "FTP protocol support"
  165. default m if NETFILTER_ADVANCED=n
  166. help
  167. Tracking FTP connections is problematic: special helpers are
  168. required for tracking them, and doing masquerading and other forms
  169. of Network Address Translation on them.
  170. This is FTP support on Layer 3 independent connection tracking.
  171. Layer 3 independent connection tracking is experimental scheme
  172. which generalize ip_conntrack to support other layer 3 protocols.
  173. To compile it as a module, choose M here. If unsure, say N.
  174. config NF_CONNTRACK_H323
  175. tristate "H.323 protocol support"
  176. depends on IPV6 || IPV6=n
  177. depends on NETFILTER_ADVANCED
  178. help
  179. H.323 is a VoIP signalling protocol from ITU-T. As one of the most
  180. important VoIP protocols, it is widely used by voice hardware and
  181. software including voice gateways, IP phones, Netmeeting, OpenPhone,
  182. Gnomemeeting, etc.
  183. With this module you can support H.323 on a connection tracking/NAT
  184. firewall.
  185. This module supports RAS, Fast Start, H.245 Tunnelling, Call
  186. Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
  187. whiteboard, file transfer, etc. For more information, please
  188. visit http://nath323.sourceforge.net/.
  189. To compile it as a module, choose M here. If unsure, say N.
  190. config NF_CONNTRACK_IRC
  191. tristate "IRC protocol support"
  192. default m if NETFILTER_ADVANCED=n
  193. help
  194. There is a commonly-used extension to IRC called
  195. Direct Client-to-Client Protocol (DCC). This enables users to send
  196. files to each other, and also chat to each other without the need
  197. of a server. DCC Sending is used anywhere you send files over IRC,
  198. and DCC Chat is most commonly used by Eggdrop bots. If you are
  199. using NAT, this extension will enable you to send files and initiate
  200. chats. Note that you do NOT need this extension to get files or
  201. have others initiate chats, or everything else in IRC.
  202. To compile it as a module, choose M here. If unsure, say N.
  203. config NF_CONNTRACK_BROADCAST
  204. tristate
  205. config NF_CONNTRACK_NETBIOS_NS
  206. tristate "NetBIOS name service protocol support"
  207. select NF_CONNTRACK_BROADCAST
  208. help
  209. NetBIOS name service requests are sent as broadcast messages from an
  210. unprivileged port and responded to with unicast messages to the
  211. same port. This make them hard to firewall properly because connection
  212. tracking doesn't deal with broadcasts. This helper tracks locally
  213. originating NetBIOS name service requests and the corresponding
  214. responses. It relies on correct IP address configuration, specifically
  215. netmask and broadcast address. When properly configured, the output
  216. of "ip address show" should look similar to this:
  217. $ ip -4 address show eth0
  218. 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
  219. inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
  220. To compile it as a module, choose M here. If unsure, say N.
  221. config NF_CONNTRACK_SNMP
  222. tristate "SNMP service protocol support"
  223. depends on NETFILTER_ADVANCED
  224. select NF_CONNTRACK_BROADCAST
  225. help
  226. SNMP service requests are sent as broadcast messages from an
  227. unprivileged port and responded to with unicast messages to the
  228. same port. This make them hard to firewall properly because connection
  229. tracking doesn't deal with broadcasts. This helper tracks locally
  230. originating SNMP service requests and the corresponding
  231. responses. It relies on correct IP address configuration, specifically
  232. netmask and broadcast address.
  233. To compile it as a module, choose M here. If unsure, say N.
  234. config NF_CONNTRACK_PPTP
  235. tristate "PPtP protocol support"
  236. depends on NETFILTER_ADVANCED
  237. select NF_CT_PROTO_GRE
  238. help
  239. This module adds support for PPTP (Point to Point Tunnelling
  240. Protocol, RFC2637) connection tracking and NAT.
  241. If you are running PPTP sessions over a stateful firewall or NAT
  242. box, you may want to enable this feature.
  243. Please note that not all PPTP modes of operation are supported yet.
  244. Specifically these limitations exist:
  245. - Blindly assumes that control connections are always established
  246. in PNS->PAC direction. This is a violation of RFC2637.
  247. - Only supports a single call within each session
  248. To compile it as a module, choose M here. If unsure, say N.
  249. config NF_CONNTRACK_SANE
  250. tristate "SANE protocol support"
  251. depends on NETFILTER_ADVANCED
  252. help
  253. SANE is a protocol for remote access to scanners as implemented
  254. by the 'saned' daemon. Like FTP, it uses separate control and
  255. data connections.
  256. With this module you can support SANE on a connection tracking
  257. firewall.
  258. To compile it as a module, choose M here. If unsure, say N.
  259. config NF_CONNTRACK_SIP
  260. tristate "SIP protocol support"
  261. default m if NETFILTER_ADVANCED=n
  262. help
  263. SIP is an application-layer control protocol that can establish,
  264. modify, and terminate multimedia sessions (conferences) such as
  265. Internet telephony calls. With the ip_conntrack_sip and
  266. the nf_nat_sip modules you can support the protocol on a connection
  267. tracking/NATing firewall.
  268. To compile it as a module, choose M here. If unsure, say N.
  269. config NF_CONNTRACK_TFTP
  270. tristate "TFTP protocol support"
  271. depends on NETFILTER_ADVANCED
  272. help
  273. TFTP connection tracking helper, this is required depending
  274. on how restrictive your ruleset is.
  275. If you are using a tftp client behind -j SNAT or -j MASQUERADING
  276. you will need this.
  277. To compile it as a module, choose M here. If unsure, say N.
  278. config NF_CT_NETLINK
  279. tristate 'Connection tracking netlink interface'
  280. select NETFILTER_NETLINK
  281. default m if NETFILTER_ADVANCED=n
  282. help
  283. This option enables support for a netlink-based userspace interface
  284. config NF_CT_NETLINK_TIMEOUT
  285. tristate 'Connection tracking timeout tuning via Netlink'
  286. select NETFILTER_NETLINK
  287. depends on NETFILTER_ADVANCED
  288. help
  289. This option enables support for connection tracking timeout
  290. fine-grain tuning. This allows you to attach specific timeout
  291. policies to flows, instead of using the global timeout policy.
  292. If unsure, say `N'.
  293. config NF_CT_NETLINK_HELPER
  294. tristate 'Connection tracking helpers in user-space via Netlink'
  295. select NETFILTER_NETLINK
  296. depends on NF_CT_NETLINK
  297. depends on NETFILTER_NETLINK_QUEUE
  298. depends on NETFILTER_NETLINK_GLUE_CT
  299. depends on NETFILTER_ADVANCED
  300. help
  301. This option enables the user-space connection tracking helpers
  302. infrastructure.
  303. If unsure, say `N'.
  304. config NETFILTER_NETLINK_GLUE_CT
  305. bool "NFQUEUE and NFLOG integration with Connection Tracking"
  306. default n
  307. depends on (NETFILTER_NETLINK_QUEUE || NETFILTER_NETLINK_LOG) && NF_CT_NETLINK
  308. help
  309. If this option is enabled, NFQUEUE and NFLOG can include
  310. Connection Tracking information together with the packet is
  311. the enqueued via NFNETLINK.
  312. config NF_NAT
  313. tristate
  314. config NF_NAT_NEEDED
  315. bool
  316. depends on NF_NAT
  317. default y
  318. config NF_NAT_PROTO_DCCP
  319. bool
  320. depends on NF_NAT && NF_CT_PROTO_DCCP
  321. default NF_NAT && NF_CT_PROTO_DCCP
  322. config NF_NAT_PROTO_UDPLITE
  323. bool
  324. depends on NF_NAT && NF_CT_PROTO_UDPLITE
  325. default NF_NAT && NF_CT_PROTO_UDPLITE
  326. config NF_NAT_PROTO_SCTP
  327. bool
  328. default NF_NAT && NF_CT_PROTO_SCTP
  329. depends on NF_NAT && NF_CT_PROTO_SCTP
  330. config NF_NAT_AMANDA
  331. tristate
  332. depends on NF_CONNTRACK && NF_NAT
  333. default NF_NAT && NF_CONNTRACK_AMANDA
  334. config NF_NAT_FTP
  335. tristate
  336. depends on NF_CONNTRACK && NF_NAT
  337. default NF_NAT && NF_CONNTRACK_FTP
  338. config NF_NAT_IRC
  339. tristate
  340. depends on NF_CONNTRACK && NF_NAT
  341. default NF_NAT && NF_CONNTRACK_IRC
  342. config NF_NAT_SIP
  343. tristate
  344. depends on NF_CONNTRACK && NF_NAT
  345. default NF_NAT && NF_CONNTRACK_SIP
  346. config NF_NAT_TFTP
  347. tristate
  348. depends on NF_CONNTRACK && NF_NAT
  349. default NF_NAT && NF_CONNTRACK_TFTP
  350. config NF_NAT_REDIRECT
  351. tristate "IPv4/IPv6 redirect support"
  352. depends on NF_NAT
  353. help
  354. This is the kernel functionality to redirect packets to local
  355. machine through NAT.
  356. config NETFILTER_SYNPROXY
  357. tristate
  358. endif # NF_CONNTRACK
  359. config NF_TABLES
  360. select NETFILTER_NETLINK
  361. tristate "Netfilter nf_tables support"
  362. help
  363. nftables is the new packet classification framework that intends to
  364. replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
  365. provides a pseudo-state machine with an extensible instruction-set
  366. (also known as expressions) that the userspace 'nft' utility
  367. (http://www.netfilter.org/projects/nftables) uses to build the
  368. rule-set. It also comes with the generic set infrastructure that
  369. allows you to construct mappings between matchings and actions
  370. for performance lookups.
  371. To compile it as a module, choose M here.
  372. if NF_TABLES
  373. config NF_TABLES_INET
  374. depends on IPV6
  375. select NF_TABLES_IPV4
  376. select NF_TABLES_IPV6
  377. tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
  378. help
  379. This option enables support for a mixed IPv4/IPv6 "inet" table.
  380. config NF_TABLES_NETDEV
  381. tristate "Netfilter nf_tables netdev tables support"
  382. help
  383. This option enables support for the "netdev" table.
  384. config NFT_EXTHDR
  385. tristate "Netfilter nf_tables exthdr module"
  386. help
  387. This option adds the "exthdr" expression that you can use to match
  388. IPv6 extension headers and tcp options.
  389. config NFT_META
  390. tristate "Netfilter nf_tables meta module"
  391. help
  392. This option adds the "meta" expression that you can use to match and
  393. to set packet metainformation such as the packet mark.
  394. config NFT_RT
  395. tristate "Netfilter nf_tables routing module"
  396. help
  397. This option adds the "rt" expression that you can use to match
  398. packet routing information such as the packet nexthop.
  399. config NFT_NUMGEN
  400. tristate "Netfilter nf_tables number generator module"
  401. help
  402. This option adds the number generator expression used to perform
  403. incremental counting and random numbers bound to a upper limit.
  404. config NFT_CT
  405. depends on NF_CONNTRACK
  406. tristate "Netfilter nf_tables conntrack module"
  407. help
  408. This option adds the "ct" expression that you can use to match
  409. connection tracking information such as the flow state.
  410. config NFT_SET_RBTREE
  411. tristate "Netfilter nf_tables rbtree set module"
  412. help
  413. This option adds the "rbtree" set type (Red Black tree) that is used
  414. to build interval-based sets.
  415. config NFT_SET_HASH
  416. tristate "Netfilter nf_tables hash set module"
  417. help
  418. This option adds the "hash" set type that is used to build one-way
  419. mappings between matchings and actions.
  420. config NFT_SET_BITMAP
  421. tristate "Netfilter nf_tables bitmap set module"
  422. help
  423. This option adds the "bitmap" set type that is used to build sets
  424. whose keys are smaller or equal to 16 bits.
  425. config NFT_COUNTER
  426. tristate "Netfilter nf_tables counter module"
  427. help
  428. This option adds the "counter" expression that you can use to
  429. include packet and byte counters in a rule.
  430. config NFT_LOG
  431. tristate "Netfilter nf_tables log module"
  432. help
  433. This option adds the "log" expression that you can use to log
  434. packets matching some criteria.
  435. config NFT_LIMIT
  436. tristate "Netfilter nf_tables limit module"
  437. help
  438. This option adds the "limit" expression that you can use to
  439. ratelimit rule matchings.
  440. config NFT_MASQ
  441. depends on NF_CONNTRACK
  442. depends on NF_NAT
  443. tristate "Netfilter nf_tables masquerade support"
  444. help
  445. This option adds the "masquerade" expression that you can use
  446. to perform NAT in the masquerade flavour.
  447. config NFT_REDIR
  448. depends on NF_CONNTRACK
  449. depends on NF_NAT
  450. tristate "Netfilter nf_tables redirect support"
  451. help
  452. This options adds the "redirect" expression that you can use
  453. to perform NAT in the redirect flavour.
  454. config NFT_NAT
  455. depends on NF_CONNTRACK
  456. select NF_NAT
  457. tristate "Netfilter nf_tables nat module"
  458. help
  459. This option adds the "nat" expression that you can use to perform
  460. typical Network Address Translation (NAT) packet transformations.
  461. config NFT_OBJREF
  462. tristate "Netfilter nf_tables stateful object reference module"
  463. help
  464. This option adds the "objref" expression that allows you to refer to
  465. stateful objects, such as counters and quotas.
  466. config NFT_QUEUE
  467. depends on NETFILTER_NETLINK_QUEUE
  468. tristate "Netfilter nf_tables queue module"
  469. help
  470. This is required if you intend to use the userspace queueing
  471. infrastructure (also known as NFQUEUE) from nftables.
  472. config NFT_QUOTA
  473. tristate "Netfilter nf_tables quota module"
  474. help
  475. This option adds the "quota" expression that you can use to match
  476. enforce bytes quotas.
  477. config NFT_REJECT
  478. default m if NETFILTER_ADVANCED=n
  479. tristate "Netfilter nf_tables reject support"
  480. help
  481. This option adds the "reject" expression that you can use to
  482. explicitly deny and notify via TCP reset/ICMP informational errors
  483. unallowed traffic.
  484. config NFT_REJECT_INET
  485. depends on NF_TABLES_INET
  486. default NFT_REJECT
  487. tristate
  488. config NFT_COMPAT
  489. depends on NETFILTER_XTABLES
  490. tristate "Netfilter x_tables over nf_tables module"
  491. help
  492. This is required if you intend to use any of existing
  493. x_tables match/target extensions over the nf_tables
  494. framework.
  495. config NFT_HASH
  496. tristate "Netfilter nf_tables hash module"
  497. help
  498. This option adds the "hash" expression that you can use to perform
  499. a hash operation on registers.
  500. config NFT_FIB
  501. tristate
  502. config NFT_FIB_INET
  503. depends on NF_TABLES_INET
  504. depends on NFT_FIB_IPV4
  505. depends on NFT_FIB_IPV6
  506. tristate "Netfilter nf_tables fib inet support"
  507. help
  508. This option allows using the FIB expression from the inet table.
  509. The lookup will be delegated to the IPv4 or IPv6 FIB depending
  510. on the protocol of the packet.
  511. if NF_TABLES_NETDEV
  512. config NF_DUP_NETDEV
  513. tristate "Netfilter packet duplication support"
  514. help
  515. This option enables the generic packet duplication infrastructure
  516. for Netfilter.
  517. config NFT_DUP_NETDEV
  518. tristate "Netfilter nf_tables netdev packet duplication support"
  519. select NF_DUP_NETDEV
  520. help
  521. This option enables packet duplication for the "netdev" family.
  522. config NFT_FWD_NETDEV
  523. tristate "Netfilter nf_tables netdev packet forwarding support"
  524. select NF_DUP_NETDEV
  525. help
  526. This option enables packet forwarding for the "netdev" family.
  527. endif # NF_TABLES_NETDEV
  528. endif # NF_TABLES
  529. config NETFILTER_XTABLES
  530. tristate "Netfilter Xtables support (required for ip_tables)"
  531. default m if NETFILTER_ADVANCED=n
  532. help
  533. This is required if you intend to use any of ip_tables,
  534. ip6_tables or arp_tables.
  535. if NETFILTER_XTABLES
  536. comment "Xtables combined modules"
  537. config NETFILTER_XT_MARK
  538. tristate 'nfmark target and match support'
  539. default m if NETFILTER_ADVANCED=n
  540. ---help---
  541. This option adds the "MARK" target and "mark" match.
  542. Netfilter mark matching allows you to match packets based on the
  543. "nfmark" value in the packet.
  544. The target allows you to create rules in the "mangle" table which alter
  545. the netfilter mark (nfmark) field associated with the packet.
  546. Prior to routing, the nfmark can influence the routing method and can
  547. also be used by other subsystems to change their behavior.
  548. config NETFILTER_XT_CONNMARK
  549. tristate 'ctmark target and match support'
  550. depends on NF_CONNTRACK
  551. depends on NETFILTER_ADVANCED
  552. select NF_CONNTRACK_MARK
  553. ---help---
  554. This option adds the "CONNMARK" target and "connmark" match.
  555. Netfilter allows you to store a mark value per connection (a.k.a.
  556. ctmark), similarly to the packet mark (nfmark). Using this
  557. target and match, you can set and match on this mark.
  558. config NETFILTER_XT_SET
  559. tristate 'set target and match support'
  560. depends on IP_SET
  561. depends on NETFILTER_ADVANCED
  562. help
  563. This option adds the "SET" target and "set" match.
  564. Using this target and match, you can add/delete and match
  565. elements in the sets created by ipset(8).
  566. To compile it as a module, choose M here. If unsure, say N.
  567. # alphabetically ordered list of targets
  568. comment "Xtables targets"
  569. config NETFILTER_XT_TARGET_AUDIT
  570. tristate "AUDIT target support"
  571. depends on AUDIT
  572. depends on NETFILTER_ADVANCED
  573. ---help---
  574. This option adds a 'AUDIT' target, which can be used to create
  575. audit records for packets dropped/accepted.
  576. To compileit as a module, choose M here. If unsure, say N.
  577. config NETFILTER_XT_TARGET_CHECKSUM
  578. tristate "CHECKSUM target support"
  579. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  580. depends on NETFILTER_ADVANCED
  581. ---help---
  582. This option adds a `CHECKSUM' target, which can be used in the iptables mangle
  583. table.
  584. You can use this target to compute and fill in the checksum in
  585. a packet that lacks a checksum. This is particularly useful,
  586. if you need to work around old applications such as dhcp clients,
  587. that do not work well with checksum offloads, but don't want to disable
  588. checksum offload in your device.
  589. To compile it as a module, choose M here. If unsure, say N.
  590. config NETFILTER_XT_TARGET_CLASSIFY
  591. tristate '"CLASSIFY" target support'
  592. depends on NETFILTER_ADVANCED
  593. help
  594. This option adds a `CLASSIFY' target, which enables the user to set
  595. the priority of a packet. Some qdiscs can use this value for
  596. classification, among these are:
  597. atm, cbq, dsmark, pfifo_fast, htb, prio
  598. To compile it as a module, choose M here. If unsure, say N.
  599. config NETFILTER_XT_TARGET_CONNMARK
  600. tristate '"CONNMARK" target support'
  601. depends on NF_CONNTRACK
  602. depends on NETFILTER_ADVANCED
  603. select NETFILTER_XT_CONNMARK
  604. ---help---
  605. This is a backwards-compat option for the user's convenience
  606. (e.g. when running oldconfig). It selects
  607. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  608. config NETFILTER_XT_TARGET_CONNSECMARK
  609. tristate '"CONNSECMARK" target support'
  610. depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
  611. default m if NETFILTER_ADVANCED=n
  612. help
  613. The CONNSECMARK target copies security markings from packets
  614. to connections, and restores security markings from connections
  615. to packets (if the packets are not already marked). This would
  616. normally be used in conjunction with the SECMARK target.
  617. To compile it as a module, choose M here. If unsure, say N.
  618. config NETFILTER_XT_TARGET_CT
  619. tristate '"CT" target support'
  620. depends on NF_CONNTRACK
  621. depends on IP_NF_RAW || IP6_NF_RAW
  622. depends on NETFILTER_ADVANCED
  623. help
  624. This options adds a `CT' target, which allows to specify initial
  625. connection tracking parameters like events to be delivered and
  626. the helper to be used.
  627. To compile it as a module, choose M here. If unsure, say N.
  628. config NETFILTER_XT_TARGET_DSCP
  629. tristate '"DSCP" and "TOS" target support'
  630. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  631. depends on NETFILTER_ADVANCED
  632. help
  633. This option adds a `DSCP' target, which allows you to manipulate
  634. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  635. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  636. It also adds the "TOS" target, which allows you to create rules in
  637. the "mangle" table which alter the Type Of Service field of an IPv4
  638. or the Priority field of an IPv6 packet, prior to routing.
  639. To compile it as a module, choose M here. If unsure, say N.
  640. config NETFILTER_XT_TARGET_HL
  641. tristate '"HL" hoplimit target support'
  642. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  643. depends on NETFILTER_ADVANCED
  644. ---help---
  645. This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
  646. targets, which enable the user to change the
  647. hoplimit/time-to-live value of the IP header.
  648. While it is safe to decrement the hoplimit/TTL value, the
  649. modules also allow to increment and set the hoplimit value of
  650. the header to arbitrary values. This is EXTREMELY DANGEROUS
  651. since you can easily create immortal packets that loop
  652. forever on the network.
  653. config NETFILTER_XT_TARGET_HMARK
  654. tristate '"HMARK" target support'
  655. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  656. depends on NETFILTER_ADVANCED
  657. ---help---
  658. This option adds the "HMARK" target.
  659. The target allows you to create rules in the "raw" and "mangle" tables
  660. which set the skbuff mark by means of hash calculation within a given
  661. range. The nfmark can influence the routing method and can also be used
  662. by other subsystems to change their behaviour.
  663. To compile it as a module, choose M here. If unsure, say N.
  664. config NETFILTER_XT_TARGET_IDLETIMER
  665. tristate "IDLETIMER target support"
  666. depends on NETFILTER_ADVANCED
  667. help
  668. This option adds the `IDLETIMER' target. Each matching packet
  669. resets the timer associated with label specified when the rule is
  670. added. When the timer expires, it triggers a sysfs notification.
  671. The remaining time for expiration can be read via sysfs.
  672. To compile it as a module, choose M here. If unsure, say N.
  673. config NETFILTER_XT_TARGET_LED
  674. tristate '"LED" target support'
  675. depends on LEDS_CLASS && LEDS_TRIGGERS
  676. depends on NETFILTER_ADVANCED
  677. help
  678. This option adds a `LED' target, which allows you to blink LEDs in
  679. response to particular packets passing through your machine.
  680. This can be used to turn a spare LED into a network activity LED,
  681. which only flashes in response to FTP transfers, for example. Or
  682. you could have an LED which lights up for a minute or two every time
  683. somebody connects to your machine via SSH.
  684. You will need support for the "led" class to make this work.
  685. To create an LED trigger for incoming SSH traffic:
  686. iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
  687. Then attach the new trigger to an LED on your system:
  688. echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
  689. For more information on the LEDs available on your system, see
  690. Documentation/leds/leds-class.txt
  691. config NETFILTER_XT_TARGET_LOG
  692. tristate "LOG target support"
  693. select NF_LOG_COMMON
  694. select NF_LOG_IPV4
  695. select NF_LOG_IPV6 if IPV6
  696. default m if NETFILTER_ADVANCED=n
  697. help
  698. This option adds a `LOG' target, which allows you to create rules in
  699. any iptables table which records the packet header to the syslog.
  700. To compile it as a module, choose M here. If unsure, say N.
  701. config NETFILTER_XT_TARGET_MARK
  702. tristate '"MARK" target support'
  703. depends on NETFILTER_ADVANCED
  704. select NETFILTER_XT_MARK
  705. ---help---
  706. This is a backwards-compat option for the user's convenience
  707. (e.g. when running oldconfig). It selects
  708. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  709. config NETFILTER_XT_NAT
  710. tristate '"SNAT and DNAT" targets support'
  711. depends on NF_NAT
  712. ---help---
  713. This option enables the SNAT and DNAT targets.
  714. To compile it as a module, choose M here. If unsure, say N.
  715. config NETFILTER_XT_TARGET_NETMAP
  716. tristate '"NETMAP" target support'
  717. depends on NF_NAT
  718. ---help---
  719. NETMAP is an implementation of static 1:1 NAT mapping of network
  720. addresses. It maps the network address part, while keeping the host
  721. address part intact.
  722. To compile it as a module, choose M here. If unsure, say N.
  723. config NETFILTER_XT_TARGET_NFLOG
  724. tristate '"NFLOG" target support'
  725. default m if NETFILTER_ADVANCED=n
  726. select NETFILTER_NETLINK_LOG
  727. help
  728. This option enables the NFLOG target, which allows to LOG
  729. messages through nfnetlink_log.
  730. To compile it as a module, choose M here. If unsure, say N.
  731. config NETFILTER_XT_TARGET_NFQUEUE
  732. tristate '"NFQUEUE" target Support'
  733. depends on NETFILTER_ADVANCED
  734. select NETFILTER_NETLINK_QUEUE
  735. help
  736. This target replaced the old obsolete QUEUE target.
  737. As opposed to QUEUE, it supports 65535 different queues,
  738. not just one.
  739. To compile it as a module, choose M here. If unsure, say N.
  740. config NETFILTER_XT_TARGET_NOTRACK
  741. tristate '"NOTRACK" target support (DEPRECATED)'
  742. depends on NF_CONNTRACK
  743. depends on IP_NF_RAW || IP6_NF_RAW
  744. depends on NETFILTER_ADVANCED
  745. select NETFILTER_XT_TARGET_CT
  746. config NETFILTER_XT_TARGET_RATEEST
  747. tristate '"RATEEST" target support'
  748. depends on NETFILTER_ADVANCED
  749. help
  750. This option adds a `RATEEST' target, which allows to measure
  751. rates similar to TC estimators. The `rateest' match can be
  752. used to match on the measured rates.
  753. To compile it as a module, choose M here. If unsure, say N.
  754. config NETFILTER_XT_TARGET_REDIRECT
  755. tristate "REDIRECT target support"
  756. depends on NF_NAT
  757. select NF_NAT_REDIRECT
  758. ---help---
  759. REDIRECT is a special case of NAT: all incoming connections are
  760. mapped onto the incoming interface's address, causing the packets to
  761. come to the local machine instead of passing through. This is
  762. useful for transparent proxies.
  763. To compile it as a module, choose M here. If unsure, say N.
  764. config NETFILTER_XT_TARGET_TEE
  765. tristate '"TEE" - packet cloning to alternate destination'
  766. depends on NETFILTER_ADVANCED
  767. depends on IPV6 || IPV6=n
  768. depends on !NF_CONNTRACK || NF_CONNTRACK
  769. select NF_DUP_IPV4
  770. select NF_DUP_IPV6 if IPV6
  771. ---help---
  772. This option adds a "TEE" target with which a packet can be cloned and
  773. this clone be rerouted to another nexthop.
  774. config NETFILTER_XT_TARGET_TPROXY
  775. tristate '"TPROXY" target transparent proxying support'
  776. depends on NETFILTER_XTABLES
  777. depends on NETFILTER_ADVANCED
  778. depends on IPV6 || IPV6=n
  779. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  780. depends on IP_NF_MANGLE
  781. select NF_DEFRAG_IPV4
  782. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
  783. help
  784. This option adds a `TPROXY' target, which is somewhat similar to
  785. REDIRECT. It can only be used in the mangle table and is useful
  786. to redirect traffic to a transparent proxy. It does _not_ depend
  787. on Netfilter connection tracking and NAT, unlike REDIRECT.
  788. For it to work you will have to configure certain iptables rules
  789. and use policy routing. For more information on how to set it up
  790. see Documentation/networking/tproxy.txt.
  791. To compile it as a module, choose M here. If unsure, say N.
  792. config NETFILTER_XT_TARGET_TRACE
  793. tristate '"TRACE" target support'
  794. depends on IP_NF_RAW || IP6_NF_RAW
  795. depends on NETFILTER_ADVANCED
  796. help
  797. The TRACE target allows you to mark packets so that the kernel
  798. will log every rule which match the packets as those traverse
  799. the tables, chains, rules.
  800. If you want to compile it as a module, say M here and read
  801. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  802. config NETFILTER_XT_TARGET_SECMARK
  803. tristate '"SECMARK" target support'
  804. depends on NETWORK_SECMARK
  805. default m if NETFILTER_ADVANCED=n
  806. help
  807. The SECMARK target allows security marking of network
  808. packets, for use with security subsystems.
  809. To compile it as a module, choose M here. If unsure, say N.
  810. config NETFILTER_XT_TARGET_TCPMSS
  811. tristate '"TCPMSS" target support'
  812. depends on IPV6 || IPV6=n
  813. default m if NETFILTER_ADVANCED=n
  814. ---help---
  815. This option adds a `TCPMSS' target, which allows you to alter the
  816. MSS value of TCP SYN packets, to control the maximum size for that
  817. connection (usually limiting it to your outgoing interface's MTU
  818. minus 40).
  819. This is used to overcome criminally braindead ISPs or servers which
  820. block ICMP Fragmentation Needed packets. The symptoms of this
  821. problem are that everything works fine from your Linux
  822. firewall/router, but machines behind it can never exchange large
  823. packets:
  824. 1) Web browsers connect, then hang with no data received.
  825. 2) Small mail works fine, but large emails hang.
  826. 3) ssh works fine, but scp hangs after initial handshaking.
  827. Workaround: activate this option and add a rule to your firewall
  828. configuration like:
  829. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  830. -j TCPMSS --clamp-mss-to-pmtu
  831. To compile it as a module, choose M here. If unsure, say N.
  832. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  833. tristate '"TCPOPTSTRIP" target support'
  834. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  835. depends on NETFILTER_ADVANCED
  836. help
  837. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  838. TCP options from TCP packets.
  839. # alphabetically ordered list of matches
  840. comment "Xtables matches"
  841. config NETFILTER_XT_MATCH_ADDRTYPE
  842. tristate '"addrtype" address type match support'
  843. default m if NETFILTER_ADVANCED=n
  844. ---help---
  845. This option allows you to match what routing thinks of an address,
  846. eg. UNICAST, LOCAL, BROADCAST, ...
  847. If you want to compile it as a module, say M here and read
  848. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  849. config NETFILTER_XT_MATCH_BPF
  850. tristate '"bpf" match support'
  851. depends on NETFILTER_ADVANCED
  852. help
  853. BPF matching applies a linux socket filter to each packet and
  854. accepts those for which the filter returns non-zero.
  855. To compile it as a module, choose M here. If unsure, say N.
  856. config NETFILTER_XT_MATCH_CGROUP
  857. tristate '"control group" match support'
  858. depends on NETFILTER_ADVANCED
  859. depends on CGROUPS
  860. select CGROUP_NET_CLASSID
  861. ---help---
  862. Socket/process control group matching allows you to match locally
  863. generated packets based on which net_cls control group processes
  864. belong to.
  865. config NETFILTER_XT_MATCH_CLUSTER
  866. tristate '"cluster" match support'
  867. depends on NF_CONNTRACK
  868. depends on NETFILTER_ADVANCED
  869. ---help---
  870. This option allows you to build work-load-sharing clusters of
  871. network servers/stateful firewalls without having a dedicated
  872. load-balancing router/server/switch. Basically, this match returns
  873. true when the packet must be handled by this cluster node. Thus,
  874. all nodes see all packets and this match decides which node handles
  875. what packets. The work-load sharing algorithm is based on source
  876. address hashing.
  877. If you say Y or M here, try `iptables -m cluster --help` for
  878. more information.
  879. config NETFILTER_XT_MATCH_COMMENT
  880. tristate '"comment" match support'
  881. depends on NETFILTER_ADVANCED
  882. help
  883. This option adds a `comment' dummy-match, which allows you to put
  884. comments in your iptables ruleset.
  885. If you want to compile it as a module, say M here and read
  886. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  887. config NETFILTER_XT_MATCH_CONNBYTES
  888. tristate '"connbytes" per-connection counter match support'
  889. depends on NF_CONNTRACK
  890. depends on NETFILTER_ADVANCED
  891. help
  892. This option adds a `connbytes' match, which allows you to match the
  893. number of bytes and/or packets for each direction within a connection.
  894. If you want to compile it as a module, say M here and read
  895. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  896. config NETFILTER_XT_MATCH_CONNLABEL
  897. tristate '"connlabel" match support'
  898. select NF_CONNTRACK_LABELS
  899. depends on NF_CONNTRACK
  900. depends on NETFILTER_ADVANCED
  901. ---help---
  902. This match allows you to test and assign userspace-defined labels names
  903. to a connection. The kernel only stores bit values - mapping
  904. names to bits is done by userspace.
  905. Unlike connmark, more than 32 flag bits may be assigned to a
  906. connection simultaneously.
  907. config NETFILTER_XT_MATCH_CONNLIMIT
  908. tristate '"connlimit" match support'
  909. depends on NF_CONNTRACK
  910. depends on NETFILTER_ADVANCED
  911. ---help---
  912. This match allows you to match against the number of parallel
  913. connections to a server per client IP address (or address block).
  914. config NETFILTER_XT_MATCH_CONNMARK
  915. tristate '"connmark" connection mark match support'
  916. depends on NF_CONNTRACK
  917. depends on NETFILTER_ADVANCED
  918. select NETFILTER_XT_CONNMARK
  919. ---help---
  920. This is a backwards-compat option for the user's convenience
  921. (e.g. when running oldconfig). It selects
  922. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  923. config NETFILTER_XT_MATCH_CONNTRACK
  924. tristate '"conntrack" connection tracking match support'
  925. depends on NF_CONNTRACK
  926. default m if NETFILTER_ADVANCED=n
  927. help
  928. This is a general conntrack match module, a superset of the state match.
  929. It allows matching on additional conntrack information, which is
  930. useful in complex configurations, such as NAT gateways with multiple
  931. internet links or tunnels.
  932. To compile it as a module, choose M here. If unsure, say N.
  933. config NETFILTER_XT_MATCH_CPU
  934. tristate '"cpu" match support'
  935. depends on NETFILTER_ADVANCED
  936. help
  937. CPU matching allows you to match packets based on the CPU
  938. currently handling the packet.
  939. To compile it as a module, choose M here. If unsure, say N.
  940. config NETFILTER_XT_MATCH_DCCP
  941. tristate '"dccp" protocol match support'
  942. depends on NETFILTER_ADVANCED
  943. default IP_DCCP
  944. help
  945. With this option enabled, you will be able to use the iptables
  946. `dccp' match in order to match on DCCP source/destination ports
  947. and DCCP flags.
  948. If you want to compile it as a module, say M here and read
  949. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  950. config NETFILTER_XT_MATCH_DEVGROUP
  951. tristate '"devgroup" match support'
  952. depends on NETFILTER_ADVANCED
  953. help
  954. This options adds a `devgroup' match, which allows to match on the
  955. device group a network device is assigned to.
  956. To compile it as a module, choose M here. If unsure, say N.
  957. config NETFILTER_XT_MATCH_DSCP
  958. tristate '"dscp" and "tos" match support'
  959. depends on NETFILTER_ADVANCED
  960. help
  961. This option adds a `DSCP' match, which allows you to match against
  962. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  963. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  964. It will also add a "tos" match, which allows you to match packets
  965. based on the Type Of Service fields of the IPv4 packet (which share
  966. the same bits as DSCP).
  967. To compile it as a module, choose M here. If unsure, say N.
  968. config NETFILTER_XT_MATCH_ECN
  969. tristate '"ecn" match support'
  970. depends on NETFILTER_ADVANCED
  971. ---help---
  972. This option adds an "ECN" match, which allows you to match against
  973. the IPv4 and TCP header ECN fields.
  974. To compile it as a module, choose M here. If unsure, say N.
  975. config NETFILTER_XT_MATCH_ESP
  976. tristate '"esp" match support'
  977. depends on NETFILTER_ADVANCED
  978. help
  979. This match extension allows you to match a range of SPIs
  980. inside ESP header of IPSec packets.
  981. To compile it as a module, choose M here. If unsure, say N.
  982. config NETFILTER_XT_MATCH_HASHLIMIT
  983. tristate '"hashlimit" match support'
  984. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  985. depends on NETFILTER_ADVANCED
  986. help
  987. This option adds a `hashlimit' match.
  988. As opposed to `limit', this match dynamically creates a hash table
  989. of limit buckets, based on your selection of source/destination
  990. addresses and/or ports.
  991. It enables you to express policies like `10kpps for any given
  992. destination address' or `500pps from any given source address'
  993. with a single rule.
  994. config NETFILTER_XT_MATCH_HELPER
  995. tristate '"helper" match support'
  996. depends on NF_CONNTRACK
  997. depends on NETFILTER_ADVANCED
  998. help
  999. Helper matching allows you to match packets in dynamic connections
  1000. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  1001. To compile it as a module, choose M here. If unsure, say Y.
  1002. config NETFILTER_XT_MATCH_HL
  1003. tristate '"hl" hoplimit/TTL match support'
  1004. depends on NETFILTER_ADVANCED
  1005. ---help---
  1006. HL matching allows you to match packets based on the hoplimit
  1007. in the IPv6 header, or the time-to-live field in the IPv4
  1008. header of the packet.
  1009. config NETFILTER_XT_MATCH_IPCOMP
  1010. tristate '"ipcomp" match support'
  1011. depends on NETFILTER_ADVANCED
  1012. help
  1013. This match extension allows you to match a range of CPIs(16 bits)
  1014. inside IPComp header of IPSec packets.
  1015. To compile it as a module, choose M here. If unsure, say N.
  1016. config NETFILTER_XT_MATCH_IPRANGE
  1017. tristate '"iprange" address range match support'
  1018. depends on NETFILTER_ADVANCED
  1019. ---help---
  1020. This option adds a "iprange" match, which allows you to match based on
  1021. an IP address range. (Normal iptables only matches on single addresses
  1022. with an optional mask.)
  1023. If unsure, say M.
  1024. config NETFILTER_XT_MATCH_IPVS
  1025. tristate '"ipvs" match support'
  1026. depends on IP_VS
  1027. depends on NETFILTER_ADVANCED
  1028. depends on NF_CONNTRACK
  1029. help
  1030. This option allows you to match against IPVS properties of a packet.
  1031. If unsure, say N.
  1032. config NETFILTER_XT_MATCH_L2TP
  1033. tristate '"l2tp" match support'
  1034. depends on NETFILTER_ADVANCED
  1035. default L2TP
  1036. ---help---
  1037. This option adds an "L2TP" match, which allows you to match against
  1038. L2TP protocol header fields.
  1039. To compile it as a module, choose M here. If unsure, say N.
  1040. config NETFILTER_XT_MATCH_LENGTH
  1041. tristate '"length" match support'
  1042. depends on NETFILTER_ADVANCED
  1043. help
  1044. This option allows you to match the length of a packet against a
  1045. specific value or range of values.
  1046. To compile it as a module, choose M here. If unsure, say N.
  1047. config NETFILTER_XT_MATCH_LIMIT
  1048. tristate '"limit" match support'
  1049. depends on NETFILTER_ADVANCED
  1050. help
  1051. limit matching allows you to control the rate at which a rule can be
  1052. matched: mainly useful in combination with the LOG target ("LOG
  1053. target support", below) and to avoid some Denial of Service attacks.
  1054. To compile it as a module, choose M here. If unsure, say N.
  1055. config NETFILTER_XT_MATCH_MAC
  1056. tristate '"mac" address match support'
  1057. depends on NETFILTER_ADVANCED
  1058. help
  1059. MAC matching allows you to match packets based on the source
  1060. Ethernet address of the packet.
  1061. To compile it as a module, choose M here. If unsure, say N.
  1062. config NETFILTER_XT_MATCH_MARK
  1063. tristate '"mark" match support'
  1064. depends on NETFILTER_ADVANCED
  1065. select NETFILTER_XT_MARK
  1066. ---help---
  1067. This is a backwards-compat option for the user's convenience
  1068. (e.g. when running oldconfig). It selects
  1069. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  1070. config NETFILTER_XT_MATCH_MULTIPORT
  1071. tristate '"multiport" Multiple port match support'
  1072. depends on NETFILTER_ADVANCED
  1073. help
  1074. Multiport matching allows you to match TCP or UDP packets based on
  1075. a series of source or destination ports: normally a rule can only
  1076. match a single range of ports.
  1077. To compile it as a module, choose M here. If unsure, say N.
  1078. config NETFILTER_XT_MATCH_NFACCT
  1079. tristate '"nfacct" match support'
  1080. depends on NETFILTER_ADVANCED
  1081. select NETFILTER_NETLINK_ACCT
  1082. help
  1083. This option allows you to use the extended accounting through
  1084. nfnetlink_acct.
  1085. To compile it as a module, choose M here. If unsure, say N.
  1086. config NETFILTER_XT_MATCH_OSF
  1087. tristate '"osf" Passive OS fingerprint match'
  1088. depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
  1089. help
  1090. This option selects the Passive OS Fingerprinting match module
  1091. that allows to passively match the remote operating system by
  1092. analyzing incoming TCP SYN packets.
  1093. Rules and loading software can be downloaded from
  1094. http://www.ioremap.net/projects/osf
  1095. To compile it as a module, choose M here. If unsure, say N.
  1096. config NETFILTER_XT_MATCH_OWNER
  1097. tristate '"owner" match support'
  1098. depends on NETFILTER_ADVANCED
  1099. ---help---
  1100. Socket owner matching allows you to match locally-generated packets
  1101. based on who created the socket: the user or group. It is also
  1102. possible to check whether a socket actually exists.
  1103. config NETFILTER_XT_MATCH_POLICY
  1104. tristate 'IPsec "policy" match support'
  1105. depends on XFRM
  1106. default m if NETFILTER_ADVANCED=n
  1107. help
  1108. Policy matching allows you to match packets based on the
  1109. IPsec policy that was used during decapsulation/will
  1110. be used during encapsulation.
  1111. To compile it as a module, choose M here. If unsure, say N.
  1112. config NETFILTER_XT_MATCH_PHYSDEV
  1113. tristate '"physdev" match support'
  1114. depends on BRIDGE && BRIDGE_NETFILTER
  1115. depends on NETFILTER_ADVANCED
  1116. help
  1117. Physdev packet matching matches against the physical bridge ports
  1118. the IP packet arrived on or will leave by.
  1119. To compile it as a module, choose M here. If unsure, say N.
  1120. config NETFILTER_XT_MATCH_PKTTYPE
  1121. tristate '"pkttype" packet type match support'
  1122. depends on NETFILTER_ADVANCED
  1123. help
  1124. Packet type matching allows you to match a packet by
  1125. its "class", eg. BROADCAST, MULTICAST, ...
  1126. Typical usage:
  1127. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  1128. To compile it as a module, choose M here. If unsure, say N.
  1129. config NETFILTER_XT_MATCH_QUOTA
  1130. tristate '"quota" match support'
  1131. depends on NETFILTER_ADVANCED
  1132. help
  1133. This option adds a `quota' match, which allows to match on a
  1134. byte counter.
  1135. If you want to compile it as a module, say M here and read
  1136. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1137. config NETFILTER_XT_MATCH_RATEEST
  1138. tristate '"rateest" match support'
  1139. depends on NETFILTER_ADVANCED
  1140. select NETFILTER_XT_TARGET_RATEEST
  1141. help
  1142. This option adds a `rateest' match, which allows to match on the
  1143. rate estimated by the RATEEST target.
  1144. To compile it as a module, choose M here. If unsure, say N.
  1145. config NETFILTER_XT_MATCH_REALM
  1146. tristate '"realm" match support'
  1147. depends on NETFILTER_ADVANCED
  1148. select IP_ROUTE_CLASSID
  1149. help
  1150. This option adds a `realm' match, which allows you to use the realm
  1151. key from the routing subsystem inside iptables.
  1152. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  1153. in tc world.
  1154. If you want to compile it as a module, say M here and read
  1155. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1156. config NETFILTER_XT_MATCH_RECENT
  1157. tristate '"recent" match support'
  1158. depends on NETFILTER_ADVANCED
  1159. ---help---
  1160. This match is used for creating one or many lists of recently
  1161. used addresses and then matching against that/those list(s).
  1162. Short options are available by using 'iptables -m recent -h'
  1163. Official Website: <http://snowman.net/projects/ipt_recent/>
  1164. config NETFILTER_XT_MATCH_SCTP
  1165. tristate '"sctp" protocol match support'
  1166. depends on NETFILTER_ADVANCED
  1167. default IP_SCTP
  1168. help
  1169. With this option enabled, you will be able to use the
  1170. `sctp' match in order to match on SCTP source/destination ports
  1171. and SCTP chunk types.
  1172. If you want to compile it as a module, say M here and read
  1173. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1174. config NETFILTER_XT_MATCH_SOCKET
  1175. tristate '"socket" match support'
  1176. depends on NETFILTER_XTABLES
  1177. depends on NETFILTER_ADVANCED
  1178. depends on IPV6 || IPV6=n
  1179. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  1180. depends on NF_SOCKET_IPV4
  1181. depends on NF_SOCKET_IPV6
  1182. select NF_DEFRAG_IPV4
  1183. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
  1184. help
  1185. This option adds a `socket' match, which can be used to match
  1186. packets for which a TCP or UDP socket lookup finds a valid socket.
  1187. It can be used in combination with the MARK target and policy
  1188. routing to implement full featured non-locally bound sockets.
  1189. To compile it as a module, choose M here. If unsure, say N.
  1190. config NETFILTER_XT_MATCH_STATE
  1191. tristate '"state" match support'
  1192. depends on NF_CONNTRACK
  1193. default m if NETFILTER_ADVANCED=n
  1194. help
  1195. Connection state matching allows you to match packets based on their
  1196. relationship to a tracked connection (ie. previous packets). This
  1197. is a powerful tool for packet classification.
  1198. To compile it as a module, choose M here. If unsure, say N.
  1199. config NETFILTER_XT_MATCH_STATISTIC
  1200. tristate '"statistic" match support'
  1201. depends on NETFILTER_ADVANCED
  1202. help
  1203. This option adds a `statistic' match, which allows you to match
  1204. on packets periodically or randomly with a given percentage.
  1205. To compile it as a module, choose M here. If unsure, say N.
  1206. config NETFILTER_XT_MATCH_STRING
  1207. tristate '"string" match support'
  1208. depends on NETFILTER_ADVANCED
  1209. select TEXTSEARCH
  1210. select TEXTSEARCH_KMP
  1211. select TEXTSEARCH_BM
  1212. select TEXTSEARCH_FSM
  1213. help
  1214. This option adds a `string' match, which allows you to look for
  1215. pattern matchings in packets.
  1216. To compile it as a module, choose M here. If unsure, say N.
  1217. config NETFILTER_XT_MATCH_TCPMSS
  1218. tristate '"tcpmss" match support'
  1219. depends on NETFILTER_ADVANCED
  1220. help
  1221. This option adds a `tcpmss' match, which allows you to examine the
  1222. MSS value of TCP SYN packets, which control the maximum packet size
  1223. for that connection.
  1224. To compile it as a module, choose M here. If unsure, say N.
  1225. config NETFILTER_XT_MATCH_TIME
  1226. tristate '"time" match support'
  1227. depends on NETFILTER_ADVANCED
  1228. ---help---
  1229. This option adds a "time" match, which allows you to match based on
  1230. the packet arrival time (at the machine which netfilter is running)
  1231. on) or departure time/date (for locally generated packets).
  1232. If you say Y here, try `iptables -m time --help` for
  1233. more information.
  1234. If you want to compile it as a module, say M here.
  1235. If unsure, say N.
  1236. config NETFILTER_XT_MATCH_U32
  1237. tristate '"u32" match support'
  1238. depends on NETFILTER_ADVANCED
  1239. ---help---
  1240. u32 allows you to extract quantities of up to 4 bytes from a packet,
  1241. AND them with specified masks, shift them by specified amounts and
  1242. test whether the results are in any of a set of specified ranges.
  1243. The specification of what to extract is general enough to skip over
  1244. headers with lengths stored in the packet, as in IP or TCP header
  1245. lengths.
  1246. Details and examples are in the kernel module source.
  1247. endif # NETFILTER_XTABLES
  1248. endmenu
  1249. source "net/netfilter/ipset/Kconfig"
  1250. source "net/netfilter/ipvs/Kconfig"