Kconfig 48 KB

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