Kconfig 49 KB

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