Kconfig 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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_ENABLED
  24. tristate "Netfilter connection tracking support"
  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 (except for Fast NAT). It can also be used to
  31. enhance packet filtering (see `Connection state match support'
  32. below).
  33. To compile it as a module, choose M here. If unsure, say N.
  34. choice
  35. prompt "Netfilter connection tracking support"
  36. depends on NF_CONNTRACK_ENABLED
  37. config NF_CONNTRACK_SUPPORT
  38. bool "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
  39. depends on EXPERIMENTAL
  40. help
  41. Layer 3 independent connection tracking is experimental scheme
  42. which generalize ip_conntrack to support other layer 3 protocols.
  43. This is required to do Masquerading or other kinds of Network
  44. Address Translation (except for Fast NAT). It can also be used to
  45. enhance packet filtering (see `Connection state match support'
  46. below).
  47. config IP_NF_CONNTRACK_SUPPORT
  48. bool "Layer 3 Dependent Connection tracking"
  49. help
  50. The old, Layer 3 dependent ip_conntrack subsystem of netfilter.
  51. This is required to do Masquerading or other kinds of Network
  52. Address Translation (except for Fast NAT). It can also be used to
  53. enhance packet filtering (see `Connection state match support'
  54. below).
  55. endchoice
  56. config NF_CONNTRACK
  57. tristate
  58. default m if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
  59. default y if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
  60. config IP_NF_CONNTRACK
  61. tristate
  62. default m if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
  63. default y if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
  64. config NF_CT_ACCT
  65. bool "Connection tracking flow accounting"
  66. depends on NF_CONNTRACK
  67. help
  68. If this option is enabled, the connection tracking code will
  69. keep per-flow packet and byte counters.
  70. Those counters can be used for flow-based accounting or the
  71. `connbytes' match.
  72. If unsure, say `N'.
  73. config NF_CONNTRACK_MARK
  74. bool 'Connection mark tracking support'
  75. depends on NF_CONNTRACK
  76. help
  77. This option enables support for connection marks, used by the
  78. `CONNMARK' target and `connmark' match. Similar to the mark value
  79. of packets, but this mark value is kept in the conntrack session
  80. instead of the individual packets.
  81. config NF_CONNTRACK_SECMARK
  82. bool 'Connection tracking security mark support'
  83. depends on NF_CONNTRACK && NETWORK_SECMARK
  84. help
  85. This option enables security markings to be applied to
  86. connections. Typically they are copied to connections from
  87. packets using the CONNSECMARK target and copied back from
  88. connections to packets with the same target, with the packets
  89. being originally labeled via SECMARK.
  90. If unsure, say 'N'.
  91. config NF_CONNTRACK_EVENTS
  92. bool "Connection tracking events (EXPERIMENTAL)"
  93. depends on EXPERIMENTAL && NF_CONNTRACK
  94. help
  95. If this option is enabled, the connection tracking code will
  96. provide a notifier chain that can be used by other kernel code
  97. to get notified about changes in the connection tracking state.
  98. If unsure, say `N'.
  99. config NF_CT_PROTO_SCTP
  100. tristate 'SCTP protocol on new connection tracking support (EXPERIMENTAL)'
  101. depends on EXPERIMENTAL && NF_CONNTRACK
  102. default n
  103. help
  104. With this option enabled, the layer 3 independent connection
  105. tracking code will be able to do state tracking on SCTP connections.
  106. If you want to compile it as a module, say M here and read
  107. Documentation/modules.txt. If unsure, say `N'.
  108. config NF_CONNTRACK_AMANDA
  109. tristate "Amanda backup protocol support (EXPERIMENTAL)"
  110. depends on EXPERIMENTAL && NF_CONNTRACK
  111. select TEXTSEARCH
  112. select TEXTSEARCH_KMP
  113. help
  114. If you are running the Amanda backup package <http://www.amanda.org/>
  115. on this machine or machines that will be MASQUERADED through this
  116. machine, then you may want to enable this feature. This allows the
  117. connection tracking and natting code to allow the sub-channels that
  118. Amanda requires for communication of the backup data, messages and
  119. index.
  120. To compile it as a module, choose M here. If unsure, say N.
  121. config NF_CONNTRACK_FTP
  122. tristate "FTP support on new connection tracking (EXPERIMENTAL)"
  123. depends on EXPERIMENTAL && NF_CONNTRACK
  124. help
  125. Tracking FTP connections is problematic: special helpers are
  126. required for tracking them, and doing masquerading and other forms
  127. of Network Address Translation on them.
  128. This is FTP support on Layer 3 independent connection tracking.
  129. Layer 3 independent connection tracking is experimental scheme
  130. which generalize ip_conntrack to support other layer 3 protocols.
  131. To compile it as a module, choose M here. If unsure, say N.
  132. config NF_CT_NETLINK
  133. tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
  134. depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
  135. depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
  136. help
  137. This option enables support for a netlink-based userspace interface
  138. config NETFILTER_XTABLES
  139. tristate "Netfilter Xtables support (required for ip_tables)"
  140. help
  141. This is required if you intend to use any of ip_tables,
  142. ip6_tables or arp_tables.
  143. # alphabetically ordered list of targets
  144. config NETFILTER_XT_TARGET_CLASSIFY
  145. tristate '"CLASSIFY" target support'
  146. depends on NETFILTER_XTABLES
  147. help
  148. This option adds a `CLASSIFY' target, which enables the user to set
  149. the priority of a packet. Some qdiscs can use this value for
  150. classification, among these are:
  151. atm, cbq, dsmark, pfifo_fast, htb, prio
  152. To compile it as a module, choose M here. If unsure, say N.
  153. config NETFILTER_XT_TARGET_CONNMARK
  154. tristate '"CONNMARK" target support'
  155. depends on NETFILTER_XTABLES
  156. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  157. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  158. help
  159. This option adds a `CONNMARK' target, which allows one to manipulate
  160. the connection mark value. Similar to the MARK target, but
  161. affects the connection mark value rather than the packet mark value.
  162. If you want to compile it as a module, say M here and read
  163. <file:Documentation/modules.txt>. The module will be called
  164. ipt_CONNMARK.o. If unsure, say `N'.
  165. config NETFILTER_XT_TARGET_DSCP
  166. tristate '"DSCP" target support'
  167. depends on NETFILTER_XTABLES
  168. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  169. help
  170. This option adds a `DSCP' target, which allows you to manipulate
  171. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  172. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  173. To compile it as a module, choose M here. If unsure, say N.
  174. config NETFILTER_XT_TARGET_MARK
  175. tristate '"MARK" target support'
  176. depends on NETFILTER_XTABLES
  177. help
  178. This option adds a `MARK' target, which allows you to create rules
  179. in the `mangle' table which alter the netfilter mark (nfmark) field
  180. associated with the packet prior to routing. This can change
  181. the routing method (see `Use netfilter MARK value as routing
  182. key') and can also be used by other subsystems to change their
  183. behavior.
  184. To compile it as a module, choose M here. If unsure, say N.
  185. config NETFILTER_XT_TARGET_NFQUEUE
  186. tristate '"NFQUEUE" target Support'
  187. depends on NETFILTER_XTABLES
  188. help
  189. This target replaced the old obsolete QUEUE target.
  190. As opposed to QUEUE, it supports 65535 different queues,
  191. not just one.
  192. To compile it as a module, choose M here. If unsure, say N.
  193. config NETFILTER_XT_TARGET_NFLOG
  194. tristate '"NFLOG" target support'
  195. depends on NETFILTER_XTABLES
  196. help
  197. This option enables the NFLOG target, which allows to LOG
  198. messages through the netfilter logging API, which can use
  199. either the old LOG target, the old ULOG target or nfnetlink_log
  200. as backend.
  201. To compile it as a module, choose M here. If unsure, say N.
  202. config NETFILTER_XT_TARGET_NOTRACK
  203. tristate '"NOTRACK" target support'
  204. depends on NETFILTER_XTABLES
  205. depends on IP_NF_RAW || IP6_NF_RAW
  206. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  207. help
  208. The NOTRACK target allows a select rule to specify
  209. which packets *not* to enter the conntrack/NAT
  210. subsystem with all the consequences (no ICMP error tracking,
  211. no protocol helpers for the selected packets).
  212. If you want to compile it as a module, say M here and read
  213. <file:Documentation/modules.txt>. If unsure, say `N'.
  214. config NETFILTER_XT_TARGET_SECMARK
  215. tristate '"SECMARK" target support'
  216. depends on NETFILTER_XTABLES && NETWORK_SECMARK
  217. help
  218. The SECMARK target allows security marking of network
  219. packets, for use with security subsystems.
  220. To compile it as a module, choose M here. If unsure, say N.
  221. config NETFILTER_XT_TARGET_CONNSECMARK
  222. tristate '"CONNSECMARK" target support'
  223. depends on NETFILTER_XTABLES && \
  224. ((NF_CONNTRACK && NF_CONNTRACK_SECMARK) || \
  225. (IP_NF_CONNTRACK && IP_NF_CONNTRACK_SECMARK))
  226. help
  227. The CONNSECMARK target copies security markings from packets
  228. to connections, and restores security markings from connections
  229. to packets (if the packets are not already marked). This would
  230. normally be used in conjunction with the SECMARK target.
  231. To compile it as a module, choose M here. If unsure, say N.
  232. config NETFILTER_XT_MATCH_COMMENT
  233. tristate '"comment" match support'
  234. depends on NETFILTER_XTABLES
  235. help
  236. This option adds a `comment' dummy-match, which allows you to put
  237. comments in your iptables ruleset.
  238. If you want to compile it as a module, say M here and read
  239. <file:Documentation/modules.txt>. If unsure, say `N'.
  240. config NETFILTER_XT_MATCH_CONNBYTES
  241. tristate '"connbytes" per-connection counter match support'
  242. depends on NETFILTER_XTABLES
  243. depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
  244. help
  245. This option adds a `connbytes' match, which allows you to match the
  246. number of bytes and/or packets for each direction within a connection.
  247. If you want to compile it as a module, say M here and read
  248. <file:Documentation/modules.txt>. If unsure, say `N'.
  249. config NETFILTER_XT_MATCH_CONNMARK
  250. tristate '"connmark" connection mark match support'
  251. depends on NETFILTER_XTABLES
  252. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  253. help
  254. This option adds a `connmark' match, which allows you to match the
  255. connection mark value previously set for the session by `CONNMARK'.
  256. If you want to compile it as a module, say M here and read
  257. <file:Documentation/modules.txt>. The module will be called
  258. ipt_connmark.o. If unsure, say `N'.
  259. config NETFILTER_XT_MATCH_CONNTRACK
  260. tristate '"conntrack" connection tracking match support'
  261. depends on NETFILTER_XTABLES
  262. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  263. help
  264. This is a general conntrack match module, a superset of the state match.
  265. It allows matching on additional conntrack information, which is
  266. useful in complex configurations, such as NAT gateways with multiple
  267. internet links or tunnels.
  268. To compile it as a module, choose M here. If unsure, say N.
  269. config NETFILTER_XT_MATCH_DCCP
  270. tristate '"DCCP" protocol match support'
  271. depends on NETFILTER_XTABLES
  272. help
  273. With this option enabled, you will be able to use the iptables
  274. `dccp' match in order to match on DCCP source/destination ports
  275. and DCCP flags.
  276. If you want to compile it as a module, say M here and read
  277. <file:Documentation/modules.txt>. If unsure, say `N'.
  278. config NETFILTER_XT_MATCH_DSCP
  279. tristate '"DSCP" match support'
  280. depends on NETFILTER_XTABLES
  281. help
  282. This option adds a `DSCP' match, which allows you to match against
  283. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  284. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  285. To compile it as a module, choose M here. If unsure, say N.
  286. config NETFILTER_XT_MATCH_ESP
  287. tristate '"ESP" match support'
  288. depends on NETFILTER_XTABLES
  289. help
  290. This match extension allows you to match a range of SPIs
  291. inside ESP header of IPSec packets.
  292. To compile it as a module, choose M here. If unsure, say N.
  293. config NETFILTER_XT_MATCH_HELPER
  294. tristate '"helper" match support'
  295. depends on NETFILTER_XTABLES
  296. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  297. help
  298. Helper matching allows you to match packets in dynamic connections
  299. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  300. To compile it as a module, choose M here. If unsure, say Y.
  301. config NETFILTER_XT_MATCH_LENGTH
  302. tristate '"length" match support'
  303. depends on NETFILTER_XTABLES
  304. help
  305. This option allows you to match the length of a packet against a
  306. specific value or range of values.
  307. To compile it as a module, choose M here. If unsure, say N.
  308. config NETFILTER_XT_MATCH_LIMIT
  309. tristate '"limit" match support'
  310. depends on NETFILTER_XTABLES
  311. help
  312. limit matching allows you to control the rate at which a rule can be
  313. matched: mainly useful in combination with the LOG target ("LOG
  314. target support", below) and to avoid some Denial of Service attacks.
  315. To compile it as a module, choose M here. If unsure, say N.
  316. config NETFILTER_XT_MATCH_MAC
  317. tristate '"mac" address match support'
  318. depends on NETFILTER_XTABLES
  319. help
  320. MAC matching allows you to match packets based on the source
  321. Ethernet address of the packet.
  322. To compile it as a module, choose M here. If unsure, say N.
  323. config NETFILTER_XT_MATCH_MARK
  324. tristate '"mark" match support'
  325. depends on NETFILTER_XTABLES
  326. help
  327. Netfilter mark matching allows you to match packets based on the
  328. `nfmark' value in the packet. This can be set by the MARK target
  329. (see below).
  330. To compile it as a module, choose M here. If unsure, say N.
  331. config NETFILTER_XT_MATCH_POLICY
  332. tristate 'IPsec "policy" match support'
  333. depends on NETFILTER_XTABLES && XFRM
  334. help
  335. Policy matching allows you to match packets based on the
  336. IPsec policy that was used during decapsulation/will
  337. be used during encapsulation.
  338. To compile it as a module, choose M here. If unsure, say N.
  339. config NETFILTER_XT_MATCH_MULTIPORT
  340. tristate "Multiple port match support"
  341. depends on NETFILTER_XTABLES
  342. help
  343. Multiport matching allows you to match TCP or UDP packets based on
  344. a series of source or destination ports: normally a rule can only
  345. match a single range of ports.
  346. To compile it as a module, choose M here. If unsure, say N.
  347. config NETFILTER_XT_MATCH_PHYSDEV
  348. tristate '"physdev" match support'
  349. depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
  350. help
  351. Physdev packet matching matches against the physical bridge ports
  352. the IP packet arrived on or will leave by.
  353. To compile it as a module, choose M here. If unsure, say N.
  354. config NETFILTER_XT_MATCH_PKTTYPE
  355. tristate '"pkttype" packet type match support'
  356. depends on NETFILTER_XTABLES
  357. help
  358. Packet type matching allows you to match a packet by
  359. its "class", eg. BROADCAST, MULTICAST, ...
  360. Typical usage:
  361. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  362. To compile it as a module, choose M here. If unsure, say N.
  363. config NETFILTER_XT_MATCH_QUOTA
  364. tristate '"quota" match support'
  365. depends on NETFILTER_XTABLES
  366. help
  367. This option adds a `quota' match, which allows to match on a
  368. byte counter.
  369. If you want to compile it as a module, say M here and read
  370. <file:Documentation/modules.txt>. If unsure, say `N'.
  371. config NETFILTER_XT_MATCH_REALM
  372. tristate '"realm" match support'
  373. depends on NETFILTER_XTABLES
  374. select NET_CLS_ROUTE
  375. help
  376. This option adds a `realm' match, which allows you to use the realm
  377. key from the routing subsystem inside iptables.
  378. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  379. in tc world.
  380. If you want to compile it as a module, say M here and read
  381. <file:Documentation/modules.txt>. If unsure, say `N'.
  382. config NETFILTER_XT_MATCH_SCTP
  383. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  384. depends on NETFILTER_XTABLES && EXPERIMENTAL
  385. help
  386. With this option enabled, you will be able to use the
  387. `sctp' match in order to match on SCTP source/destination ports
  388. and SCTP chunk types.
  389. If you want to compile it as a module, say M here and read
  390. <file:Documentation/modules.txt>. If unsure, say `N'.
  391. config NETFILTER_XT_MATCH_STATE
  392. tristate '"state" match support'
  393. depends on NETFILTER_XTABLES
  394. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  395. help
  396. Connection state matching allows you to match packets based on their
  397. relationship to a tracked connection (ie. previous packets). This
  398. is a powerful tool for packet classification.
  399. To compile it as a module, choose M here. If unsure, say N.
  400. config NETFILTER_XT_MATCH_STATISTIC
  401. tristate '"statistic" match support'
  402. depends on NETFILTER_XTABLES
  403. help
  404. This option adds a `statistic' match, which allows you to match
  405. on packets periodically or randomly with a given percentage.
  406. To compile it as a module, choose M here. If unsure, say N.
  407. config NETFILTER_XT_MATCH_STRING
  408. tristate '"string" match support'
  409. depends on NETFILTER_XTABLES
  410. select TEXTSEARCH
  411. select TEXTSEARCH_KMP
  412. select TEXTSEARCH_BM
  413. select TEXTSEARCH_FSM
  414. help
  415. This option adds a `string' match, which allows you to look for
  416. pattern matchings in packets.
  417. To compile it as a module, choose M here. If unsure, say N.
  418. config NETFILTER_XT_MATCH_TCPMSS
  419. tristate '"tcpmss" match support'
  420. depends on NETFILTER_XTABLES
  421. help
  422. This option adds a `tcpmss' match, which allows you to examine the
  423. MSS value of TCP SYN packets, which control the maximum packet size
  424. for that connection.
  425. To compile it as a module, choose M here. If unsure, say N.
  426. config NETFILTER_XT_MATCH_HASHLIMIT
  427. tristate '"hashlimit" match support'
  428. depends on NETFILTER_XTABLES
  429. help
  430. This option adds a `hashlimit' match.
  431. As opposed to `limit', this match dynamically creates a hash table
  432. of limit buckets, based on your selection of source/destination
  433. addresses and/or ports.
  434. It enables you to express policies like `10kpps for any given
  435. destination address' or `500pps from any given source address'
  436. with a single rule.
  437. endmenu