Kconfig 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. #
  2. # Network configuration
  3. #
  4. menu "Networking"
  5. config NET
  6. bool "Networking support"
  7. ---help---
  8. Unless you really know what you are doing, you should say Y here.
  9. The reason is that some programs need kernel networking support even
  10. when running on a stand-alone machine that isn't connected to any
  11. other computer.
  12. If you are upgrading from an older kernel, you
  13. should consider updating your networking tools too because changes
  14. in the kernel and the tools often go hand in hand. The tools are
  15. contained in the package net-tools, the location and version number
  16. of which are given in <file:Documentation/Changes>.
  17. For a general introduction to Linux networking, it is highly
  18. recommended to read the NET-HOWTO, available from
  19. <http://www.tldp.org/docs.html#howto>.
  20. # Make sure that all config symbols are dependent on NET
  21. if NET
  22. menu "Networking options"
  23. config NETDEBUG
  24. bool "Network packet debugging"
  25. help
  26. You can say Y here if you want to get additional messages useful in
  27. debugging bad packets, but can overwhelm logs under denial of service
  28. attacks.
  29. source "net/packet/Kconfig"
  30. source "net/unix/Kconfig"
  31. source "net/xfrm/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 144 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. endif # if INET
  54. config NETWORK_SECMARK
  55. bool "Security Marking"
  56. help
  57. This enables security marking of network packets, similar
  58. to nfmark, but designated for security purposes.
  59. If you are unsure how to answer this question, answer N.
  60. menuconfig NETFILTER
  61. bool "Network packet filtering (replaces ipchains)"
  62. ---help---
  63. Netfilter is a framework for filtering and mangling network packets
  64. that pass through your Linux box.
  65. The most common use of packet filtering is to run your Linux box as
  66. a firewall protecting a local network from the Internet. The type of
  67. firewall provided by this kernel support is called a "packet
  68. filter", which means that it can reject individual network packets
  69. based on type, source, destination etc. The other kind of firewall,
  70. a "proxy-based" one, is more secure but more intrusive and more
  71. bothersome to set up; it inspects the network traffic much more
  72. closely, modifies it and has knowledge about the higher level
  73. protocols, which a packet filter lacks. Moreover, proxy-based
  74. firewalls often require changes to the programs running on the local
  75. clients. Proxy-based firewalls don't need support by the kernel, but
  76. they are often combined with a packet filter, which only works if
  77. you say Y here.
  78. You should also say Y here if you intend to use your Linux box as
  79. the gateway to the Internet for a local network of machines without
  80. globally valid IP addresses. This is called "masquerading": if one
  81. of the computers on your local network wants to send something to
  82. the outside, your box can "masquerade" as that computer, i.e. it
  83. forwards the traffic to the intended outside destination, but
  84. modifies the packets to make it look like they came from the
  85. firewall box itself. It works both ways: if the outside host
  86. replies, the Linux box will silently forward the traffic to the
  87. correct local computer. This way, the computers on your local net
  88. are completely invisible to the outside world, even though they can
  89. reach the outside and can receive replies. It is even possible to
  90. run globally visible servers from within a masqueraded local network
  91. using a mechanism called portforwarding. Masquerading is also often
  92. called NAT (Network Address Translation).
  93. Another use of Netfilter is in transparent proxying: if a machine on
  94. the local network tries to connect to an outside host, your Linux
  95. box can transparently forward the traffic to a local server,
  96. typically a caching proxy server.
  97. Yet another use of Netfilter is building a bridging firewall. Using
  98. a bridge with Network packet filtering enabled makes iptables "see"
  99. the bridged traffic. For filtering on the lower network and Ethernet
  100. protocols over the bridge, use ebtables (under bridge netfilter
  101. configuration).
  102. Various modules exist for netfilter which replace the previous
  103. masquerading (ipmasqadm), packet filtering (ipchains), transparent
  104. proxying, and portforwarding mechanisms. Please see
  105. <file:Documentation/Changes> under "iptables" for the location of
  106. these packages.
  107. Make sure to say N to "Fast switching" below if you intend to say Y
  108. here, as Fast switching currently bypasses netfilter.
  109. Chances are that you should say Y here if you compile a kernel which
  110. will run as a router and N for regular hosts. If unsure, say N.
  111. if NETFILTER
  112. config NETFILTER_DEBUG
  113. bool "Network packet filtering debugging"
  114. depends on NETFILTER
  115. help
  116. You can say Y here if you want to get additional messages useful in
  117. debugging the netfilter code.
  118. config BRIDGE_NETFILTER
  119. bool "Bridged IP/ARP packets filtering"
  120. depends on BRIDGE && NETFILTER && INET
  121. default y
  122. ---help---
  123. Enabling this option will let arptables resp. iptables see bridged
  124. ARP resp. IP traffic. If you want a bridging firewall, you probably
  125. want this option enabled.
  126. Enabling or disabling this option doesn't enable or disable
  127. ebtables.
  128. If unsure, say N.
  129. source "net/netfilter/Kconfig"
  130. source "net/ipv4/netfilter/Kconfig"
  131. source "net/ipv6/netfilter/Kconfig"
  132. source "net/decnet/netfilter/Kconfig"
  133. source "net/bridge/netfilter/Kconfig"
  134. endif
  135. source "net/dccp/Kconfig"
  136. source "net/sctp/Kconfig"
  137. source "net/tipc/Kconfig"
  138. source "net/atm/Kconfig"
  139. source "net/bridge/Kconfig"
  140. source "net/8021q/Kconfig"
  141. source "net/decnet/Kconfig"
  142. source "net/llc/Kconfig"
  143. source "net/ipx/Kconfig"
  144. source "drivers/net/appletalk/Kconfig"
  145. source "net/x25/Kconfig"
  146. source "net/lapb/Kconfig"
  147. config NET_DIVERT
  148. bool "Frame Diverter (EXPERIMENTAL)"
  149. depends on EXPERIMENTAL && BROKEN
  150. ---help---
  151. The Frame Diverter allows you to divert packets from the
  152. network, that are not aimed at the interface receiving it (in
  153. promisc. mode). Typically, a Linux box setup as an Ethernet bridge
  154. with the Frames Diverter on, can do some *really* transparent www
  155. caching using a Squid proxy for example.
  156. This is very useful when you don't want to change your router's
  157. config (or if you simply don't have access to it).
  158. The other possible usages of diverting Ethernet Frames are
  159. numberous:
  160. - reroute smtp traffic to another interface
  161. - traffic-shape certain network streams
  162. - transparently proxy smtp connections
  163. - etc...
  164. For more informations, please refer to:
  165. <http://diverter.sourceforge.net/>
  166. <http://perso.wanadoo.fr/magpie/EtherDivert.html>
  167. If unsure, say N.
  168. source "net/econet/Kconfig"
  169. source "net/wanrouter/Kconfig"
  170. source "net/sched/Kconfig"
  171. menu "Network testing"
  172. config NET_PKTGEN
  173. tristate "Packet Generator (USE WITH CAUTION)"
  174. depends on PROC_FS
  175. ---help---
  176. This module will inject preconfigured packets, at a configurable
  177. rate, out of a given interface. It is used for network interface
  178. stress testing and performance analysis. If you don't understand
  179. what was just said, you don't need it: say N.
  180. Documentation on how to use the packet generator can be found
  181. at <file:Documentation/networking/pktgen.txt>.
  182. To compile this code as a module, choose M here: the
  183. module will be called pktgen.
  184. config NET_TCPPROBE
  185. tristate "TCP connection probing"
  186. depends on INET && EXPERIMENTAL && PROC_FS && KPROBES
  187. ---help---
  188. This module allows for capturing the changes to TCP connection
  189. state in response to incoming packets. It is used for debugging
  190. TCP congestion avoidance modules. If you don't understand
  191. what was just said, you don't need it: say N.
  192. Documentation on how to use the packet generator can be found
  193. at http://linux-net.osdl.org/index.php/TcpProbe
  194. To compile this code as a module, choose M here: the
  195. module will be called tcp_probe.
  196. endmenu
  197. endmenu
  198. source "net/ax25/Kconfig"
  199. source "net/irda/Kconfig"
  200. source "net/bluetooth/Kconfig"
  201. source "net/ieee80211/Kconfig"
  202. config WIRELESS_EXT
  203. bool
  204. source "net/netlabel/Kconfig"
  205. config FIB_RULES
  206. bool
  207. endif # if NET
  208. endmenu # Networking