Kconfig 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  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. # alphabetically ordered list of targets
  291. comment "Xtables targets"
  292. config NETFILTER_XT_TARGET_AUDIT
  293. tristate "AUDIT target support"
  294. depends on AUDIT
  295. depends on NETFILTER_ADVANCED
  296. ---help---
  297. This option adds a 'AUDIT' target, which can be used to create
  298. audit records for packets dropped/accepted.
  299. To compileit as a module, choose M here. If unsure, say N.
  300. config NETFILTER_XT_TARGET_CHECKSUM
  301. tristate "CHECKSUM target support"
  302. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  303. depends on NETFILTER_ADVANCED
  304. ---help---
  305. This option adds a `CHECKSUM' target, which can be used in the iptables mangle
  306. table.
  307. You can use this target to compute and fill in the checksum in
  308. a packet that lacks a checksum. This is particularly useful,
  309. if you need to work around old applications such as dhcp clients,
  310. that do not work well with checksum offloads, but don't want to disable
  311. checksum offload in your device.
  312. To compile it as a module, choose M here. If unsure, say N.
  313. config NETFILTER_XT_TARGET_CLASSIFY
  314. tristate '"CLASSIFY" target support'
  315. depends on NETFILTER_ADVANCED
  316. help
  317. This option adds a `CLASSIFY' target, which enables the user to set
  318. the priority of a packet. Some qdiscs can use this value for
  319. classification, among these are:
  320. atm, cbq, dsmark, pfifo_fast, htb, prio
  321. To compile it as a module, choose M here. If unsure, say N.
  322. config NETFILTER_XT_TARGET_CONNMARK
  323. tristate '"CONNMARK" target support'
  324. depends on NF_CONNTRACK
  325. depends on NETFILTER_ADVANCED
  326. select NETFILTER_XT_CONNMARK
  327. ---help---
  328. This is a backwards-compat option for the user's convenience
  329. (e.g. when running oldconfig). It selects
  330. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  331. config NETFILTER_XT_TARGET_CONNSECMARK
  332. tristate '"CONNSECMARK" target support'
  333. depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
  334. default m if NETFILTER_ADVANCED=n
  335. help
  336. The CONNSECMARK target copies security markings from packets
  337. to connections, and restores security markings from connections
  338. to packets (if the packets are not already marked). This would
  339. normally be used in conjunction with the SECMARK target.
  340. To compile it as a module, choose M here. If unsure, say N.
  341. config NETFILTER_XT_TARGET_CT
  342. tristate '"CT" target support'
  343. depends on NF_CONNTRACK
  344. depends on IP_NF_RAW || IP6_NF_RAW
  345. depends on NETFILTER_ADVANCED
  346. help
  347. This options adds a `CT' target, which allows to specify initial
  348. connection tracking parameters like events to be delivered and
  349. the helper to be used.
  350. To compile it as a module, choose M here. If unsure, say N.
  351. config NETFILTER_XT_TARGET_DSCP
  352. tristate '"DSCP" and "TOS" target support'
  353. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  354. depends on NETFILTER_ADVANCED
  355. help
  356. This option adds a `DSCP' target, which allows you to manipulate
  357. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  358. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  359. It also adds the "TOS" target, which allows you to create rules in
  360. the "mangle" table which alter the Type Of Service field of an IPv4
  361. or the Priority field of an IPv6 packet, prior to routing.
  362. To compile it as a module, choose M here. If unsure, say N.
  363. config NETFILTER_XT_TARGET_HL
  364. tristate '"HL" hoplimit target support'
  365. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  366. depends on NETFILTER_ADVANCED
  367. ---help---
  368. This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
  369. targets, which enable the user to change the
  370. hoplimit/time-to-live value of the IP header.
  371. While it is safe to decrement the hoplimit/TTL value, the
  372. modules also allow to increment and set the hoplimit value of
  373. the header to arbitrary values. This is EXTREMELY DANGEROUS
  374. since you can easily create immortal packets that loop
  375. forever on the network.
  376. config NETFILTER_XT_TARGET_IDLETIMER
  377. tristate "IDLETIMER target support"
  378. depends on NETFILTER_ADVANCED
  379. help
  380. This option adds the `IDLETIMER' target. Each matching packet
  381. resets the timer associated with label specified when the rule is
  382. added. When the timer expires, it triggers a sysfs notification.
  383. The remaining time for expiration can be read via sysfs.
  384. To compile it as a module, choose M here. If unsure, say N.
  385. config NETFILTER_XT_TARGET_LED
  386. tristate '"LED" target support'
  387. depends on LEDS_CLASS && LEDS_TRIGGERS
  388. depends on NETFILTER_ADVANCED
  389. help
  390. This option adds a `LED' target, which allows you to blink LEDs in
  391. response to particular packets passing through your machine.
  392. This can be used to turn a spare LED into a network activity LED,
  393. which only flashes in response to FTP transfers, for example. Or
  394. you could have an LED which lights up for a minute or two every time
  395. somebody connects to your machine via SSH.
  396. You will need support for the "led" class to make this work.
  397. To create an LED trigger for incoming SSH traffic:
  398. iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
  399. Then attach the new trigger to an LED on your system:
  400. echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
  401. For more information on the LEDs available on your system, see
  402. Documentation/leds-class.txt
  403. config NETFILTER_XT_TARGET_MARK
  404. tristate '"MARK" target support'
  405. depends on NETFILTER_ADVANCED
  406. select NETFILTER_XT_MARK
  407. ---help---
  408. This is a backwards-compat option for the user's convenience
  409. (e.g. when running oldconfig). It selects
  410. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  411. config NETFILTER_XT_TARGET_NFLOG
  412. tristate '"NFLOG" target support'
  413. default m if NETFILTER_ADVANCED=n
  414. select NETFILTER_NETLINK_LOG
  415. help
  416. This option enables the NFLOG target, which allows to LOG
  417. messages through nfnetlink_log.
  418. To compile it as a module, choose M here. If unsure, say N.
  419. config NETFILTER_XT_TARGET_NFQUEUE
  420. tristate '"NFQUEUE" target Support'
  421. depends on NETFILTER_ADVANCED
  422. select NETFILTER_NETLINK_QUEUE
  423. help
  424. This target replaced the old obsolete QUEUE target.
  425. As opposed to QUEUE, it supports 65535 different queues,
  426. not just one.
  427. To compile it as a module, choose M here. If unsure, say N.
  428. config NETFILTER_XT_TARGET_NOTRACK
  429. tristate '"NOTRACK" target support'
  430. depends on IP_NF_RAW || IP6_NF_RAW
  431. depends on NF_CONNTRACK
  432. depends on NETFILTER_ADVANCED
  433. help
  434. The NOTRACK target allows a select rule to specify
  435. which packets *not* to enter the conntrack/NAT
  436. subsystem with all the consequences (no ICMP error tracking,
  437. no protocol helpers for the selected packets).
  438. If you want to compile it as a module, say M here and read
  439. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  440. config NETFILTER_XT_TARGET_RATEEST
  441. tristate '"RATEEST" target support'
  442. depends on NETFILTER_ADVANCED
  443. help
  444. This option adds a `RATEEST' target, which allows to measure
  445. rates similar to TC estimators. The `rateest' match can be
  446. used to match on the measured rates.
  447. To compile it as a module, choose M here. If unsure, say N.
  448. config NETFILTER_XT_TARGET_TEE
  449. tristate '"TEE" - packet cloning to alternate destination'
  450. depends on NETFILTER_ADVANCED
  451. depends on (IPV6 || IPV6=n)
  452. depends on !NF_CONNTRACK || NF_CONNTRACK
  453. ---help---
  454. This option adds a "TEE" target with which a packet can be cloned and
  455. this clone be rerouted to another nexthop.
  456. config NETFILTER_XT_TARGET_TPROXY
  457. tristate '"TPROXY" target support (EXPERIMENTAL)'
  458. depends on EXPERIMENTAL
  459. depends on NETFILTER_TPROXY
  460. depends on NETFILTER_XTABLES
  461. depends on NETFILTER_ADVANCED
  462. select NF_DEFRAG_IPV4
  463. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  464. help
  465. This option adds a `TPROXY' target, which is somewhat similar to
  466. REDIRECT. It can only be used in the mangle table and is useful
  467. to redirect traffic to a transparent proxy. It does _not_ depend
  468. on Netfilter connection tracking and NAT, unlike REDIRECT.
  469. To compile it as a module, choose M here. If unsure, say N.
  470. config NETFILTER_XT_TARGET_TRACE
  471. tristate '"TRACE" target support'
  472. depends on IP_NF_RAW || IP6_NF_RAW
  473. depends on NETFILTER_ADVANCED
  474. help
  475. The TRACE target allows you to mark packets so that the kernel
  476. will log every rule which match the packets as those traverse
  477. the tables, chains, rules.
  478. If you want to compile it as a module, say M here and read
  479. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  480. config NETFILTER_XT_TARGET_SECMARK
  481. tristate '"SECMARK" target support'
  482. depends on NETWORK_SECMARK
  483. default m if NETFILTER_ADVANCED=n
  484. help
  485. The SECMARK target allows security marking of network
  486. packets, for use with security subsystems.
  487. To compile it as a module, choose M here. If unsure, say N.
  488. config NETFILTER_XT_TARGET_TCPMSS
  489. tristate '"TCPMSS" target support'
  490. depends on (IPV6 || IPV6=n)
  491. default m if NETFILTER_ADVANCED=n
  492. ---help---
  493. This option adds a `TCPMSS' target, which allows you to alter the
  494. MSS value of TCP SYN packets, to control the maximum size for that
  495. connection (usually limiting it to your outgoing interface's MTU
  496. minus 40).
  497. This is used to overcome criminally braindead ISPs or servers which
  498. block ICMP Fragmentation Needed packets. The symptoms of this
  499. problem are that everything works fine from your Linux
  500. firewall/router, but machines behind it can never exchange large
  501. packets:
  502. 1) Web browsers connect, then hang with no data received.
  503. 2) Small mail works fine, but large emails hang.
  504. 3) ssh works fine, but scp hangs after initial handshaking.
  505. Workaround: activate this option and add a rule to your firewall
  506. configuration like:
  507. iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
  508. -j TCPMSS --clamp-mss-to-pmtu
  509. To compile it as a module, choose M here. If unsure, say N.
  510. config NETFILTER_XT_TARGET_TCPOPTSTRIP
  511. tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
  512. depends on EXPERIMENTAL
  513. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  514. depends on NETFILTER_ADVANCED
  515. help
  516. This option adds a "TCPOPTSTRIP" target, which allows you to strip
  517. TCP options from TCP packets.
  518. # alphabetically ordered list of matches
  519. comment "Xtables matches"
  520. config NETFILTER_XT_MATCH_CLUSTER
  521. tristate '"cluster" match support'
  522. depends on NF_CONNTRACK
  523. depends on NETFILTER_ADVANCED
  524. ---help---
  525. This option allows you to build work-load-sharing clusters of
  526. network servers/stateful firewalls without having a dedicated
  527. load-balancing router/server/switch. Basically, this match returns
  528. true when the packet must be handled by this cluster node. Thus,
  529. all nodes see all packets and this match decides which node handles
  530. what packets. The work-load sharing algorithm is based on source
  531. address hashing.
  532. If you say Y or M here, try `iptables -m cluster --help` for
  533. more information.
  534. config NETFILTER_XT_MATCH_COMMENT
  535. tristate '"comment" match support'
  536. depends on NETFILTER_ADVANCED
  537. help
  538. This option adds a `comment' dummy-match, which allows you to put
  539. comments in your iptables ruleset.
  540. If you want to compile it as a module, say M here and read
  541. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  542. config NETFILTER_XT_MATCH_CONNBYTES
  543. tristate '"connbytes" per-connection counter match support'
  544. depends on NF_CONNTRACK
  545. depends on NETFILTER_ADVANCED
  546. help
  547. This option adds a `connbytes' match, which allows you to match the
  548. number of bytes and/or packets for each direction within a connection.
  549. If you want to compile it as a module, say M here and read
  550. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  551. config NETFILTER_XT_MATCH_CONNLIMIT
  552. tristate '"connlimit" match support"'
  553. depends on NF_CONNTRACK
  554. depends on NETFILTER_ADVANCED
  555. ---help---
  556. This match allows you to match against the number of parallel
  557. connections to a server per client IP address (or address block).
  558. config NETFILTER_XT_MATCH_CONNMARK
  559. tristate '"connmark" connection mark match support'
  560. depends on NF_CONNTRACK
  561. depends on NETFILTER_ADVANCED
  562. select NETFILTER_XT_CONNMARK
  563. ---help---
  564. This is a backwards-compat option for the user's convenience
  565. (e.g. when running oldconfig). It selects
  566. CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
  567. config NETFILTER_XT_MATCH_CONNTRACK
  568. tristate '"conntrack" connection tracking match support'
  569. depends on NF_CONNTRACK
  570. default m if NETFILTER_ADVANCED=n
  571. help
  572. This is a general conntrack match module, a superset of the state match.
  573. It allows matching on additional conntrack information, which is
  574. useful in complex configurations, such as NAT gateways with multiple
  575. internet links or tunnels.
  576. To compile it as a module, choose M here. If unsure, say N.
  577. config NETFILTER_XT_MATCH_CPU
  578. tristate '"cpu" match support'
  579. depends on NETFILTER_ADVANCED
  580. help
  581. CPU matching allows you to match packets based on the CPU
  582. currently handling the packet.
  583. To compile it as a module, choose M here. If unsure, say N.
  584. config NETFILTER_XT_MATCH_DCCP
  585. tristate '"dccp" protocol match support'
  586. depends on NETFILTER_ADVANCED
  587. default IP_DCCP
  588. help
  589. With this option enabled, you will be able to use the iptables
  590. `dccp' match in order to match on DCCP source/destination ports
  591. and DCCP flags.
  592. If you want to compile it as a module, say M here and read
  593. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  594. config NETFILTER_XT_MATCH_DSCP
  595. tristate '"dscp" and "tos" match support'
  596. depends on NETFILTER_ADVANCED
  597. help
  598. This option adds a `DSCP' match, which allows you to match against
  599. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  600. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  601. It will also add a "tos" match, which allows you to match packets
  602. based on the Type Of Service fields of the IPv4 packet (which share
  603. the same bits as DSCP).
  604. To compile it as a module, choose M here. If unsure, say N.
  605. config NETFILTER_XT_MATCH_ESP
  606. tristate '"esp" match support'
  607. depends on NETFILTER_ADVANCED
  608. help
  609. This match extension allows you to match a range of SPIs
  610. inside ESP header of IPSec packets.
  611. To compile it as a module, choose M here. If unsure, say N.
  612. config NETFILTER_XT_MATCH_HASHLIMIT
  613. tristate '"hashlimit" match support'
  614. depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
  615. depends on NETFILTER_ADVANCED
  616. help
  617. This option adds a `hashlimit' match.
  618. As opposed to `limit', this match dynamically creates a hash table
  619. of limit buckets, based on your selection of source/destination
  620. addresses and/or ports.
  621. It enables you to express policies like `10kpps for any given
  622. destination address' or `500pps from any given source address'
  623. with a single rule.
  624. config NETFILTER_XT_MATCH_HELPER
  625. tristate '"helper" match support'
  626. depends on NF_CONNTRACK
  627. depends on NETFILTER_ADVANCED
  628. help
  629. Helper matching allows you to match packets in dynamic connections
  630. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  631. To compile it as a module, choose M here. If unsure, say Y.
  632. config NETFILTER_XT_MATCH_HL
  633. tristate '"hl" hoplimit/TTL match support'
  634. depends on NETFILTER_ADVANCED
  635. ---help---
  636. HL matching allows you to match packets based on the hoplimit
  637. in the IPv6 header, or the time-to-live field in the IPv4
  638. header of the packet.
  639. config NETFILTER_XT_MATCH_IPRANGE
  640. tristate '"iprange" address range match support'
  641. depends on NETFILTER_ADVANCED
  642. ---help---
  643. This option adds a "iprange" match, which allows you to match based on
  644. an IP address range. (Normal iptables only matches on single addresses
  645. with an optional mask.)
  646. If unsure, say M.
  647. config NETFILTER_XT_MATCH_IPVS
  648. tristate '"ipvs" match support'
  649. depends on IP_VS
  650. depends on NETFILTER_ADVANCED
  651. depends on NF_CONNTRACK
  652. help
  653. This option allows you to match against IPVS properties of a packet.
  654. If unsure, say N.
  655. config NETFILTER_XT_MATCH_LENGTH
  656. tristate '"length" match support'
  657. depends on NETFILTER_ADVANCED
  658. help
  659. This option allows you to match the length of a packet against a
  660. specific value or range of values.
  661. To compile it as a module, choose M here. If unsure, say N.
  662. config NETFILTER_XT_MATCH_LIMIT
  663. tristate '"limit" match support'
  664. depends on NETFILTER_ADVANCED
  665. help
  666. limit matching allows you to control the rate at which a rule can be
  667. matched: mainly useful in combination with the LOG target ("LOG
  668. target support", below) and to avoid some Denial of Service attacks.
  669. To compile it as a module, choose M here. If unsure, say N.
  670. config NETFILTER_XT_MATCH_MAC
  671. tristate '"mac" address match support'
  672. depends on NETFILTER_ADVANCED
  673. help
  674. MAC matching allows you to match packets based on the source
  675. Ethernet address of the packet.
  676. To compile it as a module, choose M here. If unsure, say N.
  677. config NETFILTER_XT_MATCH_MARK
  678. tristate '"mark" match support'
  679. depends on NETFILTER_ADVANCED
  680. select NETFILTER_XT_MARK
  681. ---help---
  682. This is a backwards-compat option for the user's convenience
  683. (e.g. when running oldconfig). It selects
  684. CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
  685. config NETFILTER_XT_MATCH_MULTIPORT
  686. tristate '"multiport" Multiple port match support'
  687. depends on NETFILTER_ADVANCED
  688. help
  689. Multiport matching allows you to match TCP or UDP packets based on
  690. a series of source or destination ports: normally a rule can only
  691. match a single range of ports.
  692. To compile it as a module, choose M here. If unsure, say N.
  693. config NETFILTER_XT_MATCH_OSF
  694. tristate '"osf" Passive OS fingerprint match'
  695. depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
  696. help
  697. This option selects the Passive OS Fingerprinting match module
  698. that allows to passively match the remote operating system by
  699. analyzing incoming TCP SYN packets.
  700. Rules and loading software can be downloaded from
  701. http://www.ioremap.net/projects/osf
  702. To compile it as a module, choose M here. If unsure, say N.
  703. config NETFILTER_XT_MATCH_OWNER
  704. tristate '"owner" match support'
  705. depends on NETFILTER_ADVANCED
  706. ---help---
  707. Socket owner matching allows you to match locally-generated packets
  708. based on who created the socket: the user or group. It is also
  709. possible to check whether a socket actually exists.
  710. config NETFILTER_XT_MATCH_POLICY
  711. tristate 'IPsec "policy" match support'
  712. depends on XFRM
  713. default m if NETFILTER_ADVANCED=n
  714. help
  715. Policy matching allows you to match packets based on the
  716. IPsec policy that was used during decapsulation/will
  717. be used during encapsulation.
  718. To compile it as a module, choose M here. If unsure, say N.
  719. config NETFILTER_XT_MATCH_PHYSDEV
  720. tristate '"physdev" match support'
  721. depends on BRIDGE && BRIDGE_NETFILTER
  722. depends on NETFILTER_ADVANCED
  723. help
  724. Physdev packet matching matches against the physical bridge ports
  725. the IP packet arrived on or will leave by.
  726. To compile it as a module, choose M here. If unsure, say N.
  727. config NETFILTER_XT_MATCH_PKTTYPE
  728. tristate '"pkttype" packet type match support'
  729. depends on NETFILTER_ADVANCED
  730. help
  731. Packet type matching allows you to match a packet by
  732. its "class", eg. BROADCAST, MULTICAST, ...
  733. Typical usage:
  734. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  735. To compile it as a module, choose M here. If unsure, say N.
  736. config NETFILTER_XT_MATCH_QUOTA
  737. tristate '"quota" match support'
  738. depends on NETFILTER_ADVANCED
  739. help
  740. This option adds a `quota' match, which allows to match on a
  741. byte counter.
  742. If you want to compile it as a module, say M here and read
  743. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  744. config NETFILTER_XT_MATCH_RATEEST
  745. tristate '"rateest" match support'
  746. depends on NETFILTER_ADVANCED
  747. select NETFILTER_XT_TARGET_RATEEST
  748. help
  749. This option adds a `rateest' match, which allows to match on the
  750. rate estimated by the RATEEST target.
  751. To compile it as a module, choose M here. If unsure, say N.
  752. config NETFILTER_XT_MATCH_REALM
  753. tristate '"realm" match support'
  754. depends on NETFILTER_ADVANCED
  755. select IP_ROUTE_CLASSID
  756. help
  757. This option adds a `realm' match, which allows you to use the realm
  758. key from the routing subsystem inside iptables.
  759. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  760. in tc world.
  761. If you want to compile it as a module, say M here and read
  762. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  763. config NETFILTER_XT_MATCH_RECENT
  764. tristate '"recent" match support'
  765. depends on NETFILTER_ADVANCED
  766. ---help---
  767. This match is used for creating one or many lists of recently
  768. used addresses and then matching against that/those list(s).
  769. Short options are available by using 'iptables -m recent -h'
  770. Official Website: <http://snowman.net/projects/ipt_recent/>
  771. config NETFILTER_XT_MATCH_SCTP
  772. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  773. depends on EXPERIMENTAL
  774. depends on NETFILTER_ADVANCED
  775. default IP_SCTP
  776. help
  777. With this option enabled, you will be able to use the
  778. `sctp' match in order to match on SCTP source/destination ports
  779. and SCTP chunk types.
  780. If you want to compile it as a module, say M here and read
  781. <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
  782. config NETFILTER_XT_MATCH_SOCKET
  783. tristate '"socket" match support (EXPERIMENTAL)'
  784. depends on EXPERIMENTAL
  785. depends on NETFILTER_TPROXY
  786. depends on NETFILTER_XTABLES
  787. depends on NETFILTER_ADVANCED
  788. depends on !NF_CONNTRACK || NF_CONNTRACK
  789. select NF_DEFRAG_IPV4
  790. select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
  791. help
  792. This option adds a `socket' match, which can be used to match
  793. packets for which a TCP or UDP socket lookup finds a valid socket.
  794. It can be used in combination with the MARK target and policy
  795. routing to implement full featured non-locally bound sockets.
  796. To compile it as a module, choose M here. If unsure, say N.
  797. config NETFILTER_XT_MATCH_STATE
  798. tristate '"state" match support'
  799. depends on NF_CONNTRACK
  800. default m if NETFILTER_ADVANCED=n
  801. help
  802. Connection state matching allows you to match packets based on their
  803. relationship to a tracked connection (ie. previous packets). This
  804. is a powerful tool for packet classification.
  805. To compile it as a module, choose M here. If unsure, say N.
  806. config NETFILTER_XT_MATCH_STATISTIC
  807. tristate '"statistic" match support'
  808. depends on NETFILTER_ADVANCED
  809. help
  810. This option adds a `statistic' match, which allows you to match
  811. on packets periodically or randomly with a given percentage.
  812. To compile it as a module, choose M here. If unsure, say N.
  813. config NETFILTER_XT_MATCH_STRING
  814. tristate '"string" match support'
  815. depends on NETFILTER_ADVANCED
  816. select TEXTSEARCH
  817. select TEXTSEARCH_KMP
  818. select TEXTSEARCH_BM
  819. select TEXTSEARCH_FSM
  820. help
  821. This option adds a `string' match, which allows you to look for
  822. pattern matchings in packets.
  823. To compile it as a module, choose M here. If unsure, say N.
  824. config NETFILTER_XT_MATCH_TCPMSS
  825. tristate '"tcpmss" match support'
  826. depends on NETFILTER_ADVANCED
  827. help
  828. This option adds a `tcpmss' match, which allows you to examine the
  829. MSS value of TCP SYN packets, which control the maximum packet size
  830. for that connection.
  831. To compile it as a module, choose M here. If unsure, say N.
  832. config NETFILTER_XT_MATCH_TIME
  833. tristate '"time" match support'
  834. depends on NETFILTER_ADVANCED
  835. ---help---
  836. This option adds a "time" match, which allows you to match based on
  837. the packet arrival time (at the machine which netfilter is running)
  838. on) or departure time/date (for locally generated packets).
  839. If you say Y here, try `iptables -m time --help` for
  840. more information.
  841. If you want to compile it as a module, say M here.
  842. If unsure, say N.
  843. config NETFILTER_XT_MATCH_U32
  844. tristate '"u32" match support'
  845. depends on NETFILTER_ADVANCED
  846. ---help---
  847. u32 allows you to extract quantities of up to 4 bytes from a packet,
  848. AND them with specified masks, shift them by specified amounts and
  849. test whether the results are in any of a set of specified ranges.
  850. The specification of what to extract is general enough to skip over
  851. headers with lengths stored in the packet, as in IP or TCP header
  852. lengths.
  853. Details and examples are in the kernel module source.
  854. endif # NETFILTER_XTABLES
  855. endmenu
  856. source "net/netfilter/ipvs/Kconfig"