Kconfig 47 KB

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