Kconfig 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. source "net/packet/Kconfig"
  24. source "net/unix/Kconfig"
  25. source "net/xfrm/Kconfig"
  26. config INET
  27. bool "TCP/IP networking"
  28. ---help---
  29. These are the protocols used on the Internet and on most local
  30. Ethernets. It is highly recommended to say Y here (this will enlarge
  31. your kernel by about 144 KB), since some programs (e.g. the X window
  32. system) use TCP/IP even if your machine is not connected to any
  33. other computer. You will get the so-called loopback device which
  34. allows you to ping yourself (great fun, that!).
  35. For an excellent introduction to Linux networking, please read the
  36. Linux Networking HOWTO, available from
  37. <http://www.tldp.org/docs.html#howto>.
  38. If you say Y here and also to "/proc file system support" and
  39. "Sysctl support" below, you can change various aspects of the
  40. behavior of the TCP/IP code by writing to the (virtual) files in
  41. /proc/sys/net/ipv4/*; the options are explained in the file
  42. <file:Documentation/networking/ip-sysctl.txt>.
  43. Short answer: say Y.
  44. if INET
  45. source "net/ipv4/Kconfig"
  46. source "net/ipv6/Kconfig"
  47. endif # if INET
  48. menuconfig NETFILTER
  49. bool "Network packet filtering (replaces ipchains)"
  50. ---help---
  51. Netfilter is a framework for filtering and mangling network packets
  52. that pass through your Linux box.
  53. The most common use of packet filtering is to run your Linux box as
  54. a firewall protecting a local network from the Internet. The type of
  55. firewall provided by this kernel support is called a "packet
  56. filter", which means that it can reject individual network packets
  57. based on type, source, destination etc. The other kind of firewall,
  58. a "proxy-based" one, is more secure but more intrusive and more
  59. bothersome to set up; it inspects the network traffic much more
  60. closely, modifies it and has knowledge about the higher level
  61. protocols, which a packet filter lacks. Moreover, proxy-based
  62. firewalls often require changes to the programs running on the local
  63. clients. Proxy-based firewalls don't need support by the kernel, but
  64. they are often combined with a packet filter, which only works if
  65. you say Y here.
  66. You should also say Y here if you intend to use your Linux box as
  67. the gateway to the Internet for a local network of machines without
  68. globally valid IP addresses. This is called "masquerading": if one
  69. of the computers on your local network wants to send something to
  70. the outside, your box can "masquerade" as that computer, i.e. it
  71. forwards the traffic to the intended outside destination, but
  72. modifies the packets to make it look like they came from the
  73. firewall box itself. It works both ways: if the outside host
  74. replies, the Linux box will silently forward the traffic to the
  75. correct local computer. This way, the computers on your local net
  76. are completely invisible to the outside world, even though they can
  77. reach the outside and can receive replies. It is even possible to
  78. run globally visible servers from within a masqueraded local network
  79. using a mechanism called portforwarding. Masquerading is also often
  80. called NAT (Network Address Translation).
  81. Another use of Netfilter is in transparent proxying: if a machine on
  82. the local network tries to connect to an outside host, your Linux
  83. box can transparently forward the traffic to a local server,
  84. typically a caching proxy server.
  85. Yet another use of Netfilter is building a bridging firewall. Using
  86. a bridge with Network packet filtering enabled makes iptables "see"
  87. the bridged traffic. For filtering on the lower network and Ethernet
  88. protocols over the bridge, use ebtables (under bridge netfilter
  89. configuration).
  90. Various modules exist for netfilter which replace the previous
  91. masquerading (ipmasqadm), packet filtering (ipchains), transparent
  92. proxying, and portforwarding mechanisms. Please see
  93. <file:Documentation/Changes> under "iptables" for the location of
  94. these packages.
  95. Make sure to say N to "Fast switching" below if you intend to say Y
  96. here, as Fast switching currently bypasses netfilter.
  97. Chances are that you should say Y here if you compile a kernel which
  98. will run as a router and N for regular hosts. If unsure, say N.
  99. if NETFILTER
  100. config NETFILTER_DEBUG
  101. bool "Network packet filtering debugging"
  102. depends on NETFILTER
  103. help
  104. You can say Y here if you want to get additional messages useful in
  105. debugging the netfilter code.
  106. config BRIDGE_NETFILTER
  107. bool "Bridged IP/ARP packets filtering"
  108. depends on BRIDGE && NETFILTER && INET
  109. default y
  110. ---help---
  111. Enabling this option will let arptables resp. iptables see bridged
  112. ARP resp. IP traffic. If you want a bridging firewall, you probably
  113. want this option enabled.
  114. Enabling or disabling this option doesn't enable or disable
  115. ebtables.
  116. If unsure, say N.
  117. source "net/ipv4/netfilter/Kconfig"
  118. source "net/ipv6/netfilter/Kconfig"
  119. source "net/decnet/netfilter/Kconfig"
  120. source "net/bridge/netfilter/Kconfig"
  121. endif
  122. source "net/dccp/Kconfig"
  123. source "net/sctp/Kconfig"
  124. source "net/atm/Kconfig"
  125. source "net/bridge/Kconfig"
  126. source "net/8021q/Kconfig"
  127. source "net/decnet/Kconfig"
  128. source "net/llc/Kconfig"
  129. source "net/ipx/Kconfig"
  130. source "drivers/net/appletalk/Kconfig"
  131. source "net/x25/Kconfig"
  132. source "net/lapb/Kconfig"
  133. config NET_DIVERT
  134. bool "Frame Diverter (EXPERIMENTAL)"
  135. depends on EXPERIMENTAL
  136. ---help---
  137. The Frame Diverter allows you to divert packets from the
  138. network, that are not aimed at the interface receiving it (in
  139. promisc. mode). Typically, a Linux box setup as an Ethernet bridge
  140. with the Frames Diverter on, can do some *really* transparent www
  141. caching using a Squid proxy for example.
  142. This is very useful when you don't want to change your router's
  143. config (or if you simply don't have access to it).
  144. The other possible usages of diverting Ethernet Frames are
  145. numberous:
  146. - reroute smtp traffic to another interface
  147. - traffic-shape certain network streams
  148. - transparently proxy smtp connections
  149. - etc...
  150. For more informations, please refer to:
  151. <http://diverter.sourceforge.net/>
  152. <http://perso.wanadoo.fr/magpie/EtherDivert.html>
  153. If unsure, say N.
  154. source "net/econet/Kconfig"
  155. source "net/wanrouter/Kconfig"
  156. source "net/sched/Kconfig"
  157. menu "Network testing"
  158. config NET_PKTGEN
  159. tristate "Packet Generator (USE WITH CAUTION)"
  160. depends on PROC_FS
  161. ---help---
  162. This module will inject preconfigured packets, at a configurable
  163. rate, out of a given interface. It is used for network interface
  164. stress testing and performance analysis. If you don't understand
  165. what was just said, you don't need it: say N.
  166. Documentation on how to use the packet generator can be found
  167. at <file:Documentation/networking/pktgen.txt>.
  168. To compile this code as a module, choose M here: the
  169. module will be called pktgen.
  170. source "net/netfilter/Kconfig"
  171. endmenu
  172. endmenu
  173. source "net/ax25/Kconfig"
  174. source "net/irda/Kconfig"
  175. source "net/bluetooth/Kconfig"
  176. source "net/ieee80211/Kconfig"
  177. endif # if NET
  178. endmenu # Networking