Kconfig 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546
  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. config NFT_FIB_NETDEV
  528. depends on NFT_FIB_IPV4
  529. depends on NFT_FIB_IPV6
  530. tristate "Netfilter nf_tables netdev fib lookups support"
  531. help
  532. This option allows using the FIB expression from the netdev table.
  533. The lookup will be delegated to the IPv4 or IPv6 FIB depending
  534. on the protocol of the packet.
  535. endif # NF_TABLES_NETDEV
  536. endif # NF_TABLES
  537. config NETFILTER_XTABLES
  538. tristate "Netfilter Xtables support (required for ip_tables)"
  539. default m if NETFILTER_ADVANCED=n
  540. help
  541. This is required if you intend to use any of ip_tables,
  542. ip6_tables or arp_tables.
  543. if NETFILTER_XTABLES
  544. comment "Xtables combined modules"
  545. config NETFILTER_XT_MARK
  546. tristate 'nfmark target and match support'
  547. default m if NETFILTER_ADVANCED=n
  548. ---help---
  549. This option adds the "MARK" target and "mark" match.
  550. Netfilter mark matching allows you to match packets based on the
  551. "nfmark" value in the packet.
  552. The target allows you to create rules in the "mangle" table which alter
  553. the netfilter mark (nfmark) field associated with the packet.
  554. Prior to routing, the nfmark can influence the routing method and can
  555. also be used by other subsystems to change their behavior.
  556. config NETFILTER_XT_CONNMARK
  557. tristate 'ctmark target and match support'
  558. depends on NF_CONNTRACK
  559. depends on NETFILTER_ADVANCED
  560. select NF_CONNTRACK_MARK
  561. ---help---
  562. This option adds the "CONNMARK" target and "connmark" match.
  563. Netfilter allows you to store a mark value per connection (a.k.a.
  564. ctmark), similarly to the packet mark (nfmark). Using this
  565. target and match, you can set and match on this mark.
  566. config NETFILTER_XT_SET
  567. tristate 'set target and match support'
  568. depends on IP_SET
  569. depends on NETFILTER_ADVANCED
  570. help
  571. This option adds the "SET" target and "set" match.
  572. Using this target and match, you can add/delete and match
  573. elements in the sets created by ipset(8).
  574. To compile it as a module, choose M here. If unsure, say N.
  575. # alphabetically ordered list of targets
  576. comment "Xtables targets"
  577. config NETFILTER_XT_TARGET_AUDIT
  578. tristate "AUDIT target support"
  579. depends on AUDIT
  580. depends on NETFILTER_ADVANCED
  581. ---help---
  582. This option adds a 'AUDIT' target, which can be used to create
  583. audit records for packets dropped/accepted.
  584. To compileit as a module, choose M here. If unsure, say N.
  585. config NETFILTER_XT_TARGET_CHECKSUM
  586. tristate "CHECKSUM target support"
  587. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  588. depends on NETFILTER_ADVANCED
  589. ---help---
  590. This option adds a `CHECKSUM' target, which can be used in the iptables mangle
  591. table.
  592. You can use this target to compute and fill in the checksum in
  593. a packet that lacks a checksum. This is particularly useful,
  594. if you need to work around old applications such as dhcp clients,
  595. that do not work well with checksum offloads, but don't want to disable
  596. checksum offload in your device.
  597. To compile it as a module, choose M here. If unsure, say N.
  598. config NETFILTER_XT_TARGET_CLASSIFY
  599. tristate '"CLASSIFY" target support'
  600. depends on NETFILTER_ADVANCED
  601. help
  602. This option adds a `CLASSIFY' target, which enables the user to set
  603. the priority of a packet. Some qdiscs can use this value for
  604. classification, among these are:
  605. atm, cbq, dsmark, pfifo_fast, htb, prio
  606. To compile it as a module, choose M here. If unsure, say N.
  607. config NETFILTER_XT_TARGET_CONNMARK
  608. tristate '"CONNMARK" target support'
  609. depends on NF_CONNTRACK
  610. depends on NETFILTER_ADVANCED
  611. select NETFILTER_XT_CONNMARK
  612. ---help---
  613. This is a backwards-compat option for the user's convenience
  614. (e.g. when running oldconfig). It selects
  615. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  616. config NETFILTER_XT_TARGET_CONNSECMARK
  617. tristate '"CONNSECMARK" target support'
  618. depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
  619. default m if NETFILTER_ADVANCED=n
  620. help
  621. The CONNSECMARK target copies security markings from packets
  622. to connections, and restores security markings from connections
  623. to packets (if the packets are not already marked). This would
  624. normally be used in conjunction with the SECMARK target.
  625. To compile it as a module, choose M here. If unsure, say N.
  626. config NETFILTER_XT_TARGET_CT
  627. tristate '"CT" target support'
  628. depends on NF_CONNTRACK
  629. depends on IP_NF_RAW || IP6_NF_RAW
  630. depends on NETFILTER_ADVANCED
  631. help
  632. This options adds a `CT' target, which allows to specify initial
  633. connection tracking parameters like events to be delivered and
  634. the helper to be used.
  635. To compile it as a module, choose M here. If unsure, say N.
  636. config NETFILTER_XT_TARGET_DSCP
  637. tristate '"DSCP" and "TOS" target support'
  638. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  639. depends on NETFILTER_ADVANCED
  640. help
  641. This option adds a `DSCP' target, which allows you to manipulate
  642. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  643. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  644. It also adds the "TOS" target, which allows you to create rules in
  645. the "mangle" table which alter the Type Of Service field of an IPv4
  646. or the Priority field of an IPv6 packet, prior to routing.
  647. To compile it as a module, choose M here. If unsure, say N.
  648. config NETFILTER_XT_TARGET_HL
  649. tristate '"HL" hoplimit target support'
  650. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  651. depends on NETFILTER_ADVANCED
  652. ---help---
  653. This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
  654. targets, which enable the user to change the
  655. hoplimit/time-to-live value of the IP header.
  656. While it is safe to decrement the hoplimit/TTL value, the
  657. modules also allow to increment and set the hoplimit value of
  658. the header to arbitrary values. This is EXTREMELY DANGEROUS
  659. since you can easily create immortal packets that loop
  660. forever on the network.
  661. config NETFILTER_XT_TARGET_HMARK
  662. tristate '"HMARK" target support'
  663. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  664. depends on NETFILTER_ADVANCED
  665. ---help---
  666. This option adds the "HMARK" target.
  667. The target allows you to create rules in the "raw" and "mangle" tables
  668. which set the skbuff mark by means of hash calculation within a given
  669. range. The nfmark can influence the routing method and can also be used
  670. by other subsystems to change their behaviour.
  671. To compile it as a module, choose M here. If unsure, say N.
  672. config NETFILTER_XT_TARGET_IDLETIMER
  673. tristate "IDLETIMER target support"
  674. depends on NETFILTER_ADVANCED
  675. help
  676. This option adds the `IDLETIMER' target. Each matching packet
  677. resets the timer associated with label specified when the rule is
  678. added. When the timer expires, it triggers a sysfs notification.
  679. The remaining time for expiration can be read via sysfs.
  680. To compile it as a module, choose M here. If unsure, say N.
  681. config NETFILTER_XT_TARGET_LED
  682. tristate '"LED" target support'
  683. depends on LEDS_CLASS && LEDS_TRIGGERS
  684. depends on NETFILTER_ADVANCED
  685. help
  686. This option adds a `LED' target, which allows you to blink LEDs in
  687. response to particular packets passing through your machine.
  688. This can be used to turn a spare LED into a network activity LED,
  689. which only flashes in response to FTP transfers, for example. Or
  690. you could have an LED which lights up for a minute or two every time
  691. somebody connects to your machine via SSH.
  692. You will need support for the "led" class to make this work.
  693. To create an LED trigger for incoming SSH traffic:
  694. iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
  695. Then attach the new trigger to an LED on your system:
  696. echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
  697. For more information on the LEDs available on your system, see
  698. Documentation/leds/leds-class.txt
  699. config NETFILTER_XT_TARGET_LOG
  700. tristate "LOG target support"
  701. select NF_LOG_COMMON
  702. select NF_LOG_IPV4
  703. select NF_LOG_IPV6 if IPV6
  704. default m if NETFILTER_ADVANCED=n
  705. help
  706. This option adds a `LOG' target, which allows you to create rules in
  707. any iptables table which records the packet header to the syslog.
  708. To compile it as a module, choose M here. If unsure, say N.
  709. config NETFILTER_XT_TARGET_MARK
  710. tristate '"MARK" target support'
  711. depends on NETFILTER_ADVANCED
  712. select NETFILTER_XT_MARK
  713. ---help---
  714. This is a backwards-compat option for the user's convenience
  715. (e.g. when running oldconfig). It selects
  716. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  717. config NETFILTER_XT_NAT
  718. tristate '"SNAT and DNAT" targets support'
  719. depends on NF_NAT
  720. ---help---
  721. This option enables the SNAT and DNAT targets.
  722. To compile it as a module, choose M here. If unsure, say N.
  723. config NETFILTER_XT_TARGET_NETMAP
  724. tristate '"NETMAP" target support'
  725. depends on NF_NAT
  726. ---help---
  727. NETMAP is an implementation of static 1:1 NAT mapping of network
  728. addresses. It maps the network address part, while keeping the host
  729. address part intact.
  730. To compile it as a module, choose M here. If unsure, say N.
  731. config NETFILTER_XT_TARGET_NFLOG
  732. tristate '"NFLOG" target support'
  733. default m if NETFILTER_ADVANCED=n
  734. select NETFILTER_NETLINK_LOG
  735. help
  736. This option enables the NFLOG target, which allows to LOG
  737. messages through nfnetlink_log.
  738. To compile it as a module, choose M here. If unsure, say N.
  739. config NETFILTER_XT_TARGET_NFQUEUE
  740. tristate '"NFQUEUE" target Support'
  741. depends on NETFILTER_ADVANCED
  742. select NETFILTER_NETLINK_QUEUE
  743. help
  744. This target replaced the old obsolete QUEUE target.
  745. As opposed to QUEUE, it supports 65535 different queues,
  746. not just one.
  747. To compile it as a module, choose M here. If unsure, say N.
  748. config NETFILTER_XT_TARGET_NOTRACK
  749. tristate '"NOTRACK" target support (DEPRECATED)'
  750. depends on NF_CONNTRACK
  751. depends on IP_NF_RAW || IP6_NF_RAW
  752. depends on NETFILTER_ADVANCED
  753. select NETFILTER_XT_TARGET_CT
  754. config NETFILTER_XT_TARGET_RATEEST
  755. tristate '"RATEEST" target support'
  756. depends on NETFILTER_ADVANCED
  757. help
  758. This option adds a `RATEEST' target, which allows to measure
  759. rates similar to TC estimators. The `rateest' match can be
  760. used to match on the measured rates.
  761. To compile it as a module, choose M here. If unsure, say N.
  762. config NETFILTER_XT_TARGET_REDIRECT
  763. tristate "REDIRECT target support"
  764. depends on NF_NAT
  765. select NF_NAT_REDIRECT
  766. ---help---
  767. REDIRECT is a special case of NAT: all incoming connections are
  768. mapped onto the incoming interface's address, causing the packets to
  769. come to the local machine instead of passing through. This is
  770. useful for transparent proxies.
  771. To compile it as a module, choose M here. If unsure, say N.
  772. config NETFILTER_XT_TARGET_TEE
  773. tristate '"TEE" - packet cloning to alternate destination'
  774. depends on NETFILTER_ADVANCED
  775. depends on IPV6 || IPV6=n
  776. depends on !NF_CONNTRACK || NF_CONNTRACK
  777. select NF_DUP_IPV4
  778. select NF_DUP_IPV6 if IPV6
  779. ---help---
  780. This option adds a "TEE" target with which a packet can be cloned and
  781. this clone be rerouted to another nexthop.
  782. config NETFILTER_XT_TARGET_TPROXY
  783. tristate '"TPROXY" target transparent proxying support'
  784. depends on NETFILTER_XTABLES
  785. depends on NETFILTER_ADVANCED
  786. depends on IPV6 || IPV6=n
  787. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  788. depends on IP_NF_MANGLE
  789. select NF_DEFRAG_IPV4
  790. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
  791. help
  792. This option adds a `TPROXY' target, which is somewhat similar to
  793. REDIRECT. It can only be used in the mangle table and is useful
  794. to redirect traffic to a transparent proxy. It does _not_ depend
  795. on Netfilter connection tracking and NAT, unlike REDIRECT.
  796. For it to work you will have to configure certain iptables rules
  797. and use policy routing. For more information on how to set it up
  798. see Documentation/networking/tproxy.txt.
  799. To compile it as a module, choose M here. If unsure, say N.
  800. config NETFILTER_XT_TARGET_TRACE
  801. tristate '"TRACE" target support'
  802. depends on IP_NF_RAW || IP6_NF_RAW
  803. depends on NETFILTER_ADVANCED
  804. help
  805. The TRACE target allows you to mark packets so that the kernel
  806. will log every rule which match the packets as those traverse
  807. the tables, chains, rules.
  808. If you want to compile it as a module, say M here and read
  809. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  810. config NETFILTER_XT_TARGET_SECMARK
  811. tristate '"SECMARK" target support'
  812. depends on NETWORK_SECMARK
  813. default m if NETFILTER_ADVANCED=n
  814. help
  815. The SECMARK target allows security marking of network
  816. packets, for use with security subsystems.
  817. To compile it as a module, choose M here. If unsure, say N.
  818. config NETFILTER_XT_TARGET_TCPMSS
  819. tristate '"TCPMSS" target support'
  820. depends on IPV6 || IPV6=n
  821. default m if NETFILTER_ADVANCED=n
  822. ---help---
  823. This option adds a `TCPMSS' target, which allows you to alter the
  824. MSS value of TCP SYN packets, to control the maximum size for that
  825. connection (usually limiting it to your outgoing interface's MTU
  826. minus 40).
  827. This is used to overcome criminally braindead ISPs or servers which
  828. block ICMP Fragmentation Needed packets. The symptoms of this
  829. problem are that everything works fine from your Linux
  830. firewall/router, but machines behind it can never exchange large
  831. packets:
  832. 1) Web browsers connect, then hang with no data received.
  833. 2) Small mail works fine, but large emails hang.
  834. 3) ssh works fine, but scp hangs after initial handshaking.
  835. Workaround: activate this option and add a rule to your firewall
  836. configuration like:
  837. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  838. -j TCPMSS --clamp-mss-to-pmtu
  839. To compile it as a module, choose M here. If unsure, say N.
  840. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  841. tristate '"TCPOPTSTRIP" target support'
  842. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  843. depends on NETFILTER_ADVANCED
  844. help
  845. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  846. TCP options from TCP packets.
  847. # alphabetically ordered list of matches
  848. comment "Xtables matches"
  849. config NETFILTER_XT_MATCH_ADDRTYPE
  850. tristate '"addrtype" address type match support'
  851. default m if NETFILTER_ADVANCED=n
  852. ---help---
  853. This option allows you to match what routing thinks of an address,
  854. eg. UNICAST, LOCAL, BROADCAST, ...
  855. If you want to compile it as a module, say M here and read
  856. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  857. config NETFILTER_XT_MATCH_BPF
  858. tristate '"bpf" match support'
  859. depends on NETFILTER_ADVANCED
  860. help
  861. BPF matching applies a linux socket filter to each packet and
  862. accepts those for which the filter returns non-zero.
  863. To compile it as a module, choose M here. If unsure, say N.
  864. config NETFILTER_XT_MATCH_CGROUP
  865. tristate '"control group" match support'
  866. depends on NETFILTER_ADVANCED
  867. depends on CGROUPS
  868. select CGROUP_NET_CLASSID
  869. ---help---
  870. Socket/process control group matching allows you to match locally
  871. generated packets based on which net_cls control group processes
  872. belong to.
  873. config NETFILTER_XT_MATCH_CLUSTER
  874. tristate '"cluster" match support'
  875. depends on NF_CONNTRACK
  876. depends on NETFILTER_ADVANCED
  877. ---help---
  878. This option allows you to build work-load-sharing clusters of
  879. network servers/stateful firewalls without having a dedicated
  880. load-balancing router/server/switch. Basically, this match returns
  881. true when the packet must be handled by this cluster node. Thus,
  882. all nodes see all packets and this match decides which node handles
  883. what packets. The work-load sharing algorithm is based on source
  884. address hashing.
  885. If you say Y or M here, try `iptables -m cluster --help` for
  886. more information.
  887. config NETFILTER_XT_MATCH_COMMENT
  888. tristate '"comment" match support'
  889. depends on NETFILTER_ADVANCED
  890. help
  891. This option adds a `comment' dummy-match, which allows you to put
  892. comments in your iptables ruleset.
  893. If you want to compile it as a module, say M here and read
  894. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  895. config NETFILTER_XT_MATCH_CONNBYTES
  896. tristate '"connbytes" per-connection counter match support'
  897. depends on NF_CONNTRACK
  898. depends on NETFILTER_ADVANCED
  899. help
  900. This option adds a `connbytes' match, which allows you to match the
  901. number of bytes and/or packets for each direction within a connection.
  902. If you want to compile it as a module, say M here and read
  903. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  904. config NETFILTER_XT_MATCH_CONNLABEL
  905. tristate '"connlabel" match support'
  906. select NF_CONNTRACK_LABELS
  907. depends on NF_CONNTRACK
  908. depends on NETFILTER_ADVANCED
  909. ---help---
  910. This match allows you to test and assign userspace-defined labels names
  911. to a connection. The kernel only stores bit values - mapping
  912. names to bits is done by userspace.
  913. Unlike connmark, more than 32 flag bits may be assigned to a
  914. connection simultaneously.
  915. config NETFILTER_XT_MATCH_CONNLIMIT
  916. tristate '"connlimit" match support'
  917. depends on NF_CONNTRACK
  918. depends on NETFILTER_ADVANCED
  919. ---help---
  920. This match allows you to match against the number of parallel
  921. connections to a server per client IP address (or address block).
  922. config NETFILTER_XT_MATCH_CONNMARK
  923. tristate '"connmark" connection mark match support'
  924. depends on NF_CONNTRACK
  925. depends on NETFILTER_ADVANCED
  926. select NETFILTER_XT_CONNMARK
  927. ---help---
  928. This is a backwards-compat option for the user's convenience
  929. (e.g. when running oldconfig). It selects
  930. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  931. config NETFILTER_XT_MATCH_CONNTRACK
  932. tristate '"conntrack" connection tracking match support'
  933. depends on NF_CONNTRACK
  934. default m if NETFILTER_ADVANCED=n
  935. help
  936. This is a general conntrack match module, a superset of the state match.
  937. It allows matching on additional conntrack information, which is
  938. useful in complex configurations, such as NAT gateways with multiple
  939. internet links or tunnels.
  940. To compile it as a module, choose M here. If unsure, say N.
  941. config NETFILTER_XT_MATCH_CPU
  942. tristate '"cpu" match support'
  943. depends on NETFILTER_ADVANCED
  944. help
  945. CPU matching allows you to match packets based on the CPU
  946. currently handling the packet.
  947. To compile it as a module, choose M here. If unsure, say N.
  948. config NETFILTER_XT_MATCH_DCCP
  949. tristate '"dccp" protocol match support'
  950. depends on NETFILTER_ADVANCED
  951. default IP_DCCP
  952. help
  953. With this option enabled, you will be able to use the iptables
  954. `dccp' match in order to match on DCCP source/destination ports
  955. and DCCP flags.
  956. If you want to compile it as a module, say M here and read
  957. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  958. config NETFILTER_XT_MATCH_DEVGROUP
  959. tristate '"devgroup" match support'
  960. depends on NETFILTER_ADVANCED
  961. help
  962. This options adds a `devgroup' match, which allows to match on the
  963. device group a network device is assigned to.
  964. To compile it as a module, choose M here. If unsure, say N.
  965. config NETFILTER_XT_MATCH_DSCP
  966. tristate '"dscp" and "tos" match support'
  967. depends on NETFILTER_ADVANCED
  968. help
  969. This option adds a `DSCP' match, which allows you to match against
  970. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  971. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  972. It will also add a "tos" match, which allows you to match packets
  973. based on the Type Of Service fields of the IPv4 packet (which share
  974. the same bits as DSCP).
  975. To compile it as a module, choose M here. If unsure, say N.
  976. config NETFILTER_XT_MATCH_ECN
  977. tristate '"ecn" match support'
  978. depends on NETFILTER_ADVANCED
  979. ---help---
  980. This option adds an "ECN" match, which allows you to match against
  981. the IPv4 and TCP header ECN fields.
  982. To compile it as a module, choose M here. If unsure, say N.
  983. config NETFILTER_XT_MATCH_ESP
  984. tristate '"esp" match support'
  985. depends on NETFILTER_ADVANCED
  986. help
  987. This match extension allows you to match a range of SPIs
  988. inside ESP header of IPSec packets.
  989. To compile it as a module, choose M here. If unsure, say N.
  990. config NETFILTER_XT_MATCH_HASHLIMIT
  991. tristate '"hashlimit" match support'
  992. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  993. depends on NETFILTER_ADVANCED
  994. help
  995. This option adds a `hashlimit' match.
  996. As opposed to `limit', this match dynamically creates a hash table
  997. of limit buckets, based on your selection of source/destination
  998. addresses and/or ports.
  999. It enables you to express policies like `10kpps for any given
  1000. destination address' or `500pps from any given source address'
  1001. with a single rule.
  1002. config NETFILTER_XT_MATCH_HELPER
  1003. tristate '"helper" match support'
  1004. depends on NF_CONNTRACK
  1005. depends on NETFILTER_ADVANCED
  1006. help
  1007. Helper matching allows you to match packets in dynamic connections
  1008. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  1009. To compile it as a module, choose M here. If unsure, say Y.
  1010. config NETFILTER_XT_MATCH_HL
  1011. tristate '"hl" hoplimit/TTL match support'
  1012. depends on NETFILTER_ADVANCED
  1013. ---help---
  1014. HL matching allows you to match packets based on the hoplimit
  1015. in the IPv6 header, or the time-to-live field in the IPv4
  1016. header of the packet.
  1017. config NETFILTER_XT_MATCH_IPCOMP
  1018. tristate '"ipcomp" match support'
  1019. depends on NETFILTER_ADVANCED
  1020. help
  1021. This match extension allows you to match a range of CPIs(16 bits)
  1022. inside IPComp header of IPSec packets.
  1023. To compile it as a module, choose M here. If unsure, say N.
  1024. config NETFILTER_XT_MATCH_IPRANGE
  1025. tristate '"iprange" address range match support'
  1026. depends on NETFILTER_ADVANCED
  1027. ---help---
  1028. This option adds a "iprange" match, which allows you to match based on
  1029. an IP address range. (Normal iptables only matches on single addresses
  1030. with an optional mask.)
  1031. If unsure, say M.
  1032. config NETFILTER_XT_MATCH_IPVS
  1033. tristate '"ipvs" match support'
  1034. depends on IP_VS
  1035. depends on NETFILTER_ADVANCED
  1036. depends on NF_CONNTRACK
  1037. help
  1038. This option allows you to match against IPVS properties of a packet.
  1039. If unsure, say N.
  1040. config NETFILTER_XT_MATCH_L2TP
  1041. tristate '"l2tp" match support'
  1042. depends on NETFILTER_ADVANCED
  1043. default L2TP
  1044. ---help---
  1045. This option adds an "L2TP" match, which allows you to match against
  1046. L2TP protocol header fields.
  1047. To compile it as a module, choose M here. If unsure, say N.
  1048. config NETFILTER_XT_MATCH_LENGTH
  1049. tristate '"length" match support'
  1050. depends on NETFILTER_ADVANCED
  1051. help
  1052. This option allows you to match the length of a packet against a
  1053. specific value or range of values.
  1054. To compile it as a module, choose M here. If unsure, say N.
  1055. config NETFILTER_XT_MATCH_LIMIT
  1056. tristate '"limit" match support'
  1057. depends on NETFILTER_ADVANCED
  1058. help
  1059. limit matching allows you to control the rate at which a rule can be
  1060. matched: mainly useful in combination with the LOG target ("LOG
  1061. target support", below) and to avoid some Denial of Service attacks.
  1062. To compile it as a module, choose M here. If unsure, say N.
  1063. config NETFILTER_XT_MATCH_MAC
  1064. tristate '"mac" address match support'
  1065. depends on NETFILTER_ADVANCED
  1066. help
  1067. MAC matching allows you to match packets based on the source
  1068. Ethernet address of the packet.
  1069. To compile it as a module, choose M here. If unsure, say N.
  1070. config NETFILTER_XT_MATCH_MARK
  1071. tristate '"mark" match support'
  1072. depends on NETFILTER_ADVANCED
  1073. select NETFILTER_XT_MARK
  1074. ---help---
  1075. This is a backwards-compat option for the user's convenience
  1076. (e.g. when running oldconfig). It selects
  1077. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  1078. config NETFILTER_XT_MATCH_MULTIPORT
  1079. tristate '"multiport" Multiple port match support'
  1080. depends on NETFILTER_ADVANCED
  1081. help
  1082. Multiport matching allows you to match TCP or UDP packets based on
  1083. a series of source or destination ports: normally a rule can only
  1084. match a single range of ports.
  1085. To compile it as a module, choose M here. If unsure, say N.
  1086. config NETFILTER_XT_MATCH_NFACCT
  1087. tristate '"nfacct" match support'
  1088. depends on NETFILTER_ADVANCED
  1089. select NETFILTER_NETLINK_ACCT
  1090. help
  1091. This option allows you to use the extended accounting through
  1092. nfnetlink_acct.
  1093. To compile it as a module, choose M here. If unsure, say N.
  1094. config NETFILTER_XT_MATCH_OSF
  1095. tristate '"osf" Passive OS fingerprint match'
  1096. depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
  1097. help
  1098. This option selects the Passive OS Fingerprinting match module
  1099. that allows to passively match the remote operating system by
  1100. analyzing incoming TCP SYN packets.
  1101. Rules and loading software can be downloaded from
  1102. http://www.ioremap.net/projects/osf
  1103. To compile it as a module, choose M here. If unsure, say N.
  1104. config NETFILTER_XT_MATCH_OWNER
  1105. tristate '"owner" match support'
  1106. depends on NETFILTER_ADVANCED
  1107. ---help---
  1108. Socket owner matching allows you to match locally-generated packets
  1109. based on who created the socket: the user or group. It is also
  1110. possible to check whether a socket actually exists.
  1111. config NETFILTER_XT_MATCH_POLICY
  1112. tristate 'IPsec "policy" match support'
  1113. depends on XFRM
  1114. default m if NETFILTER_ADVANCED=n
  1115. help
  1116. Policy matching allows you to match packets based on the
  1117. IPsec policy that was used during decapsulation/will
  1118. be used during encapsulation.
  1119. To compile it as a module, choose M here. If unsure, say N.
  1120. config NETFILTER_XT_MATCH_PHYSDEV
  1121. tristate '"physdev" match support'
  1122. depends on BRIDGE && BRIDGE_NETFILTER
  1123. depends on NETFILTER_ADVANCED
  1124. help
  1125. Physdev packet matching matches against the physical bridge ports
  1126. the IP packet arrived on or will leave by.
  1127. To compile it as a module, choose M here. If unsure, say N.
  1128. config NETFILTER_XT_MATCH_PKTTYPE
  1129. tristate '"pkttype" packet type match support'
  1130. depends on NETFILTER_ADVANCED
  1131. help
  1132. Packet type matching allows you to match a packet by
  1133. its "class", eg. BROADCAST, MULTICAST, ...
  1134. Typical usage:
  1135. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  1136. To compile it as a module, choose M here. If unsure, say N.
  1137. config NETFILTER_XT_MATCH_QUOTA
  1138. tristate '"quota" match support'
  1139. depends on NETFILTER_ADVANCED
  1140. help
  1141. This option adds a `quota' match, which allows to match on a
  1142. byte counter.
  1143. If you want to compile it as a module, say M here and read
  1144. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1145. config NETFILTER_XT_MATCH_RATEEST
  1146. tristate '"rateest" match support'
  1147. depends on NETFILTER_ADVANCED
  1148. select NETFILTER_XT_TARGET_RATEEST
  1149. help
  1150. This option adds a `rateest' match, which allows to match on the
  1151. rate estimated by the RATEEST target.
  1152. To compile it as a module, choose M here. If unsure, say N.
  1153. config NETFILTER_XT_MATCH_REALM
  1154. tristate '"realm" match support'
  1155. depends on NETFILTER_ADVANCED
  1156. select IP_ROUTE_CLASSID
  1157. help
  1158. This option adds a `realm' match, which allows you to use the realm
  1159. key from the routing subsystem inside iptables.
  1160. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  1161. in tc world.
  1162. If you want to compile it as a module, say M here and read
  1163. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1164. config NETFILTER_XT_MATCH_RECENT
  1165. tristate '"recent" match support'
  1166. depends on NETFILTER_ADVANCED
  1167. ---help---
  1168. This match is used for creating one or many lists of recently
  1169. used addresses and then matching against that/those list(s).
  1170. Short options are available by using 'iptables -m recent -h'
  1171. Official Website: <http://snowman.net/projects/ipt_recent/>
  1172. config NETFILTER_XT_MATCH_SCTP
  1173. tristate '"sctp" protocol match support'
  1174. depends on NETFILTER_ADVANCED
  1175. default IP_SCTP
  1176. help
  1177. With this option enabled, you will be able to use the
  1178. `sctp' match in order to match on SCTP source/destination ports
  1179. and SCTP chunk types.
  1180. If you want to compile it as a module, say M here and read
  1181. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  1182. config NETFILTER_XT_MATCH_SOCKET
  1183. tristate '"socket" match support'
  1184. depends on NETFILTER_XTABLES
  1185. depends on NETFILTER_ADVANCED
  1186. depends on IPV6 || IPV6=n
  1187. depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
  1188. depends on NF_SOCKET_IPV4
  1189. depends on NF_SOCKET_IPV6
  1190. select NF_DEFRAG_IPV4
  1191. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
  1192. help
  1193. This option adds a `socket' match, which can be used to match
  1194. packets for which a TCP or UDP socket lookup finds a valid socket.
  1195. It can be used in combination with the MARK target and policy
  1196. routing to implement full featured non-locally bound sockets.
  1197. To compile it as a module, choose M here. If unsure, say N.
  1198. config NETFILTER_XT_MATCH_STATE
  1199. tristate '"state" match support'
  1200. depends on NF_CONNTRACK
  1201. default m if NETFILTER_ADVANCED=n
  1202. help
  1203. Connection state matching allows you to match packets based on their
  1204. relationship to a tracked connection (ie. previous packets). This
  1205. is a powerful tool for packet classification.
  1206. To compile it as a module, choose M here. If unsure, say N.
  1207. config NETFILTER_XT_MATCH_STATISTIC
  1208. tristate '"statistic" match support'
  1209. depends on NETFILTER_ADVANCED
  1210. help
  1211. This option adds a `statistic' match, which allows you to match
  1212. on packets periodically or randomly with a given percentage.
  1213. To compile it as a module, choose M here. If unsure, say N.
  1214. config NETFILTER_XT_MATCH_STRING
  1215. tristate '"string" match support'
  1216. depends on NETFILTER_ADVANCED
  1217. select TEXTSEARCH
  1218. select TEXTSEARCH_KMP
  1219. select TEXTSEARCH_BM
  1220. select TEXTSEARCH_FSM
  1221. help
  1222. This option adds a `string' match, which allows you to look for
  1223. pattern matchings in packets.
  1224. To compile it as a module, choose M here. If unsure, say N.
  1225. config NETFILTER_XT_MATCH_TCPMSS
  1226. tristate '"tcpmss" match support'
  1227. depends on NETFILTER_ADVANCED
  1228. help
  1229. This option adds a `tcpmss' match, which allows you to examine the
  1230. MSS value of TCP SYN packets, which control the maximum packet size
  1231. for that connection.
  1232. To compile it as a module, choose M here. If unsure, say N.
  1233. config NETFILTER_XT_MATCH_TIME
  1234. tristate '"time" match support'
  1235. depends on NETFILTER_ADVANCED
  1236. ---help---
  1237. This option adds a "time" match, which allows you to match based on
  1238. the packet arrival time (at the machine which netfilter is running)
  1239. on) or departure time/date (for locally generated packets).
  1240. If you say Y here, try `iptables -m time --help` for
  1241. more information.
  1242. If you want to compile it as a module, say M here.
  1243. If unsure, say N.
  1244. config NETFILTER_XT_MATCH_U32
  1245. tristate '"u32" match support'
  1246. depends on NETFILTER_ADVANCED
  1247. ---help---
  1248. u32 allows you to extract quantities of up to 4 bytes from a packet,
  1249. AND them with specified masks, shift them by specified amounts and
  1250. test whether the results are in any of a set of specified ranges.
  1251. The specification of what to extract is general enough to skip over
  1252. headers with lengths stored in the packet, as in IP or TCP header
  1253. lengths.
  1254. Details and examples are in the kernel module source.
  1255. endif # NETFILTER_XTABLES
  1256. endmenu
  1257. source "net/netfilter/ipset/Kconfig"
  1258. source "net/netfilter/ipvs/Kconfig"