Kconfig 51 KB

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