Kconfig 47 KB

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