Kconfig 37 KB

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