Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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_EVENTS
  52. bool "Connection tracking events (EXPERIMENTAL)"
  53. depends on EXPERIMENTAL && NF_CONNTRACK
  54. help
  55. If this option is enabled, the connection tracking code will
  56. provide a notifier chain that can be used by other kernel code
  57. to get notified about changes in the connection tracking state.
  58. If unsure, say `N'.
  59. config NF_CT_PROTO_SCTP
  60. tristate 'SCTP protocol on new connection tracking support (EXPERIMENTAL)'
  61. depends on EXPERIMENTAL && NF_CONNTRACK
  62. default n
  63. help
  64. With this option enabled, the layer 3 independent connection
  65. tracking code will be able to do state tracking on SCTP connections.
  66. If you want to compile it as a module, say M here and read
  67. Documentation/modules.txt. If unsure, say `N'.
  68. config NF_CONNTRACK_FTP
  69. tristate "FTP support on new connection tracking (EXPERIMENTAL)"
  70. depends on EXPERIMENTAL && NF_CONNTRACK
  71. help
  72. Tracking FTP connections is problematic: special helpers are
  73. required for tracking them, and doing masquerading and other forms
  74. of Network Address Translation on them.
  75. This is FTP support on Layer 3 independent connection tracking.
  76. Layer 3 independent connection tracking is experimental scheme
  77. which generalize ip_conntrack to support other layer 3 protocols.
  78. To compile it as a module, choose M here. If unsure, say N.
  79. config NF_CT_NETLINK
  80. tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
  81. depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
  82. depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
  83. help
  84. This option enables support for a netlink-based userspace interface
  85. config NETFILTER_XTABLES
  86. tristate "Netfilter Xtables support (required for ip_tables)"
  87. help
  88. This is required if you intend to use any of ip_tables,
  89. ip6_tables or arp_tables.
  90. # alphabetically ordered list of targets
  91. config NETFILTER_XT_TARGET_CLASSIFY
  92. tristate '"CLASSIFY" target support'
  93. depends on NETFILTER_XTABLES
  94. help
  95. This option adds a `CLASSIFY' target, which enables the user to set
  96. the priority of a packet. Some qdiscs can use this value for
  97. classification, among these are:
  98. atm, cbq, dsmark, pfifo_fast, htb, prio
  99. To compile it as a module, choose M here. If unsure, say N.
  100. config NETFILTER_XT_TARGET_CONNMARK
  101. tristate '"CONNMARK" target support'
  102. depends on NETFILTER_XTABLES
  103. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  104. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  105. help
  106. This option adds a `CONNMARK' target, which allows one to manipulate
  107. the connection mark value. Similar to the MARK target, but
  108. affects the connection mark value rather than the packet mark value.
  109. If you want to compile it as a module, say M here and read
  110. <file:Documentation/modules.txt>. The module will be called
  111. ipt_CONNMARK.o. If unsure, say `N'.
  112. config NETFILTER_XT_TARGET_MARK
  113. tristate '"MARK" target support'
  114. depends on NETFILTER_XTABLES
  115. help
  116. This option adds a `MARK' target, which allows you to create rules
  117. in the `mangle' table which alter the netfilter mark (nfmark) field
  118. associated with the packet prior to routing. This can change
  119. the routing method (see `Use netfilter MARK value as routing
  120. key') and can also be used by other subsystems to change their
  121. behavior.
  122. To compile it as a module, choose M here. If unsure, say N.
  123. config NETFILTER_XT_TARGET_NFQUEUE
  124. tristate '"NFQUEUE" target Support'
  125. depends on NETFILTER_XTABLES
  126. help
  127. This target replaced the old obsolete QUEUE target.
  128. As opposed to QUEUE, it supports 65535 different queues,
  129. not just one.
  130. To compile it as a module, choose M here. If unsure, say N.
  131. config NETFILTER_XT_TARGET_NOTRACK
  132. tristate '"NOTRACK" target support'
  133. depends on NETFILTER_XTABLES
  134. depends on IP_NF_RAW || IP6_NF_RAW
  135. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  136. help
  137. The NOTRACK target allows a select rule to specify
  138. which packets *not* to enter the conntrack/NAT
  139. subsystem with all the consequences (no ICMP error tracking,
  140. no protocol helpers for the selected packets).
  141. If you want to compile it as a module, say M here and read
  142. <file:Documentation/modules.txt>. If unsure, say `N'.
  143. config NETFILTER_XT_MATCH_COMMENT
  144. tristate '"comment" match support'
  145. depends on NETFILTER_XTABLES
  146. help
  147. This option adds a `comment' dummy-match, which allows you to put
  148. comments in your iptables ruleset.
  149. If you want to compile it as a module, say M here and read
  150. <file:Documentation/modules.txt>. If unsure, say `N'.
  151. config NETFILTER_XT_MATCH_CONNBYTES
  152. tristate '"connbytes" per-connection counter match support'
  153. depends on NETFILTER_XTABLES
  154. depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
  155. help
  156. This option adds a `connbytes' match, which allows you to match the
  157. number of bytes and/or packets for each direction within a connection.
  158. If you want to compile it as a module, say M here and read
  159. <file:Documentation/modules.txt>. If unsure, say `N'.
  160. config NETFILTER_XT_MATCH_CONNMARK
  161. tristate '"connmark" connection mark match support'
  162. depends on NETFILTER_XTABLES
  163. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  164. help
  165. This option adds a `connmark' match, which allows you to match the
  166. connection mark value previously set for the session by `CONNMARK'.
  167. If you want to compile it as a module, say M here and read
  168. <file:Documentation/modules.txt>. The module will be called
  169. ipt_connmark.o. If unsure, say `N'.
  170. config NETFILTER_XT_MATCH_CONNTRACK
  171. tristate '"conntrack" connection tracking match support'
  172. depends on NETFILTER_XTABLES
  173. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  174. help
  175. This is a general conntrack match module, a superset of the state match.
  176. It allows matching on additional conntrack information, which is
  177. useful in complex configurations, such as NAT gateways with multiple
  178. internet links or tunnels.
  179. To compile it as a module, choose M here. If unsure, say N.
  180. config NETFILTER_XT_MATCH_DCCP
  181. tristate '"DCCP" protocol match support'
  182. depends on NETFILTER_XTABLES
  183. help
  184. With this option enabled, you will be able to use the iptables
  185. `dccp' match in order to match on DCCP source/destination ports
  186. and DCCP flags.
  187. If you want to compile it as a module, say M here and read
  188. <file:Documentation/modules.txt>. If unsure, say `N'.
  189. config NETFILTER_XT_MATCH_ESP
  190. tristate '"ESP" match support'
  191. depends on NETFILTER_XTABLES
  192. help
  193. This match extension allows you to match a range of SPIs
  194. inside ESP header of IPSec packets.
  195. To compile it as a module, choose M here. If unsure, say N.
  196. config NETFILTER_XT_MATCH_HELPER
  197. tristate '"helper" match support'
  198. depends on NETFILTER_XTABLES
  199. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  200. help
  201. Helper matching allows you to match packets in dynamic connections
  202. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  203. To compile it as a module, choose M here. If unsure, say Y.
  204. config NETFILTER_XT_MATCH_LENGTH
  205. tristate '"length" match support'
  206. depends on NETFILTER_XTABLES
  207. help
  208. This option allows you to match the length of a packet against a
  209. specific value or range of values.
  210. To compile it as a module, choose M here. If unsure, say N.
  211. config NETFILTER_XT_MATCH_LIMIT
  212. tristate '"limit" match support'
  213. depends on NETFILTER_XTABLES
  214. help
  215. limit matching allows you to control the rate at which a rule can be
  216. matched: mainly useful in combination with the LOG target ("LOG
  217. target support", below) and to avoid some Denial of Service attacks.
  218. To compile it as a module, choose M here. If unsure, say N.
  219. config NETFILTER_XT_MATCH_MAC
  220. tristate '"mac" address match support'
  221. depends on NETFILTER_XTABLES
  222. help
  223. MAC matching allows you to match packets based on the source
  224. Ethernet address of the packet.
  225. To compile it as a module, choose M here. If unsure, say N.
  226. config NETFILTER_XT_MATCH_MARK
  227. tristate '"mark" match support'
  228. depends on NETFILTER_XTABLES
  229. help
  230. Netfilter mark matching allows you to match packets based on the
  231. `nfmark' value in the packet. This can be set by the MARK target
  232. (see below).
  233. To compile it as a module, choose M here. If unsure, say N.
  234. config NETFILTER_XT_MATCH_POLICY
  235. tristate 'IPsec "policy" match support'
  236. depends on NETFILTER_XTABLES && XFRM
  237. help
  238. Policy matching allows you to match packets based on the
  239. IPsec policy that was used during decapsulation/will
  240. be used during encapsulation.
  241. To compile it as a module, choose M here. If unsure, say N.
  242. config NETFILTER_XT_MATCH_MULTIPORT
  243. tristate "Multiple port match support"
  244. depends on NETFILTER_XTABLES
  245. help
  246. Multiport matching allows you to match TCP or UDP packets based on
  247. a series of source or destination ports: normally a rule can only
  248. match a single range of ports.
  249. To compile it as a module, choose M here. If unsure, say N.
  250. config NETFILTER_XT_MATCH_PHYSDEV
  251. tristate '"physdev" match support'
  252. depends on NETFILTER_XTABLES && BRIDGE_NETFILTER
  253. help
  254. Physdev packet matching matches against the physical bridge ports
  255. the IP packet arrived on or will leave by.
  256. To compile it as a module, choose M here. If unsure, say N.
  257. config NETFILTER_XT_MATCH_PKTTYPE
  258. tristate '"pkttype" packet type match support'
  259. depends on NETFILTER_XTABLES
  260. help
  261. Packet type matching allows you to match a packet by
  262. its "class", eg. BROADCAST, MULTICAST, ...
  263. Typical usage:
  264. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  265. To compile it as a module, choose M here. If unsure, say N.
  266. config NETFILTER_XT_MATCH_REALM
  267. tristate '"realm" match support'
  268. depends on NETFILTER_XTABLES
  269. select NET_CLS_ROUTE
  270. help
  271. This option adds a `realm' match, which allows you to use the realm
  272. key from the routing subsystem inside iptables.
  273. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  274. in tc world.
  275. If you want to compile it as a module, say M here and read
  276. <file:Documentation/modules.txt>. If unsure, say `N'.
  277. config NETFILTER_XT_MATCH_SCTP
  278. tristate '"sctp" protocol match support'
  279. depends on NETFILTER_XTABLES
  280. help
  281. With this option enabled, you will be able to use the
  282. `sctp' match in order to match on SCTP source/destination ports
  283. and SCTP chunk types.
  284. If you want to compile it as a module, say M here and read
  285. <file:Documentation/modules.txt>. If unsure, say `N'.
  286. config NETFILTER_XT_MATCH_STATE
  287. tristate '"state" match support'
  288. depends on NETFILTER_XTABLES
  289. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  290. help
  291. Connection state matching allows you to match packets based on their
  292. relationship to a tracked connection (ie. previous packets). This
  293. is a powerful tool for packet classification.
  294. To compile it as a module, choose M here. If unsure, say N.
  295. config NETFILTER_XT_MATCH_STRING
  296. tristate '"string" match support'
  297. depends on NETFILTER_XTABLES
  298. select TEXTSEARCH
  299. select TEXTSEARCH_KMP
  300. select TEXTSEARCH_BM
  301. select TEXTSEARCH_FSM
  302. help
  303. This option adds a `string' match, which allows you to look for
  304. pattern matchings in packets.
  305. To compile it as a module, choose M here. If unsure, say N.
  306. config NETFILTER_XT_MATCH_TCPMSS
  307. tristate '"tcpmss" match support'
  308. depends on NETFILTER_XTABLES
  309. help
  310. This option adds a `tcpmss' match, which allows you to examine the
  311. MSS value of TCP SYN packets, which control the maximum packet size
  312. for that connection.
  313. To compile it as a module, choose M here. If unsure, say N.
  314. endmenu