Kconfig 40 KB

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