Kconfig 37 KB

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