11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Network configuration 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 5031cf19eSRobert P. J. Daymenuconfig NET 61da177e4SLinus Torvalds bool "Networking support" 7e9cc8bddSGeert Uytterhoeven select NLATTR 81da177e4SLinus Torvalds ---help--- 91da177e4SLinus Torvalds Unless you really know what you are doing, you should say Y here. 101da177e4SLinus Torvalds The reason is that some programs need kernel networking support even 111da177e4SLinus Torvalds when running on a stand-alone machine that isn't connected to any 12d5950b43SSam Ravnborg other computer. 13d5950b43SSam Ravnborg 14d5950b43SSam Ravnborg If you are upgrading from an older kernel, you 151da177e4SLinus Torvalds should consider updating your networking tools too because changes 161da177e4SLinus Torvalds in the kernel and the tools often go hand in hand. The tools are 171da177e4SLinus Torvalds contained in the package net-tools, the location and version number 181da177e4SLinus Torvalds of which are given in <file:Documentation/Changes>. 191da177e4SLinus Torvalds 201da177e4SLinus Torvalds For a general introduction to Linux networking, it is highly 211da177e4SLinus Torvalds recommended to read the NET-HOWTO, available from 221da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. 231da177e4SLinus Torvalds 246a2e9b73SSam Ravnborgif NET 256a2e9b73SSam Ravnborg 26*1dacc76dSJohannes Bergconfig WANT_COMPAT_NETLINK_MESSAGES 27*1dacc76dSJohannes Berg bool 28*1dacc76dSJohannes Berg help 29*1dacc76dSJohannes Berg This option can be selected by other options that need compat 30*1dacc76dSJohannes Berg netlink messages. 31*1dacc76dSJohannes Berg 32*1dacc76dSJohannes Bergconfig COMPAT_NETLINK_MESSAGES 33*1dacc76dSJohannes Berg def_bool y 34*1dacc76dSJohannes Berg depends on COMPAT 35*1dacc76dSJohannes Berg depends on WIRELESS_EXT || WANT_COMPAT_NETLINK_MESSAGES 36*1dacc76dSJohannes Berg help 37*1dacc76dSJohannes Berg This option makes it possible to send different netlink messages 38*1dacc76dSJohannes Berg to tasks depending on whether the task is a compat task or not. To 39*1dacc76dSJohannes Berg achieve this, you need to set skb_shinfo(skb)->frag_list to the 40*1dacc76dSJohannes Berg compat skb before sending the skb, the netlink code will sort out 41*1dacc76dSJohannes Berg which message to actually pass to the task. 42*1dacc76dSJohannes Berg 43*1dacc76dSJohannes Berg Newly written code should NEVER need this option but do 44*1dacc76dSJohannes Berg compat-independent messages instead! 45*1dacc76dSJohannes Berg 461da177e4SLinus Torvaldsmenu "Networking options" 471da177e4SLinus Torvalds 486a2e9b73SSam Ravnborgsource "net/packet/Kconfig" 496a2e9b73SSam Ravnborgsource "net/unix/Kconfig" 506a2e9b73SSam Ravnborgsource "net/xfrm/Kconfig" 512356f4cbSMartin Schwidefskysource "net/iucv/Kconfig" 521da177e4SLinus Torvalds 531da177e4SLinus Torvaldsconfig INET 541da177e4SLinus Torvalds bool "TCP/IP networking" 551da177e4SLinus Torvalds ---help--- 561da177e4SLinus Torvalds These are the protocols used on the Internet and on most local 571da177e4SLinus Torvalds Ethernets. It is highly recommended to say Y here (this will enlarge 58cf80efc2SYOSHIFUJI Hideaki your kernel by about 400 KB), since some programs (e.g. the X window 591da177e4SLinus Torvalds system) use TCP/IP even if your machine is not connected to any 601da177e4SLinus Torvalds other computer. You will get the so-called loopback device which 611da177e4SLinus Torvalds allows you to ping yourself (great fun, that!). 621da177e4SLinus Torvalds 631da177e4SLinus Torvalds For an excellent introduction to Linux networking, please read the 641da177e4SLinus Torvalds Linux Networking HOWTO, available from 651da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. 661da177e4SLinus Torvalds 671da177e4SLinus Torvalds If you say Y here and also to "/proc file system support" and 681da177e4SLinus Torvalds "Sysctl support" below, you can change various aspects of the 691da177e4SLinus Torvalds behavior of the TCP/IP code by writing to the (virtual) files in 701da177e4SLinus Torvalds /proc/sys/net/ipv4/*; the options are explained in the file 711da177e4SLinus Torvalds <file:Documentation/networking/ip-sysctl.txt>. 721da177e4SLinus Torvalds 731da177e4SLinus Torvalds Short answer: say Y. 741da177e4SLinus Torvalds 756a2e9b73SSam Ravnborgif INET 761da177e4SLinus Torvaldssource "net/ipv4/Kconfig" 771da177e4SLinus Torvaldssource "net/ipv6/Kconfig" 7838c94377SPaul Mooresource "net/netlabel/Kconfig" 791da177e4SLinus Torvalds 806a2e9b73SSam Ravnborgendif # if INET 816a2e9b73SSam Ravnborg 82984bc16cSJames Morrisconfig NETWORK_SECMARK 83984bc16cSJames Morris bool "Security Marking" 84984bc16cSJames Morris help 85984bc16cSJames Morris This enables security marking of network packets, similar 86984bc16cSJames Morris to nfmark, but designated for security purposes. 87984bc16cSJames Morris If you are unsure how to answer this question, answer N. 88984bc16cSJames Morris 891da177e4SLinus Torvaldsmenuconfig NETFILTER 90ef91fd52SPablo Neira Ayuso bool "Network packet filtering framework (Netfilter)" 911da177e4SLinus Torvalds ---help--- 921da177e4SLinus Torvalds Netfilter is a framework for filtering and mangling network packets 931da177e4SLinus Torvalds that pass through your Linux box. 941da177e4SLinus Torvalds 951da177e4SLinus Torvalds The most common use of packet filtering is to run your Linux box as 961da177e4SLinus Torvalds a firewall protecting a local network from the Internet. The type of 971da177e4SLinus Torvalds firewall provided by this kernel support is called a "packet 981da177e4SLinus Torvalds filter", which means that it can reject individual network packets 991da177e4SLinus Torvalds based on type, source, destination etc. The other kind of firewall, 1001da177e4SLinus Torvalds a "proxy-based" one, is more secure but more intrusive and more 1011da177e4SLinus Torvalds bothersome to set up; it inspects the network traffic much more 1021da177e4SLinus Torvalds closely, modifies it and has knowledge about the higher level 1031da177e4SLinus Torvalds protocols, which a packet filter lacks. Moreover, proxy-based 1041da177e4SLinus Torvalds firewalls often require changes to the programs running on the local 1051da177e4SLinus Torvalds clients. Proxy-based firewalls don't need support by the kernel, but 1061da177e4SLinus Torvalds they are often combined with a packet filter, which only works if 1071da177e4SLinus Torvalds you say Y here. 1081da177e4SLinus Torvalds 1091da177e4SLinus Torvalds You should also say Y here if you intend to use your Linux box as 1101da177e4SLinus Torvalds the gateway to the Internet for a local network of machines without 1111da177e4SLinus Torvalds globally valid IP addresses. This is called "masquerading": if one 1121da177e4SLinus Torvalds of the computers on your local network wants to send something to 1131da177e4SLinus Torvalds the outside, your box can "masquerade" as that computer, i.e. it 1141da177e4SLinus Torvalds forwards the traffic to the intended outside destination, but 1151da177e4SLinus Torvalds modifies the packets to make it look like they came from the 1161da177e4SLinus Torvalds firewall box itself. It works both ways: if the outside host 1171da177e4SLinus Torvalds replies, the Linux box will silently forward the traffic to the 1181da177e4SLinus Torvalds correct local computer. This way, the computers on your local net 1191da177e4SLinus Torvalds are completely invisible to the outside world, even though they can 1201da177e4SLinus Torvalds reach the outside and can receive replies. It is even possible to 1211da177e4SLinus Torvalds run globally visible servers from within a masqueraded local network 1221da177e4SLinus Torvalds using a mechanism called portforwarding. Masquerading is also often 1231da177e4SLinus Torvalds called NAT (Network Address Translation). 1241da177e4SLinus Torvalds 1251da177e4SLinus Torvalds Another use of Netfilter is in transparent proxying: if a machine on 1261da177e4SLinus Torvalds the local network tries to connect to an outside host, your Linux 1271da177e4SLinus Torvalds box can transparently forward the traffic to a local server, 1281da177e4SLinus Torvalds typically a caching proxy server. 1291da177e4SLinus Torvalds 1301da177e4SLinus Torvalds Yet another use of Netfilter is building a bridging firewall. Using 1311da177e4SLinus Torvalds a bridge with Network packet filtering enabled makes iptables "see" 1321da177e4SLinus Torvalds the bridged traffic. For filtering on the lower network and Ethernet 1331da177e4SLinus Torvalds protocols over the bridge, use ebtables (under bridge netfilter 1341da177e4SLinus Torvalds configuration). 1351da177e4SLinus Torvalds 1361da177e4SLinus Torvalds Various modules exist for netfilter which replace the previous 1371da177e4SLinus Torvalds masquerading (ipmasqadm), packet filtering (ipchains), transparent 1381da177e4SLinus Torvalds proxying, and portforwarding mechanisms. Please see 1391da177e4SLinus Torvalds <file:Documentation/Changes> under "iptables" for the location of 1401da177e4SLinus Torvalds these packages. 1411da177e4SLinus Torvalds 1421da177e4SLinus Torvaldsif NETFILTER 1431da177e4SLinus Torvalds 1441da177e4SLinus Torvaldsconfig NETFILTER_DEBUG 1451da177e4SLinus Torvalds bool "Network packet filtering debugging" 1461da177e4SLinus Torvalds depends on NETFILTER 1471da177e4SLinus Torvalds help 1481da177e4SLinus Torvalds You can say Y here if you want to get additional messages useful in 1491da177e4SLinus Torvalds debugging the netfilter code. 1501da177e4SLinus Torvalds 15133b8e776SPatrick McHardyconfig NETFILTER_ADVANCED 15233b8e776SPatrick McHardy bool "Advanced netfilter configuration" 15333b8e776SPatrick McHardy depends on NETFILTER 15433b8e776SPatrick McHardy default y 15533b8e776SPatrick McHardy help 15633b8e776SPatrick McHardy If you say Y here you can select between all the netfilter modules. 157692105b8SMatt LaPlante If you say N the more unusual ones will not be shown and the 15833b8e776SPatrick McHardy basic ones needed by most people will default to 'M'. 15933b8e776SPatrick McHardy 16033b8e776SPatrick McHardy If unsure, say Y. 16133b8e776SPatrick McHardy 1621da177e4SLinus Torvaldsconfig BRIDGE_NETFILTER 1631da177e4SLinus Torvalds bool "Bridged IP/ARP packets filtering" 1641da177e4SLinus Torvalds depends on BRIDGE && NETFILTER && INET 16533b8e776SPatrick McHardy depends on NETFILTER_ADVANCED 1661da177e4SLinus Torvalds default y 1671da177e4SLinus Torvalds ---help--- 1681da177e4SLinus Torvalds Enabling this option will let arptables resp. iptables see bridged 1691da177e4SLinus Torvalds ARP resp. IP traffic. If you want a bridging firewall, you probably 1701da177e4SLinus Torvalds want this option enabled. 1711da177e4SLinus Torvalds Enabling or disabling this option doesn't enable or disable 1721da177e4SLinus Torvalds ebtables. 1731da177e4SLinus Torvalds 1741da177e4SLinus Torvalds If unsure, say N. 1751da177e4SLinus Torvalds 1769eb0eec7SHarald Weltesource "net/netfilter/Kconfig" 1771da177e4SLinus Torvaldssource "net/ipv4/netfilter/Kconfig" 1781da177e4SLinus Torvaldssource "net/ipv6/netfilter/Kconfig" 1791da177e4SLinus Torvaldssource "net/decnet/netfilter/Kconfig" 1801da177e4SLinus Torvaldssource "net/bridge/netfilter/Kconfig" 1811da177e4SLinus Torvalds 1821da177e4SLinus Torvaldsendif 1831da177e4SLinus Torvalds 1847c657876SArnaldo Carvalho de Melosource "net/dccp/Kconfig" 1851da177e4SLinus Torvaldssource "net/sctp/Kconfig" 186fe17f84fSAndy Groversource "net/rds/Kconfig" 1871e63e681SPer Lidensource "net/tipc/Kconfig" 1886a2e9b73SSam Ravnborgsource "net/atm/Kconfig" 189a19800d7SPatrick McHardysource "net/802/Kconfig" 1906a2e9b73SSam Ravnborgsource "net/bridge/Kconfig" 19191da11f8SLennert Buytenheksource "net/dsa/Kconfig" 1926a2e9b73SSam Ravnborgsource "net/8021q/Kconfig" 1931da177e4SLinus Torvaldssource "net/decnet/Kconfig" 1941da177e4SLinus Torvaldssource "net/llc/Kconfig" 1951da177e4SLinus Torvaldssource "net/ipx/Kconfig" 1961da177e4SLinus Torvaldssource "drivers/net/appletalk/Kconfig" 1976a2e9b73SSam Ravnborgsource "net/x25/Kconfig" 1986a2e9b73SSam Ravnborgsource "net/lapb/Kconfig" 1996a2e9b73SSam Ravnborgsource "net/econet/Kconfig" 2006a2e9b73SSam Ravnborgsource "net/wanrouter/Kconfig" 2015075138dSremi.denis-courmont@nokiasource "net/phonet/Kconfig" 2029ec76716SSergey Lapinsource "net/ieee802154/Kconfig" 2031da177e4SLinus Torvaldssource "net/sched/Kconfig" 2042f90b865SAlexander Duycksource "net/dcb/Kconfig" 2051da177e4SLinus Torvalds 2061da177e4SLinus Torvaldsmenu "Network testing" 2071da177e4SLinus Torvalds 2081da177e4SLinus Torvaldsconfig NET_PKTGEN 2091da177e4SLinus Torvalds tristate "Packet Generator (USE WITH CAUTION)" 2101da177e4SLinus Torvalds depends on PROC_FS 2111da177e4SLinus Torvalds ---help--- 2121da177e4SLinus Torvalds This module will inject preconfigured packets, at a configurable 2131da177e4SLinus Torvalds rate, out of a given interface. It is used for network interface 2141da177e4SLinus Torvalds stress testing and performance analysis. If you don't understand 2151da177e4SLinus Torvalds what was just said, you don't need it: say N. 2161da177e4SLinus Torvalds 2171da177e4SLinus Torvalds Documentation on how to use the packet generator can be found 2181da177e4SLinus Torvalds at <file:Documentation/networking/pktgen.txt>. 2191da177e4SLinus Torvalds 2201da177e4SLinus Torvalds To compile this code as a module, choose M here: the 2211da177e4SLinus Torvalds module will be called pktgen. 2221da177e4SLinus Torvalds 223a42e9d6cSStephen Hemmingerconfig NET_TCPPROBE 224a42e9d6cSStephen Hemminger tristate "TCP connection probing" 225a42e9d6cSStephen Hemminger depends on INET && EXPERIMENTAL && PROC_FS && KPROBES 226a42e9d6cSStephen Hemminger ---help--- 227a42e9d6cSStephen Hemminger This module allows for capturing the changes to TCP connection 2289dadaa19SDave Jones state in response to incoming packets. It is used for debugging 229a42e9d6cSStephen Hemminger TCP congestion avoidance modules. If you don't understand 230a42e9d6cSStephen Hemminger what was just said, you don't need it: say N. 231a42e9d6cSStephen Hemminger 23282fe7c92SGrant Grundler Documentation on how to use TCP connection probing can be found 233a42e9d6cSStephen Hemminger at http://linux-net.osdl.org/index.php/TcpProbe 234a42e9d6cSStephen Hemminger 235a42e9d6cSStephen Hemminger To compile this code as a module, choose M here: the 236a42e9d6cSStephen Hemminger module will be called tcp_probe. 237a42e9d6cSStephen Hemminger 238273ae44bSNeil Hormanconfig NET_DROP_MONITOR 239273ae44bSNeil Horman boolean "Network packet drop alerting service" 240273ae44bSNeil Horman depends on INET && EXPERIMENTAL && TRACEPOINTS 241273ae44bSNeil Horman ---help--- 242273ae44bSNeil Horman This feature provides an alerting service to userspace in the 243273ae44bSNeil Horman event that packets are discarded in the network stack. Alerts 244273ae44bSNeil Horman are broadcast via netlink socket to any listening user space 245273ae44bSNeil Horman process. If you don't need network drop alerts, or if you are ok 246273ae44bSNeil Horman just checking the various proc files and other utilities for 247273ae44bSNeil Horman drop statistics, say N here. 248273ae44bSNeil Horman 2491da177e4SLinus Torvaldsendmenu 2501da177e4SLinus Torvalds 2511da177e4SLinus Torvaldsendmenu 2521da177e4SLinus Torvalds 2531da177e4SLinus Torvaldssource "net/ax25/Kconfig" 2540d66548aSOliver Hartkoppsource "net/can/Kconfig" 2551da177e4SLinus Torvaldssource "net/irda/Kconfig" 2561da177e4SLinus Torvaldssource "net/bluetooth/Kconfig" 25717926a79SDavid Howellssource "net/rxrpc/Kconfig" 258d86b5e0eSAdrian Bunk 25914c0b97dSThomas Grafconfig FIB_RULES 26014c0b97dSThomas Graf bool 26114c0b97dSThomas Graf 2625442060cSRobert P. J. Daymenuconfig WIRELESS 2635442060cSRobert P. J. Day bool "Wireless" 264f54bfc0eSMartin Schwidefsky depends on !S390 2655442060cSRobert P. J. Day default y 2665442060cSRobert P. J. Day 2675442060cSRobert P. J. Dayif WIRELESS 2682a5e1c0eSJohannes Berg 2692a5e1c0eSJohannes Bergsource "net/wireless/Kconfig" 270f0706e82SJiri Bencsource "net/mac80211/Kconfig" 2712a5e1c0eSJohannes Berg 2725442060cSRobert P. J. Dayendif # WIRELESS 2732a5e1c0eSJohannes Berg 274b0c83ae1SInaky Perez-Gonzalezsource "net/wimax/Kconfig" 275b0c83ae1SInaky Perez-Gonzalez 276cf4328cdSIvo van Doornsource "net/rfkill/Kconfig" 277bd238fb4SLatchesar Ionkovsource "net/9p/Kconfig" 278cf4328cdSIvo van Doorn 2796a2e9b73SSam Ravnborgendif # if NET 280