Kconfig 51 KB

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