Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. #
  2. # Network configuration
  3. #
  4. menuconfig NET
  5. bool "Networking support"
  6. ---help---
  7. Unless you really know what you are doing, you should say Y here.
  8. The reason is that some programs need kernel networking support even
  9. when running on a stand-alone machine that isn't connected to any
  10. other computer.
  11. If you are upgrading from an older kernel, you
  12. should consider updating your networking tools too because changes
  13. in the kernel and the tools often go hand in hand. The tools are
  14. contained in the package net-tools, the location and version number
  15. of which are given in <file:Documentation/Changes>.
  16. For a general introduction to Linux networking, it is highly
  17. recommended to read the NET-HOWTO, available from
  18. <http://www.tldp.org/docs.html#howto>.
  19. if NET
  20. menu "Networking options"
  21. source "net/packet/Kconfig"
  22. source "net/unix/Kconfig"
  23. source "net/xfrm/Kconfig"
  24. source "net/iucv/Kconfig"
  25. config INET
  26. bool "TCP/IP networking"
  27. ---help---
  28. These are the protocols used on the Internet and on most local
  29. Ethernets. It is highly recommended to say Y here (this will enlarge
  30. your kernel by about 400 KB), since some programs (e.g. the X window
  31. system) use TCP/IP even if your machine is not connected to any
  32. other computer. You will get the so-called loopback device which
  33. allows you to ping yourself (great fun, that!).
  34. For an excellent introduction to Linux networking, please read the
  35. Linux Networking HOWTO, available from
  36. <http://www.tldp.org/docs.html#howto>.
  37. If you say Y here and also to "/proc file system support" and
  38. "Sysctl support" below, you can change various aspects of the
  39. behavior of the TCP/IP code by writing to the (virtual) files in
  40. /proc/sys/net/ipv4/*; the options are explained in the file
  41. <file:Documentation/networking/ip-sysctl.txt>.
  42. Short answer: say Y.
  43. if INET
  44. source "net/ipv4/Kconfig"
  45. source "net/ipv6/Kconfig"
  46. source "net/netlabel/Kconfig"
  47. endif # if INET
  48. config NETWORK_SECMARK
  49. bool "Security Marking"
  50. help
  51. This enables security marking of network packets, similar
  52. to nfmark, but designated for security purposes.
  53. If you are unsure how to answer this question, answer N.
  54. menuconfig NETFILTER
  55. bool "Network packet filtering framework (Netfilter)"
  56. ---help---
  57. Netfilter is a framework for filtering and mangling network packets
  58. that pass through your Linux box.
  59. The most common use of packet filtering is to run your Linux box as
  60. a firewall protecting a local network from the Internet. The type of
  61. firewall provided by this kernel support is called a "packet
  62. filter", which means that it can reject individual network packets
  63. based on type, source, destination etc. The other kind of firewall,
  64. a "proxy-based" one, is more secure but more intrusive and more
  65. bothersome to set up; it inspects the network traffic much more
  66. closely, modifies it and has knowledge about the higher level
  67. protocols, which a packet filter lacks. Moreover, proxy-based
  68. firewalls often require changes to the programs running on the local
  69. clients. Proxy-based firewalls don't need support by the kernel, but
  70. they are often combined with a packet filter, which only works if
  71. you say Y here.
  72. You should also say Y here if you intend to use your Linux box as
  73. the gateway to the Internet for a local network of machines without
  74. globally valid IP addresses. This is called "masquerading": if one
  75. of the computers on your local network wants to send something to
  76. the outside, your box can "masquerade" as that computer, i.e. it
  77. forwards the traffic to the intended outside destination, but
  78. modifies the packets to make it look like they came from the
  79. firewall box itself. It works both ways: if the outside host
  80. replies, the Linux box will silently forward the traffic to the
  81. correct local computer. This way, the computers on your local net
  82. are completely invisible to the outside world, even though they can
  83. reach the outside and can receive replies. It is even possible to
  84. run globally visible servers from within a masqueraded local network
  85. using a mechanism called portforwarding. Masquerading is also often
  86. called NAT (Network Address Translation).
  87. Another use of Netfilter is in transparent proxying: if a machine on
  88. the local network tries to connect to an outside host, your Linux
  89. box can transparently forward the traffic to a local server,
  90. typically a caching proxy server.
  91. Yet another use of Netfilter is building a bridging firewall. Using
  92. a bridge with Network packet filtering enabled makes iptables "see"
  93. the bridged traffic. For filtering on the lower network and Ethernet
  94. protocols over the bridge, use ebtables (under bridge netfilter
  95. configuration).
  96. Various modules exist for netfilter which replace the previous
  97. masquerading (ipmasqadm), packet filtering (ipchains), transparent
  98. proxying, and portforwarding mechanisms. Please see
  99. <file:Documentation/Changes> under "iptables" for the location of
  100. these packages.
  101. Make sure to say N to "Fast switching" below if you intend to say Y
  102. here, as Fast switching currently bypasses netfilter.
  103. Chances are that you should say Y here if you compile a kernel which
  104. will run as a router and N for regular hosts. If unsure, say N.
  105. if NETFILTER
  106. config NETFILTER_DEBUG
  107. bool "Network packet filtering debugging"
  108. depends on NETFILTER
  109. help
  110. You can say Y here if you want to get additional messages useful in
  111. debugging the netfilter code.
  112. config NETFILTER_ADVANCED
  113. bool "Advanced netfilter configuration"
  114. depends on NETFILTER
  115. default y
  116. help
  117. If you say Y here you can select between all the netfilter modules.
  118. If you say N the more ununsual ones will not be shown and the
  119. basic ones needed by most people will default to 'M'.
  120. If unsure, say Y.
  121. config BRIDGE_NETFILTER
  122. bool "Bridged IP/ARP packets filtering"
  123. depends on BRIDGE && NETFILTER && INET
  124. depends on NETFILTER_ADVANCED
  125. default y
  126. ---help---
  127. Enabling this option will let arptables resp. iptables see bridged
  128. ARP resp. IP traffic. If you want a bridging firewall, you probably
  129. want this option enabled.
  130. Enabling or disabling this option doesn't enable or disable
  131. ebtables.
  132. If unsure, say N.
  133. source "net/netfilter/Kconfig"
  134. source "net/ipv4/netfilter/Kconfig"
  135. source "net/ipv6/netfilter/Kconfig"
  136. source "net/decnet/netfilter/Kconfig"
  137. source "net/bridge/netfilter/Kconfig"
  138. endif
  139. source "net/dccp/Kconfig"
  140. source "net/sctp/Kconfig"
  141. source "net/rds/Kconfig"
  142. source "net/tipc/Kconfig"
  143. source "net/atm/Kconfig"
  144. source "net/802/Kconfig"
  145. source "net/bridge/Kconfig"
  146. source "net/dsa/Kconfig"
  147. source "net/8021q/Kconfig"
  148. source "net/decnet/Kconfig"
  149. source "net/llc/Kconfig"
  150. source "net/ipx/Kconfig"
  151. source "drivers/net/appletalk/Kconfig"
  152. source "net/x25/Kconfig"
  153. source "net/lapb/Kconfig"
  154. source "net/econet/Kconfig"
  155. source "net/wanrouter/Kconfig"
  156. source "net/phonet/Kconfig"
  157. source "net/sched/Kconfig"
  158. source "net/dcb/Kconfig"
  159. menu "Network testing"
  160. config NET_PKTGEN
  161. tristate "Packet Generator (USE WITH CAUTION)"
  162. depends on PROC_FS
  163. ---help---
  164. This module will inject preconfigured packets, at a configurable
  165. rate, out of a given interface. It is used for network interface
  166. stress testing and performance analysis. If you don't understand
  167. what was just said, you don't need it: say N.
  168. Documentation on how to use the packet generator can be found
  169. at <file:Documentation/networking/pktgen.txt>.
  170. To compile this code as a module, choose M here: the
  171. module will be called pktgen.
  172. config NET_TCPPROBE
  173. tristate "TCP connection probing"
  174. depends on INET && EXPERIMENTAL && PROC_FS && KPROBES
  175. ---help---
  176. This module allows for capturing the changes to TCP connection
  177. state in response to incoming packets. It is used for debugging
  178. TCP congestion avoidance modules. If you don't understand
  179. what was just said, you don't need it: say N.
  180. Documentation on how to use TCP connection probing can be found
  181. at http://linux-net.osdl.org/index.php/TcpProbe
  182. To compile this code as a module, choose M here: the
  183. module will be called tcp_probe.
  184. config NET_DROP_MONITOR
  185. boolean "Network packet drop alerting service"
  186. depends on INET && EXPERIMENTAL && TRACEPOINTS
  187. ---help---
  188. This feature provides an alerting service to userspace in the
  189. event that packets are discarded in the network stack. Alerts
  190. are broadcast via netlink socket to any listening user space
  191. process. If you don't need network drop alerts, or if you are ok
  192. just checking the various proc files and other utilities for
  193. drop statistics, say N here.
  194. endmenu
  195. endmenu
  196. source "net/ax25/Kconfig"
  197. source "net/can/Kconfig"
  198. source "net/irda/Kconfig"
  199. source "net/bluetooth/Kconfig"
  200. source "net/rxrpc/Kconfig"
  201. config FIB_RULES
  202. bool
  203. menuconfig WIRELESS
  204. bool "Wireless"
  205. depends on !S390
  206. default y
  207. if WIRELESS
  208. source "net/wireless/Kconfig"
  209. source "net/mac80211/Kconfig"
  210. endif # WIRELESS
  211. source "net/wimax/Kconfig"
  212. source "net/rfkill/Kconfig"
  213. source "net/9p/Kconfig"
  214. endif # if NET