Kconfig 39 KB

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