Kconfig 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  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_CONNTRACK_H323
  133. tristate "H.323 protocol support (EXPERIMENTAL)"
  134. depends on EXPERIMENTAL && NF_CONNTRACK
  135. help
  136. H.323 is a VoIP signalling protocol from ITU-T. As one of the most
  137. important VoIP protocols, it is widely used by voice hardware and
  138. software including voice gateways, IP phones, Netmeeting, OpenPhone,
  139. Gnomemeeting, etc.
  140. With this module you can support H.323 on a connection tracking/NAT
  141. firewall.
  142. This module supports RAS, Fast Start, H.245 Tunnelling, Call
  143. Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
  144. whiteboard, file transfer, etc. For more information, please
  145. visit http://nath323.sourceforge.net/.
  146. To compile it as a module, choose M here. If unsure, say N.
  147. config NF_CT_NETLINK
  148. tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
  149. depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
  150. depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
  151. help
  152. This option enables support for a netlink-based userspace interface
  153. config NETFILTER_XTABLES
  154. tristate "Netfilter Xtables support (required for ip_tables)"
  155. help
  156. This is required if you intend to use any of ip_tables,
  157. ip6_tables or arp_tables.
  158. # alphabetically ordered list of targets
  159. config NETFILTER_XT_TARGET_CLASSIFY
  160. tristate '"CLASSIFY" target support'
  161. depends on NETFILTER_XTABLES
  162. help
  163. This option adds a `CLASSIFY' target, which enables the user to set
  164. the priority of a packet. Some qdiscs can use this value for
  165. classification, among these are:
  166. atm, cbq, dsmark, pfifo_fast, htb, prio
  167. To compile it as a module, choose M here. If unsure, say N.
  168. config NETFILTER_XT_TARGET_CONNMARK
  169. tristate '"CONNMARK" target support'
  170. depends on NETFILTER_XTABLES
  171. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  172. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  173. help
  174. This option adds a `CONNMARK' target, which allows one to manipulate
  175. the connection mark value. Similar to the MARK target, but
  176. affects the connection mark value rather than the packet mark value.
  177. If you want to compile it as a module, say M here and read
  178. <file:Documentation/modules.txt>. The module will be called
  179. ipt_CONNMARK.o. If unsure, say `N'.
  180. config NETFILTER_XT_TARGET_DSCP
  181. tristate '"DSCP" target support'
  182. depends on NETFILTER_XTABLES
  183. depends on IP_NF_MANGLE || IP6_NF_MANGLE
  184. help
  185. This option adds a `DSCP' target, which allows you to manipulate
  186. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  187. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  188. To compile it as a module, choose M here. If unsure, say N.
  189. config NETFILTER_XT_TARGET_MARK
  190. tristate '"MARK" target support'
  191. depends on NETFILTER_XTABLES
  192. help
  193. This option adds a `MARK' target, which allows you to create rules
  194. in the `mangle' table which alter the netfilter mark (nfmark) field
  195. associated with the packet prior to routing. This can change
  196. the routing method (see `Use netfilter MARK value as routing
  197. key') and can also be used by other subsystems to change their
  198. behavior.
  199. To compile it as a module, choose M here. If unsure, say N.
  200. config NETFILTER_XT_TARGET_NFQUEUE
  201. tristate '"NFQUEUE" target Support'
  202. depends on NETFILTER_XTABLES
  203. help
  204. This target replaced the old obsolete QUEUE target.
  205. As opposed to QUEUE, it supports 65535 different queues,
  206. not just one.
  207. To compile it as a module, choose M here. If unsure, say N.
  208. config NETFILTER_XT_TARGET_NFLOG
  209. tristate '"NFLOG" target support'
  210. depends on NETFILTER_XTABLES
  211. help
  212. This option enables the NFLOG target, which allows to LOG
  213. messages through the netfilter logging API, which can use
  214. either the old LOG target, the old ULOG target or nfnetlink_log
  215. as backend.
  216. To compile it as a module, choose M here. If unsure, say N.
  217. config NETFILTER_XT_TARGET_NOTRACK
  218. tristate '"NOTRACK" target support'
  219. depends on NETFILTER_XTABLES
  220. depends on IP_NF_RAW || IP6_NF_RAW
  221. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  222. help
  223. The NOTRACK target allows a select rule to specify
  224. which packets *not* to enter the conntrack/NAT
  225. subsystem with all the consequences (no ICMP error tracking,
  226. no protocol helpers for the selected packets).
  227. If you want to compile it as a module, say M here and read
  228. <file:Documentation/modules.txt>. If unsure, say `N'.
  229. config NETFILTER_XT_TARGET_SECMARK
  230. tristate '"SECMARK" target support'
  231. depends on NETFILTER_XTABLES && NETWORK_SECMARK
  232. help
  233. The SECMARK target allows security marking of network
  234. packets, for use with security subsystems.
  235. To compile it as a module, choose M here. If unsure, say N.
  236. config NETFILTER_XT_TARGET_CONNSECMARK
  237. tristate '"CONNSECMARK" target support'
  238. depends on NETFILTER_XTABLES && \
  239. ((NF_CONNTRACK && NF_CONNTRACK_SECMARK) || \
  240. (IP_NF_CONNTRACK && IP_NF_CONNTRACK_SECMARK))
  241. help
  242. The CONNSECMARK target copies security markings from packets
  243. to connections, and restores security markings from connections
  244. to packets (if the packets are not already marked). This would
  245. normally be used in conjunction with the SECMARK target.
  246. To compile it as a module, choose M here. If unsure, say N.
  247. config NETFILTER_XT_MATCH_COMMENT
  248. tristate '"comment" match support'
  249. depends on NETFILTER_XTABLES
  250. help
  251. This option adds a `comment' dummy-match, which allows you to put
  252. comments in your iptables ruleset.
  253. If you want to compile it as a module, say M here and read
  254. <file:Documentation/modules.txt>. If unsure, say `N'.
  255. config NETFILTER_XT_MATCH_CONNBYTES
  256. tristate '"connbytes" per-connection counter match support'
  257. depends on NETFILTER_XTABLES
  258. depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
  259. help
  260. This option adds a `connbytes' match, which allows you to match the
  261. number of bytes and/or packets for each direction within a connection.
  262. If you want to compile it as a module, say M here and read
  263. <file:Documentation/modules.txt>. If unsure, say `N'.
  264. config NETFILTER_XT_MATCH_CONNMARK
  265. tristate '"connmark" connection mark match support'
  266. depends on NETFILTER_XTABLES
  267. depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
  268. help
  269. This option adds a `connmark' match, which allows you to match the
  270. connection mark value previously set for the session by `CONNMARK'.
  271. If you want to compile it as a module, say M here and read
  272. <file:Documentation/modules.txt>. The module will be called
  273. ipt_connmark.o. If unsure, say `N'.
  274. config NETFILTER_XT_MATCH_CONNTRACK
  275. tristate '"conntrack" connection tracking match support'
  276. depends on NETFILTER_XTABLES
  277. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  278. help
  279. This is a general conntrack match module, a superset of the state match.
  280. It allows matching on additional conntrack information, which is
  281. useful in complex configurations, such as NAT gateways with multiple
  282. internet links or tunnels.
  283. To compile it as a module, choose M here. If unsure, say N.
  284. config NETFILTER_XT_MATCH_DCCP
  285. tristate '"DCCP" protocol match support'
  286. depends on NETFILTER_XTABLES
  287. help
  288. With this option enabled, you will be able to use the iptables
  289. `dccp' match in order to match on DCCP source/destination ports
  290. and DCCP flags.
  291. If you want to compile it as a module, say M here and read
  292. <file:Documentation/modules.txt>. If unsure, say `N'.
  293. config NETFILTER_XT_MATCH_DSCP
  294. tristate '"DSCP" match support'
  295. depends on NETFILTER_XTABLES
  296. help
  297. This option adds a `DSCP' match, which allows you to match against
  298. the IPv4/IPv6 header DSCP field (differentiated services codepoint).
  299. The DSCP field can have any value between 0x0 and 0x3f inclusive.
  300. To compile it as a module, choose M here. If unsure, say N.
  301. config NETFILTER_XT_MATCH_ESP
  302. tristate '"ESP" match support'
  303. depends on NETFILTER_XTABLES
  304. help
  305. This match extension allows you to match a range of SPIs
  306. inside ESP header of IPSec packets.
  307. To compile it as a module, choose M here. If unsure, say N.
  308. config NETFILTER_XT_MATCH_HELPER
  309. tristate '"helper" match support'
  310. depends on NETFILTER_XTABLES
  311. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  312. help
  313. Helper matching allows you to match packets in dynamic connections
  314. tracked by a conntrack-helper, ie. ip_conntrack_ftp
  315. To compile it as a module, choose M here. If unsure, say Y.
  316. config NETFILTER_XT_MATCH_LENGTH
  317. tristate '"length" match support'
  318. depends on NETFILTER_XTABLES
  319. help
  320. This option allows you to match the length of a packet against a
  321. specific value or range of values.
  322. To compile it as a module, choose M here. If unsure, say N.
  323. config NETFILTER_XT_MATCH_LIMIT
  324. tristate '"limit" match support'
  325. depends on NETFILTER_XTABLES
  326. help
  327. limit matching allows you to control the rate at which a rule can be
  328. matched: mainly useful in combination with the LOG target ("LOG
  329. target support", below) and to avoid some Denial of Service attacks.
  330. To compile it as a module, choose M here. If unsure, say N.
  331. config NETFILTER_XT_MATCH_MAC
  332. tristate '"mac" address match support'
  333. depends on NETFILTER_XTABLES
  334. help
  335. MAC matching allows you to match packets based on the source
  336. Ethernet address of the packet.
  337. To compile it as a module, choose M here. If unsure, say N.
  338. config NETFILTER_XT_MATCH_MARK
  339. tristate '"mark" match support'
  340. depends on NETFILTER_XTABLES
  341. help
  342. Netfilter mark matching allows you to match packets based on the
  343. `nfmark' value in the packet. This can be set by the MARK target
  344. (see below).
  345. To compile it as a module, choose M here. If unsure, say N.
  346. config NETFILTER_XT_MATCH_POLICY
  347. tristate 'IPsec "policy" match support'
  348. depends on NETFILTER_XTABLES && XFRM
  349. help
  350. Policy matching allows you to match packets based on the
  351. IPsec policy that was used during decapsulation/will
  352. be used during encapsulation.
  353. To compile it as a module, choose M here. If unsure, say N.
  354. config NETFILTER_XT_MATCH_MULTIPORT
  355. tristate "Multiple port match support"
  356. depends on NETFILTER_XTABLES
  357. help
  358. Multiport matching allows you to match TCP or UDP packets based on
  359. a series of source or destination ports: normally a rule can only
  360. match a single range of ports.
  361. To compile it as a module, choose M here. If unsure, say N.
  362. config NETFILTER_XT_MATCH_PHYSDEV
  363. tristate '"physdev" match support'
  364. depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
  365. help
  366. Physdev packet matching matches against the physical bridge ports
  367. the IP packet arrived on or will leave by.
  368. To compile it as a module, choose M here. If unsure, say N.
  369. config NETFILTER_XT_MATCH_PKTTYPE
  370. tristate '"pkttype" packet type match support'
  371. depends on NETFILTER_XTABLES
  372. help
  373. Packet type matching allows you to match a packet by
  374. its "class", eg. BROADCAST, MULTICAST, ...
  375. Typical usage:
  376. iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
  377. To compile it as a module, choose M here. If unsure, say N.
  378. config NETFILTER_XT_MATCH_QUOTA
  379. tristate '"quota" match support'
  380. depends on NETFILTER_XTABLES
  381. help
  382. This option adds a `quota' match, which allows to match on a
  383. byte counter.
  384. If you want to compile it as a module, say M here and read
  385. <file:Documentation/modules.txt>. If unsure, say `N'.
  386. config NETFILTER_XT_MATCH_REALM
  387. tristate '"realm" match support'
  388. depends on NETFILTER_XTABLES
  389. select NET_CLS_ROUTE
  390. help
  391. This option adds a `realm' match, which allows you to use the realm
  392. key from the routing subsystem inside iptables.
  393. This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
  394. in tc world.
  395. If you want to compile it as a module, say M here and read
  396. <file:Documentation/modules.txt>. If unsure, say `N'.
  397. config NETFILTER_XT_MATCH_SCTP
  398. tristate '"sctp" protocol match support (EXPERIMENTAL)'
  399. depends on NETFILTER_XTABLES && EXPERIMENTAL
  400. help
  401. With this option enabled, you will be able to use the
  402. `sctp' match in order to match on SCTP source/destination ports
  403. and SCTP chunk types.
  404. If you want to compile it as a module, say M here and read
  405. <file:Documentation/modules.txt>. If unsure, say `N'.
  406. config NETFILTER_XT_MATCH_STATE
  407. tristate '"state" match support'
  408. depends on NETFILTER_XTABLES
  409. depends on IP_NF_CONNTRACK || NF_CONNTRACK
  410. help
  411. Connection state matching allows you to match packets based on their
  412. relationship to a tracked connection (ie. previous packets). This
  413. is a powerful tool for packet classification.
  414. To compile it as a module, choose M here. If unsure, say N.
  415. config NETFILTER_XT_MATCH_STATISTIC
  416. tristate '"statistic" match support'
  417. depends on NETFILTER_XTABLES
  418. help
  419. This option adds a `statistic' match, which allows you to match
  420. on packets periodically or randomly with a given percentage.
  421. To compile it as a module, choose M here. If unsure, say N.
  422. config NETFILTER_XT_MATCH_STRING
  423. tristate '"string" match support'
  424. depends on NETFILTER_XTABLES
  425. select TEXTSEARCH
  426. select TEXTSEARCH_KMP
  427. select TEXTSEARCH_BM
  428. select TEXTSEARCH_FSM
  429. help
  430. This option adds a `string' match, which allows you to look for
  431. pattern matchings in packets.
  432. To compile it as a module, choose M here. If unsure, say N.
  433. config NETFILTER_XT_MATCH_TCPMSS
  434. tristate '"tcpmss" match support'
  435. depends on NETFILTER_XTABLES
  436. help
  437. This option adds a `tcpmss' match, which allows you to examine the
  438. MSS value of TCP SYN packets, which control the maximum packet size
  439. for that connection.
  440. To compile it as a module, choose M here. If unsure, say N.
  441. config NETFILTER_XT_MATCH_HASHLIMIT
  442. tristate '"hashlimit" match support'
  443. depends on NETFILTER_XTABLES
  444. help
  445. This option adds a `hashlimit' match.
  446. As opposed to `limit', this match dynamically creates a hash table
  447. of limit buckets, based on your selection of source/destination
  448. addresses and/or ports.
  449. It enables you to express policies like `10kpps for any given
  450. destination address' or `500pps from any given source address'
  451. with a single rule.
  452. endmenu