Kconfig 47 KB

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