Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. menu "Core Netfilter Configuration"
  2. depends on NET && NETFILTER
  3. config NETFILTER_NETLINK
  4. tristate "Netfilter netlink interface"
  5. help
  6. If this option is enabled, the kernel will include support
  7. for the new netfilter netlink interface.
  8. config NETFILTER_NETLINK_QUEUE
  9. tristate "Netfilter NFQUEUE over NFNETLINK interface"
  10. depends on NETFILTER_NETLINK
  11. help
  12. If this option is enabled, the kernel will include support
  13. for queueing packets via NFNETLINK.
  14. config NETFILTER_NETLINK_LOG
  15. tristate "Netfilter LOG over NFNETLINK interface"
  16. depends on NETFILTER_NETLINK
  17. help
  18. If this option is enabled, the kernel will include support
  19. for logging packets via NFNETLINK.
  20. This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
  21. and is also scheduled to replace the old syslog-based ipt_LOG
  22. and ip6t_LOG modules.
  23. config NF_CONNTRACK
  24. tristate "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
  25. depends on EXPERIMENTAL && IP_NF_CONNTRACK=n
  26. default n
  27. ---help---
  28. Connection tracking keeps a record of what packets have passed
  29. through your machine, in order to figure out how they are related
  30. into connections.
  31. Layer 3 independent connection tracking is experimental scheme
  32. which generalize ip_conntrack to support other layer 3 protocols.
  33. To compile it as a module, choose M here. If unsure, say N.
  34. config NF_CT_ACCT
  35. bool "Connection tracking flow accounting"
  36. depends on NF_CONNTRACK
  37. help
  38. If this option is enabled, the connection tracking code will
  39. keep per-flow packet and byte counters.
  40. Those counters can be used for flow-based accounting or the
  41. `connbytes' match.
  42. If unsure, say `N'.
  43. config NF_CONNTRACK_MARK
  44. bool 'Connection mark tracking support'
  45. depends on NF_CONNTRACK
  46. help
  47. This option enables support for connection marks, used by the
  48. `CONNMARK' target and `connmark' match. Similar to the mark value
  49. of packets, but this mark value is kept in the conntrack session
  50. instead of the individual packets.
  51. config NF_CONNTRACK_SECMARK
  52. bool 'Connection tracking security mark support'
  53. depends on NF_CONNTRACK && NETWORK_SECMARK
  54. help
  55. This option enables security markings to be applied to
  56. connections. Typically they are copied to connections from
  57. packets using the CONNSECMARK target and copied back from
  58. connections to packets with the same target, with the packets
  59. being originally labeled via SECMARK.
  60. If unsure, say 'N'.
  61. config NF_CONNTRACK_EVENTS
  62. bool "Connection tracking events (EXPERIMENTAL)"
  63. depends on EXPERIMENTAL && NF_CONNTRACK
  64. help
  65. If this option is enabled, the connection tracking code will
  66. provide a notifier chain that can be used by other kernel code
  67. to get notified about changes in the connection tracking state.
  68. If unsure, say `N'.
  69. config NF_CT_PROTO_SCTP
  70. tristate 'SCTP protocol on new connection tracking support (EXPERIMENTAL)'
  71. depends on EXPERIMENTAL && NF_CONNTRACK
  72. default n
  73. help
  74. With this option enabled, the layer 3 independent connection
  75. tracking code will be able to do state tracking on SCTP connections.
  76. If you want to compile it as a module, say M here and read
  77. Documentation/modules.txt. If unsure, say `N'.
  78. config NF_CONNTRACK_FTP
  79. tristate "FTP support on new connection tracking (EXPERIMENTAL)"
  80. depends on EXPERIMENTAL && NF_CONNTRACK
  81. help
  82. Tracking FTP connections is problematic: special helpers are
  83. required for tracking them, and doing masquerading and other forms
  84. of Network Address Translation on them.
  85. This is FTP support on Layer 3 independent connection tracking.
  86. Layer 3 independent connection tracking is experimental scheme
  87. which generalize ip_conntrack to support other layer 3 protocols.
  88. To compile it as a module, choose M here. If unsure, say N.
  89. config NF_CT_NETLINK
  90. tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
  91. depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
  92. depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
  93. help
  94. This option enables support for a netlink-based userspace interface
  95. config NETFILTER_XTABLES
  96. tristate "Netfilter Xtables support (required for ip_tables)"
  97. help
  98. This is required if you intend to use any of ip_tables,
  99. ip6_tables or arp_tables.
  100. # alphabetically ordered list of targets
  101. config NETFILTER_XT_TARGET_CLASSIFY
  102. tristate '"CLASSIFY" target support'
  103. depends on NETFILTER_XTABLES
  104. help
  105. This option adds a `CLASSIFY' target, which enables the user to set
  106. the priority of a packet. Some qdiscs can use this value for
  107. classification, among these are:
  108. atm, cbq, dsmark, pfifo_fast, htb, prio
  109. To compile it as a module, choose M here. If unsure, say N.
  110. config NETFILTER_XT_TARGET_CONNMARK
  111. tristate '"CONNMARK" target support'
  112. depends on NETFILTER_XTABLES
  113. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  114. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  115. help
  116. This option adds a `CONNMARK' target, which allows one to manipulate
  117. the connection mark value. Similar to the MARK target, but
  118. affects the connection mark value rather than the packet mark value.
  119. If you want to compile it as a module, say M here and read
  120. <file:Documentation/modules.txt>. The module will be called
  121. ipt_CONNMARK.o. If unsure, say `N'.
  122. config NETFILTER_XT_TARGET_MARK
  123. tristate '"MARK" target support'
  124. depends on NETFILTER_XTABLES
  125. help
  126. This option adds a `MARK' target, which allows you to create rules
  127. in the `mangle' table which alter the netfilter mark (nfmark) field
  128. associated with the packet prior to routing. This can change
  129. the routing method (see `Use netfilter MARK value as routing
  130. key') and can also be used by other subsystems to change their
  131. behavior.
  132. To compile it as a module, choose M here. If unsure, say N.
  133. config NETFILTER_XT_TARGET_NFQUEUE
  134. tristate '"NFQUEUE" target Support'
  135. depends on NETFILTER_XTABLES
  136. help
  137. This target replaced the old obsolete QUEUE target.
  138. As opposed to QUEUE, it supports 65535 different queues,
  139. not just one.
  140. To compile it as a module, choose M here. If unsure, say N.
  141. config NETFILTER_XT_TARGET_NOTRACK
  142. tristate '"NOTRACK" target support'
  143. depends on NETFILTER_XTABLES
  144. depends on IP_NF_RAW || IP6_NF_RAW
  145. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  146. help
  147. The NOTRACK target allows a select rule to specify
  148. which packets *not* to enter the conntrack/NAT
  149. subsystem with all the consequences (no ICMP error tracking,
  150. no protocol helpers for the selected packets).
  151. If you want to compile it as a module, say M here and read
  152. <file:Documentation/modules.txt>. If unsure, say `N'.
  153. config NETFILTER_XT_TARGET_SECMARK
  154. tristate '"SECMARK" target support'
  155. depends on NETFILTER_XTABLES && NETWORK_SECMARK
  156. help
  157. The SECMARK target allows security marking of network
  158. packets, for use with security subsystems.
  159. To compile it as a module, choose M here. If unsure, say N.
  160. config NETFILTER_XT_TARGET_CONNSECMARK
  161. tristate '"CONNSECMARK" target support'
  162. depends on NETFILTER_XTABLES && (NF_CONNTRACK_SECMARK || IP_NF_CONNTRACK_SECMARK)
  163. help
  164. The CONNSECMARK target copies security markings from packets
  165. to connections, and restores security markings from connections
  166. to packets (if the packets are not already marked). This would
  167. normally be used in conjunction with the SECMARK target.
  168. To compile it as a module, choose M here. If unsure, say N.
  169. config NETFILTER_XT_MATCH_COMMENT
  170. tristate '"comment" match support'
  171. depends on NETFILTER_XTABLES
  172. help
  173. This option adds a `comment' dummy-match, which allows you to put
  174. comments in your iptables ruleset.
  175. If you want to compile it as a module, say M here and read
  176. <file:Documentation/modules.txt>. If unsure, say `N'.
  177. config NETFILTER_XT_MATCH_CONNBYTES
  178. tristate '"connbytes" per-connection counter match support'
  179. depends on NETFILTER_XTABLES
  180. depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
  181. help
  182. This option adds a `connbytes' match, which allows you to match the
  183. number of bytes and/or packets for each direction within a connection.
  184. If you want to compile it as a module, say M here and read
  185. <file:Documentation/modules.txt>. If unsure, say `N'.
  186. config NETFILTER_XT_MATCH_CONNMARK
  187. tristate '"connmark" connection mark match support'
  188. depends on NETFILTER_XTABLES
  189. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  190. help
  191. This option adds a `connmark' match, which allows you to match the
  192. connection mark value previously set for the session by `CONNMARK'.
  193. If you want to compile it as a module, say M here and read
  194. <file:Documentation/modules.txt>. The module will be called
  195. ipt_connmark.o. If unsure, say `N'.
  196. config NETFILTER_XT_MATCH_CONNTRACK
  197. tristate '"conntrack" connection tracking match support'
  198. depends on NETFILTER_XTABLES
  199. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  200. help
  201. This is a general conntrack match module, a superset of the state match.
  202. It allows matching on additional conntrack information, which is
  203. useful in complex configurations, such as NAT gateways with multiple
  204. internet links or tunnels.
  205. To compile it as a module, choose M here. If unsure, say N.
  206. config NETFILTER_XT_MATCH_DCCP
  207. tristate '"DCCP" protocol match support'
  208. depends on NETFILTER_XTABLES
  209. help
  210. With this option enabled, you will be able to use the iptables
  211. `dccp' match in order to match on DCCP source/destination ports
  212. and DCCP flags.
  213. If you want to compile it as a module, say M here and read
  214. <file:Documentation/modules.txt>. If unsure, say `N'.
  215. config NETFILTER_XT_MATCH_ESP
  216. tristate '"ESP" match support'
  217. depends on NETFILTER_XTABLES
  218. help
  219. This match extension allows you to match a range of SPIs
  220. inside ESP header of IPSec packets.
  221. To compile it as a module, choose M here. If unsure, say N.
  222. config NETFILTER_XT_MATCH_HELPER
  223. tristate '"helper" match support'
  224. depends on NETFILTER_XTABLES
  225. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  226. help
  227. Helper matching allows you to match packets in dynamic connections
  228. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  229. To compile it as a module, choose M here. If unsure, say Y.
  230. config NETFILTER_XT_MATCH_LENGTH
  231. tristate '"length" match support'
  232. depends on NETFILTER_XTABLES
  233. help
  234. This option allows you to match the length of a packet against a
  235. specific value or range of values.
  236. To compile it as a module, choose M here. If unsure, say N.
  237. config NETFILTER_XT_MATCH_LIMIT
  238. tristate '"limit" match support'
  239. depends on NETFILTER_XTABLES
  240. help
  241. limit matching allows you to control the rate at which a rule can be
  242. matched: mainly useful in combination with the LOG target ("LOG
  243. target support", below) and to avoid some Denial of Service attacks.
  244. To compile it as a module, choose M here. If unsure, say N.
  245. config NETFILTER_XT_MATCH_MAC
  246. tristate '"mac" address match support'
  247. depends on NETFILTER_XTABLES
  248. help
  249. MAC matching allows you to match packets based on the source
  250. Ethernet address of the packet.
  251. To compile it as a module, choose M here. If unsure, say N.
  252. config NETFILTER_XT_MATCH_MARK
  253. tristate '"mark" match support'
  254. depends on NETFILTER_XTABLES
  255. help
  256. Netfilter mark matching allows you to match packets based on the
  257. `nfmark' value in the packet. This can be set by the MARK target
  258. (see below).
  259. To compile it as a module, choose M here. If unsure, say N.
  260. config NETFILTER_XT_MATCH_POLICY
  261. tristate 'IPsec "policy" match support'
  262. depends on NETFILTER_XTABLES && XFRM
  263. help
  264. Policy matching allows you to match packets based on the
  265. IPsec policy that was used during decapsulation/will
  266. be used during encapsulation.
  267. To compile it as a module, choose M here. If unsure, say N.
  268. config NETFILTER_XT_MATCH_MULTIPORT
  269. tristate "Multiple port match support"
  270. depends on NETFILTER_XTABLES
  271. help
  272. Multiport matching allows you to match TCP or UDP packets based on
  273. a series of source or destination ports: normally a rule can only
  274. match a single range of ports.
  275. To compile it as a module, choose M here. If unsure, say N.
  276. config NETFILTER_XT_MATCH_PHYSDEV
  277. tristate '"physdev" match support'
  278. depends on NETFILTER_XTABLES && BRIDGE_NETFILTER
  279. help
  280. Physdev packet matching matches against the physical bridge ports
  281. the IP packet arrived on or will leave by.
  282. To compile it as a module, choose M here. If unsure, say N.
  283. config NETFILTER_XT_MATCH_PKTTYPE
  284. tristate '"pkttype" packet type match support'
  285. depends on NETFILTER_XTABLES
  286. help
  287. Packet type matching allows you to match a packet by
  288. its "class", eg. BROADCAST, MULTICAST, ...
  289. Typical usage:
  290. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  291. To compile it as a module, choose M here. If unsure, say N.
  292. config NETFILTER_XT_MATCH_QUOTA
  293. tristate '"quota" match support'
  294. depends on NETFILTER_XTABLES
  295. help
  296. This option adds a `quota' match, which allows to match on a
  297. byte counter.
  298. If you want to compile it as a module, say M here and read
  299. <file:Documentation/modules.txt>. If unsure, say `N'.
  300. config NETFILTER_XT_MATCH_REALM
  301. tristate '"realm" match support'
  302. depends on NETFILTER_XTABLES
  303. select NET_CLS_ROUTE
  304. help
  305. This option adds a `realm' match, which allows you to use the realm
  306. key from the routing subsystem inside iptables.
  307. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  308. in tc world.
  309. If you want to compile it as a module, say M here and read
  310. <file:Documentation/modules.txt>. If unsure, say `N'.
  311. config NETFILTER_XT_MATCH_SCTP
  312. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  313. depends on NETFILTER_XTABLES && EXPERIMENTAL
  314. help
  315. With this option enabled, you will be able to use the
  316. `sctp' match in order to match on SCTP source/destination ports
  317. and SCTP chunk types.
  318. If you want to compile it as a module, say M here and read
  319. <file:Documentation/modules.txt>. If unsure, say `N'.
  320. config NETFILTER_XT_MATCH_STATE
  321. tristate '"state" match support'
  322. depends on NETFILTER_XTABLES
  323. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  324. help
  325. Connection state matching allows you to match packets based on their
  326. relationship to a tracked connection (ie. previous packets). This
  327. is a powerful tool for packet classification.
  328. To compile it as a module, choose M here. If unsure, say N.
  329. config NETFILTER_XT_MATCH_STATISTIC
  330. tristate '"statistic" match support'
  331. depends on NETFILTER_XTABLES
  332. help
  333. This option adds a `statistic' match, which allows you to match
  334. on packets periodically or randomly with a given percentage.
  335. To compile it as a module, choose M here. If unsure, say N.
  336. config NETFILTER_XT_MATCH_STRING
  337. tristate '"string" match support'
  338. depends on NETFILTER_XTABLES
  339. select TEXTSEARCH
  340. select TEXTSEARCH_KMP
  341. select TEXTSEARCH_BM
  342. select TEXTSEARCH_FSM
  343. help
  344. This option adds a `string' match, which allows you to look for
  345. pattern matchings in packets.
  346. To compile it as a module, choose M here. If unsure, say N.
  347. config NETFILTER_XT_MATCH_TCPMSS
  348. tristate '"tcpmss" match support'
  349. depends on NETFILTER_XTABLES
  350. help
  351. This option adds a `tcpmss' match, which allows you to examine the
  352. MSS value of TCP SYN packets, which control the maximum packet size
  353. for that connection.
  354. To compile it as a module, choose M here. If unsure, say N.
  355. endmenu