Kconfig 35 KB

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