Kconfig 8.6 KB

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