Kconfig 47 KB

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