vserver 1.9.3
[linux-2.6.git] / Documentation / networking / ip-sysctl.txt
1 /proc/sys/net/ipv4/* Variables:
2
3 ip_forward - BOOLEAN
4         0 - disabled (default)
5         not 0 - enabled 
6
7         Forward Packets between interfaces.
8
9         This variable is special, its change resets all configuration
10         parameters to their default state (RFC1122 for hosts, RFC1812
11         for routers)
12
13 ip_default_ttl - INTEGER
14         default 64
15
16 ip_no_pmtu_disc - BOOLEAN
17         Disable Path MTU Discovery.
18         default FALSE
19
20 min_pmtu - INTEGER
21         default 562 - minimum discovered Path MTU
22
23 mtu_expires - INTEGER
24         Time, in seconds, that cached PMTU information is kept.
25
26 min_adv_mss - INTEGER
27         The advertised MSS depends on the first hop route MTU, but will
28         never be lower than this setting.
29
30 IP Fragmentation:
31
32 ipfrag_high_thresh - INTEGER
33         Maximum memory used to reassemble IP fragments. When 
34         ipfrag_high_thresh bytes of memory is allocated for this purpose,
35         the fragment handler will toss packets until ipfrag_low_thresh
36         is reached.
37         
38 ipfrag_low_thresh - INTEGER
39         See ipfrag_high_thresh  
40
41 ipfrag_time - INTEGER
42         Time in seconds to keep an IP fragment in memory.       
43
44 ipfrag_secret_interval - INTEGER
45         Regeneration interval (in seconds) of the hash secret (or lifetime 
46         for the hash secret) for IP fragments.
47         Default: 600
48
49 INET peer storage:
50
51 inet_peer_threshold - INTEGER
52         The approximate size of the storage.  Starting from this threshold      
53         entries will be thrown aggressively.  This threshold also determines
54         entries' time-to-live and time intervals between garbage collection
55         passes.  More entries, less time-to-live, less GC interval.
56
57 inet_peer_minttl - INTEGER
58         Minimum time-to-live of entries.  Should be enough to cover fragment
59         time-to-live on the reassembling side.  This minimum time-to-live  is
60         guaranteed if the pool size is less than inet_peer_threshold.
61         Measured in jiffies(1).
62
63 inet_peer_maxttl - INTEGER
64         Maximum time-to-live of entries.  Unused entries will expire after
65         this period of time if there is no memory pressure on the pool (i.e.
66         when the number of entries in the pool is very small).
67         Measured in jiffies(1).
68
69 inet_peer_gc_mintime - INTEGER
70         Minimum interval between garbage collection passes.  This interval is
71         in effect under high memory pressure on the pool.
72         Measured in jiffies(1).
73
74 inet_peer_gc_maxtime - INTEGER
75         Minimum interval between garbage collection passes.  This interval is
76         in effect under low (or absent) memory pressure on the pool.
77         Measured in jiffies(1).
78
79 TCP variables: 
80
81 tcp_syn_retries - INTEGER
82         Number of times initial SYNs for an active TCP connection attempt
83         will be retransmitted. Should not be higher than 255. Default value
84         is 5, which corresponds to ~180seconds.
85
86 tcp_synack_retries - INTEGER
87         Number of times SYNACKs for a passive TCP connection attempt will
88         be retransmitted. Should not be higher than 255. Default value
89         is 5, which corresponds to ~180seconds.
90
91 tcp_keepalive_time - INTEGER
92         How often TCP sends out keepalive messages when keepalive is enabled.
93         Default: 2hours.
94
95 tcp_keepalive_probes - INTEGER
96         How many keepalive probes TCP sends out, until it decides that the
97         connection is broken. Default value: 9.
98
99 tcp_keepalive_intvl - INTEGER
100         How frequently the probes are send out. Multiplied by
101         tcp_keepalive_probes it is time to kill not responding connection,
102         after probes started. Default value: 75sec i.e. connection
103         will be aborted after ~11 minutes of retries.
104
105 tcp_retries1 - INTEGER
106         How many times to retry before deciding that something is wrong
107         and it is necessary to report this suspicion to network layer.
108         Minimal RFC value is 3, it is default, which corresponds
109         to ~3sec-8min depending on RTO.
110
111 tcp_retries2 - INTEGER
112         How may times to retry before killing alive TCP connection.
113         RFC1122 says that the limit should be longer than 100 sec.
114         It is too small number. Default value 15 corresponds to ~13-30min
115         depending on RTO.
116
117 tcp_orphan_retries - INTEGER
118         How may times to retry before killing TCP connection, closed
119         by our side. Default value 7 corresponds to ~50sec-16min
120         depending on RTO. If you machine is loaded WEB server,
121         you should think about lowering this value, such sockets
122         may consume significant resources. Cf. tcp_max_orphans.
123
124 tcp_fin_timeout - INTEGER
125         Time to hold socket in state FIN-WAIT-2, if it was closed
126         by our side. Peer can be broken and never close its side,
127         or even died unexpectedly. Default value is 60sec.
128         Usual value used in 2.2 was 180 seconds, you may restore
129         it, but remember that if your machine is even underloaded WEB server,
130         you risk to overflow memory with kilotons of dead sockets,
131         FIN-WAIT-2 sockets are less dangerous than FIN-WAIT-1,
132         because they eat maximum 1.5K of memory, but they tend
133         to live longer. Cf. tcp_max_orphans.
134
135 tcp_max_tw_buckets - INTEGER
136         Maximal number of timewait sockets held by system simultaneously.
137         If this number is exceeded time-wait socket is immediately destroyed
138         and warning is printed. This limit exists only to prevent
139         simple DoS attacks, you _must_ not lower the limit artificially,
140         but rather increase it (probably, after increasing installed memory),
141         if network conditions require more than default value.
142
143 tcp_tw_recycle - BOOLEAN
144         Enable fast recycling TIME-WAIT sockets. Default value is 0.
145         It should not be changed without advice/request of technical
146         experts.
147
148 tcp_tw_reuse - BOOLEAN
149         Allow to reuse TIME-WAIT sockets for new connections when it is
150         safe from protocol viewpoint. Default value is 0.
151         It should not be changed without advice/request of technical
152         experts.
153
154 tcp_max_orphans - INTEGER
155         Maximal number of TCP sockets not attached to any user file handle,
156         held by system. If this number is exceeded orphaned connections are
157         reset immediately and warning is printed. This limit exists
158         only to prevent simple DoS attacks, you _must_ not rely on this
159         or lower the limit artificially, but rather increase it
160         (probably, after increasing installed memory),
161         if network conditions require more than default value,
162         and tune network services to linger and kill such states
163         more aggressively. Let me to remind again: each orphan eats
164         up to ~64K of unswappable memory.
165
166 tcp_abort_on_overflow - BOOLEAN
167         If listening service is too slow to accept new connections,
168         reset them. Default state is FALSE. It means that if overflow
169         occurred due to a burst, connection will recover. Enable this
170         option _only_ if you are really sure that listening daemon
171         cannot be tuned to accept connections faster. Enabling this
172         option can harm clients of your server.
173
174 tcp_syncookies - BOOLEAN
175         Only valid when the kernel was compiled with CONFIG_SYNCOOKIES
176         Send out syncookies when the syn backlog queue of a socket 
177         overflows. This is to prevent against the common 'syn flood attack'
178         Default: FALSE
179
180         Note, that syncookies is fallback facility.
181         It MUST NOT be used to help highly loaded servers to stand
182         against legal connection rate. If you see synflood warnings
183         in your logs, but investigation shows that they occur
184         because of overload with legal connections, you should tune
185         another parameters until this warning disappear.
186         See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
187
188         syncookies seriously violate TCP protocol, do not allow
189         to use TCP extensions, can result in serious degradation
190         of some services (f.e. SMTP relaying), visible not by you,
191         but your clients and relays, contacting you. While you see
192         synflood warnings in logs not being really flooded, your server
193         is seriously misconfigured.
194
195 tcp_stdurg - BOOLEAN
196         Use the Host requirements interpretation of the TCP urg pointer field.
197         Most hosts use the older BSD interpretation, so if you turn this on
198         Linux might not communicate correctly with them.        
199         Default: FALSE 
200         
201 tcp_max_syn_backlog - INTEGER
202         Maximal number of remembered connection requests, which are
203         still did not receive an acknowledgment from connecting client.
204         Default value is 1024 for systems with more than 128Mb of memory,
205         and 128 for low memory machines. If server suffers of overload,
206         try to increase this number.
207
208 tcp_window_scaling - BOOLEAN
209         Enable window scaling as defined in RFC1323.
210
211 tcp_timestamps - BOOLEAN
212         Enable timestamps as defined in RFC1323.
213
214 tcp_sack - BOOLEAN
215         Enable select acknowledgments (SACKS).
216
217 tcp_fack - BOOLEAN
218         Enable FACK congestion avoidance and fast retransmission.
219         The value is not used, if tcp_sack is not enabled.
220
221 tcp_dsack - BOOLEAN
222         Allows TCP to send "duplicate" SACKs.
223
224 tcp_ecn - BOOLEAN
225         Enable Explicit Congestion Notification in TCP.
226
227 tcp_reordering - INTEGER
228         Maximal reordering of packets in a TCP stream.
229         Default: 3      
230
231 tcp_retrans_collapse - BOOLEAN
232         Bug-to-bug compatibility with some broken printers.
233         On retransmit try to send bigger packets to work around bugs in
234         certain TCP stacks.
235
236 tcp_wmem - vector of 3 INTEGERs: min, default, max
237         min: Amount of memory reserved for send buffers for TCP socket.
238         Each TCP socket has rights to use it due to fact of its birth.
239         Default: 4K
240
241         default: Amount of memory allowed for send buffers for TCP socket
242         by default. This value overrides net.core.wmem_default used
243         by other protocols, it is usually lower than net.core.wmem_default.
244         Default: 16K
245
246         max: Maximal amount of memory allowed for automatically selected
247         send buffers for TCP socket. This value does not override
248         net.core.wmem_max, "static" selection via SO_SNDBUF does not use this.
249         Default: 128K
250
251 tcp_rmem - vector of 3 INTEGERs: min, default, max
252         min: Minimal size of receive buffer used by TCP sockets.
253         It is guaranteed to each TCP socket, even under moderate memory
254         pressure.
255         Default: 8K
256
257         default: default size of receive buffer used by TCP sockets.
258         This value overrides net.core.rmem_default used by other protocols.
259         Default: 87380 bytes. This value results in window of 65535 with
260         default setting of tcp_adv_win_scale and tcp_app_win:0 and a bit
261         less for default tcp_app_win. See below about these variables.
262
263         max: maximal size of receive buffer allowed for automatically
264         selected receiver buffers for TCP socket. This value does not override
265         net.core.rmem_max, "static" selection via SO_RCVBUF does not use this.
266         Default: 87380*2 bytes.
267
268 tcp_mem - vector of 3 INTEGERs: min, pressure, max
269         low: below this number of pages TCP is not bothered about its
270         memory appetite.
271
272         pressure: when amount of memory allocated by TCP exceeds this number
273         of pages, TCP moderates its memory consumption and enters memory
274         pressure mode, which is exited when memory consumption falls
275         under "low".
276
277         high: number of pages allowed for queueing by all TCP sockets.
278
279         Defaults are calculated at boot time from amount of available
280         memory.
281
282 tcp_app_win - INTEGER
283         Reserve max(window/2^tcp_app_win, mss) of window for application
284         buffer. Value 0 is special, it means that nothing is reserved.
285         Default: 31
286
287 tcp_adv_win_scale - INTEGER
288         Count buffering overhead as bytes/2^tcp_adv_win_scale
289         (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
290         if it is <= 0.
291         Default: 2
292
293 tcp_rfc1337 - BOOLEAN
294         If set, the TCP stack behaves conforming to RFC1337. If unset,
295         we are not conforming to RFC, but prevent TCP TIME_WAIT
296         assassination.   
297         Default: 0
298
299 tcp_low_latency - BOOLEAN
300         If set, the TCP stack makes decisions that prefer lower
301         latency as opposed to higher throughput.  By default, this
302         option is not set meaning that higher throughput is preferred.
303         An example of an application where this default should be
304         changed would be a Beowulf compute cluster.
305         Default: 0
306
307 tcp_westwood - BOOLEAN
308         Enable TCP Westwood+ congestion control algorithm.
309         TCP Westwood+ is a sender-side only modification of the TCP Reno 
310         protocol stack that optimizes the performance of TCP congestion 
311         control. It is based on end-to-end bandwidth estimation to set 
312         congestion window and slow start threshold after a congestion 
313         episode. Using this estimation, TCP Westwood+ adaptively sets a 
314         slow start threshold and a congestion window which takes into 
315         account the bandwidth used  at the time congestion is experienced. 
316         TCP Westwood+ significantly increases fairness wrt TCP Reno in 
317         wired networks and throughput over wireless links.   
318         Default: 0
319
320 tcp_vegas_cong_avoid - BOOLEAN
321         Enable TCP Vegas congestion avoidance algorithm.
322         TCP Vegas is a sender-side only change to TCP that anticipates
323         the onset of congestion by estimating the bandwidth. TCP Vegas
324         adjusts the sending rate by modifying the congestion
325         window. TCP Vegas should provide less packet loss, but it is
326         not as aggressive as TCP Reno.
327         Default:0
328
329 tcp_bic - BOOLEAN
330         Enable BIC TCP congestion control algorithm.
331         BIC-TCP is a sender-side only change that ensures a linear RTT
332         fairness under large windows while offering both scalability and
333         bounded TCP-friendliness. The protocol combines two schemes
334         called additive increase and binary search increase. When the
335         congestion window is large, additive increase with a large
336         increment ensures linear RTT fairness as well as good
337         scalability. Under small congestion windows, binary search
338         increase provides TCP friendliness.
339         Default: 0
340
341 tcp_bic_low_window - INTEGER
342         Sets the threshold window (in packets) where BIC TCP starts to
343         adjust the congestion window. Below this threshold BIC TCP behaves
344         the same as the default TCP Reno. 
345         Default: 14
346
347 tcp_bic_fast_convergence - BOOLEAN
348         Forces BIC TCP to more quickly respond to changes in congestion
349         window. Allows two flows sharing the same connection to converge
350         more rapidly.
351         Default: 1
352
353 tcp_default_win_scale - INTEGER
354         Sets the minimum window scale TCP will negotiate for on all
355         conections.
356         Default: 7
357
358
359 tcp_frto - BOOLEAN
360         Enables F-RTO, an enhanced recovery algorithm for TCP retransmission
361         timeouts.  It is particularly beneficial in wireless environments
362         where packet loss is typically due to random radio interference
363         rather than intermediate router congestion.
364
365 somaxconn - INTEGER
366         Limit of socket listen() backlog, known in userspace as SOMAXCONN.
367         Defaults to 128.  See also tcp_max_syn_backlog for additional tuning
368         for TCP sockets.
369
370 IP Variables:
371
372 ip_local_port_range - 2 INTEGERS
373         Defines the local port range that is used by TCP and UDP to
374         choose the local port. The first number is the first, the 
375         second the last local port number. Default value depends on
376         amount of memory available on the system:
377         > 128Mb 32768-61000
378         < 128Mb 1024-4999 or even less.
379         This number defines number of active connections, which this
380         system can issue simultaneously to systems not supporting
381         TCP extensions (timestamps). With tcp_tw_recycle enabled
382         (i.e. by default) range 1024-4999 is enough to issue up to
383         2000 connections per second to systems supporting timestamps.
384
385 ip_nonlocal_bind - BOOLEAN
386         If set, allows processes to bind() to non-local IP addresses,
387         which can be quite useful - but may break some applications.
388         Default: 0
389
390 ip_dynaddr - BOOLEAN
391         If set non-zero, enables support for dynamic addresses.
392         If set to a non-zero value larger than 1, a kernel log
393         message will be printed when dynamic address rewriting
394         occurs.
395         Default: 0
396
397 icmp_echo_ignore_all - BOOLEAN
398 icmp_echo_ignore_broadcasts - BOOLEAN
399         If either is set to true, then the kernel will ignore either all
400         ICMP ECHO requests sent to it or just those to broadcast/multicast
401         addresses, respectively.
402
403 icmp_ratelimit - INTEGER
404         Limit the maximal rates for sending ICMP packets whose type matches
405         icmp_ratemask (see below) to specific targets.
406         0 to disable any limiting, otherwise the maximal rate in jiffies(1)
407         Default: 100
408
409 icmp_ratemask - INTEGER
410         Mask made of ICMP types for which rates are being limited.
411         Significant bits: IHGFEDCBA9876543210
412         Default mask:     0000001100000011000 (6168)
413
414         Bit definitions (see include/linux/icmp.h):
415                 0 Echo Reply
416                 3 Destination Unreachable *
417                 4 Source Quench *
418                 5 Redirect
419                 8 Echo Request
420                 B Time Exceeded *
421                 C Parameter Problem *
422                 D Timestamp Request
423                 E Timestamp Reply
424                 F Info Request
425                 G Info Reply
426                 H Address Mask Request
427                 I Address Mask Reply
428
429         * These are rate limited by default (see default mask above)
430
431 icmp_ignore_bogus_error_responses - BOOLEAN
432         Some routers violate RFC1122 by sending bogus responses to broadcast
433         frames.  Such violations are normally logged via a kernel warning.
434         If this is set to TRUE, the kernel will not give such warnings, which
435         will avoid log file clutter.
436         Default: FALSE
437
438 igmp_max_memberships - INTEGER
439         Change the maximum number of multicast groups we can subscribe to.
440         Default: 20
441
442 conf/interface/*  changes special settings per interface (where "interface" is 
443                   the name of your network interface)
444 conf/all/*        is special, changes the settings for all interfaces
445
446
447 log_martians - BOOLEAN
448         Log packets with impossible addresses to kernel log.
449         log_martians for the interface will be enabled if at least one of
450         conf/{all,interface}/log_martians is set to TRUE,
451         it will be disabled otherwise
452
453 accept_redirects - BOOLEAN
454         Accept ICMP redirect messages.
455         accept_redirects for the interface will be enabled if:
456         - both conf/{all,interface}/accept_redirects are TRUE in the case forwarding
457           for the interface is enabled
458         or
459         - at least one of conf/{all,interface}/accept_redirects is TRUE in the case
460           forwarding for the interface is disabled
461         accept_redirects for the interface will be disabled otherwise
462         default TRUE (host)
463                 FALSE (router)
464
465 forwarding - BOOLEAN
466         Enable IP forwarding on this interface.
467
468 mc_forwarding - BOOLEAN
469         Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
470         and a multicast routing daemon is required.
471         conf/all/mc_forwarding must also be set to TRUE to enable multicast routing
472         for the interface
473
474 medium_id - INTEGER
475         Integer value used to differentiate the devices by the medium they
476         are attached to. Two devices can have different id values when
477         the broadcast packets are received only on one of them.
478         The default value 0 means that the device is the only interface
479         to its medium, value of -1 means that medium is not known.
480         
481         Currently, it is used to change the proxy_arp behavior:
482         the proxy_arp feature is enabled for packets forwarded between
483         two devices attached to different media.
484
485 proxy_arp - BOOLEAN
486         Do proxy arp.
487         proxy_arp for the interface will be enabled if at least one of
488         conf/{all,interface}/proxy_arp is set to TRUE,
489         it will be disabled otherwise
490
491 shared_media - BOOLEAN
492         Send(router) or accept(host) RFC1620 shared media redirects.
493         Overrides ip_secure_redirects.
494         shared_media for the interface will be enabled if at least one of
495         conf/{all,interface}/shared_media is set to TRUE,
496         it will be disabled otherwise
497         default TRUE
498
499 secure_redirects - BOOLEAN
500         Accept ICMP redirect messages only for gateways,
501         listed in default gateway list.
502         secure_redirects for the interface will be enabled if at least one of
503         conf/{all,interface}/secure_redirects is set to TRUE,
504         it will be disabled otherwise
505         default TRUE
506
507 send_redirects - BOOLEAN
508         Send redirects, if router.
509         send_redirects for the interface will be enabled if at least one of
510         conf/{all,interface}/send_redirects is set to TRUE,
511         it will be disabled otherwise
512         Default: TRUE
513
514 bootp_relay - BOOLEAN
515         Accept packets with source address 0.b.c.d destined
516         not to this host as local ones. It is supposed, that
517         BOOTP relay daemon will catch and forward such packets.
518         conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
519         for the interface
520         default FALSE
521         Not Implemented Yet.
522
523 accept_source_route - BOOLEAN
524         Accept packets with SRR option.
525         conf/all/accept_source_route must also be set to TRUE to accept packets
526         with SRR option on the interface
527         default TRUE (router)
528                 FALSE (host)
529
530 rp_filter - BOOLEAN
531         1 - do source validation by reversed path, as specified in RFC1812
532             Recommended option for single homed hosts and stub network
533             routers. Could cause troubles for complicated (not loop free)
534             networks running a slow unreliable protocol (sort of RIP),
535             or using static routes.
536
537         0 - No source validation.
538
539         conf/all/rp_filter must also be set to TRUE to do source validation
540         on the interface
541
542         Default value is 0. Note that some distributions enable it
543         in startup scripts.
544
545 arp_filter - BOOLEAN
546         1 - Allows you to have multiple network interfaces on the same
547         subnet, and have the ARPs for each interface be answered
548         based on whether or not the kernel would route a packet from
549         the ARP'd IP out that interface (therefore you must use source
550         based routing for this to work). In other words it allows control
551         of which cards (usually 1) will respond to an arp request.
552
553         0 - (default) The kernel can respond to arp requests with addresses
554         from other interfaces. This may seem wrong but it usually makes
555         sense, because it increases the chance of successful communication.
556         IP addresses are owned by the complete host on Linux, not by
557         particular interfaces. Only for more complex setups like load-
558         balancing, does this behaviour cause problems.
559
560         arp_filter for the interface will be enabled if at least one of
561         conf/{all,interface}/arp_filter is set to TRUE,
562         it will be disabled otherwise
563
564 arp_announce - INTEGER
565         Define different restriction levels for announcing the local
566         source IP address from IP packets in ARP requests sent on
567         interface:
568         0 - (default) Use any local address, configured on any interface
569         1 - Try to avoid local addresses that are not in the target's
570         subnet for this interface. This mode is useful when target
571         hosts reachable via this interface require the source IP
572         address in ARP requests to be part of their logical network
573         configured on the receiving interface. When we generate the
574         request we will check all our subnets that include the
575         target IP and will preserve the source address if it is from
576         such subnet. If there is no such subnet we select source
577         address according to the rules for level 2.
578         2 - Always use the best local address for this target.
579         In this mode we ignore the source address in the IP packet
580         and try to select local address that we prefer for talks with
581         the target host. Such local address is selected by looking
582         for primary IP addresses on all our subnets on the outgoing
583         interface that include the target IP address. If no suitable
584         local address is found we select the first local address
585         we have on the outgoing interface or on all other interfaces,
586         with the hope we will receive reply for our request and
587         even sometimes no matter the source IP address we announce.
588
589         The max value from conf/{all,interface}/arp_announce is used.
590
591         Increasing the restriction level gives more chance for
592         receiving answer from the resolved target while decreasing
593         the level announces more valid sender's information.
594
595 arp_ignore - INTEGER
596         Define different modes for sending replies in response to
597         received ARP requests that resolve local target IP addresses:
598         0 - (default): reply for any local target IP address, configured
599         on any interface
600         1 - reply only if the target IP address is local address
601         configured on the incoming interface
602         2 - reply only if the target IP address is local address
603         configured on the incoming interface and both with the
604         sender's IP address are part from same subnet on this interface
605         3 - do not reply for local addresses configured with scope host,
606         only resolutions for global and link addresses are replied
607         4-7 - reserved
608         8 - do not reply for all local addresses
609
610         The max value from conf/{all,interface}/arp_ignore is used
611         when ARP request is received on the {interface}
612
613 app_solicit - INTEGER
614         The maximum number of probes to send to the user space ARP daemon
615         via netlink before dropping back to multicast probes (see
616         mcast_solicit).  Defaults to 0.
617
618 disable_policy - BOOLEAN
619         Disable IPSEC policy (SPD) for this interface
620
621 disable_xfrm - BOOLEAN
622         Disable IPSEC encryption on this interface, whatever the policy
623
624
625
626 tag - INTEGER
627         Allows you to write a number, which can be used as required.
628         Default value is 0.
629
630 (1) Jiffie: internal timeunit for the kernel. On the i386 1/100s, on the
631 Alpha 1/1024s. See the HZ define in /usr/include/asm/param.h for the exact
632 value on your system. 
633
634 Alexey Kuznetsov.
635 kuznet@ms2.inr.ac.ru
636
637 Updated by:
638 Andi Kleen
639 ak@muc.de
640 Nicolas Delon
641 delon.nicolas@wanadoo.fr
642
643
644
645
646 /proc/sys/net/ipv6/* Variables:
647
648 IPv6 has no global variables such as tcp_*.  tcp_* settings under ipv4/ also
649 apply to IPv6 [XXX?].
650
651 bindv6only - BOOLEAN
652         Default value for IPV6_V6ONLY socket option,
653         which restricts use of the IPv6 socket to IPv6 communication 
654         only.
655                 TRUE: disable IPv4-mapped address feature
656                 FALSE: enable IPv4-mapped address feature
657
658         Default: FALSE (as specified in RFC2553bis)
659
660 IPv6 Fragmentation:
661
662 ip6frag_high_thresh - INTEGER
663         Maximum memory used to reassemble IPv6 fragments. When 
664         ip6frag_high_thresh bytes of memory is allocated for this purpose,
665         the fragment handler will toss packets until ip6frag_low_thresh
666         is reached.
667         
668 ip6frag_low_thresh - INTEGER
669         See ip6frag_high_thresh 
670
671 ip6frag_time - INTEGER
672         Time in seconds to keep an IPv6 fragment in memory.
673
674 ip6frag_secret_interval - INTEGER
675         Regeneration interval (in seconds) of the hash secret (or lifetime 
676         for the hash secret) for IPv6 fragments.
677         Default: 600
678
679 conf/default/*:
680         Change the interface-specific default settings.
681
682
683 conf/all/*:
684         Change all the interface-specific settings.  
685
686         [XXX:  Other special features than forwarding?]
687
688 conf/all/forwarding - BOOLEAN
689         Enable global IPv6 forwarding between all interfaces.  
690
691         IPv4 and IPv6 work differently here; e.g. netfilter must be used 
692         to control which interfaces may forward packets and which not.
693
694         This also sets all interfaces' Host/Router setting 
695         'forwarding' to the specified value.  See below for details.
696
697         This referred to as global forwarding.
698
699 conf/interface/*:
700         Change special settings per interface.
701
702         The functional behaviour for certain settings is different 
703         depending on whether local forwarding is enabled or not.
704
705 accept_ra - BOOLEAN
706         Accept Router Advertisements; autoconfigure using them.
707         
708         Functional default: enabled if local forwarding is disabled.
709                             disabled if local forwarding is enabled.
710
711 accept_redirects - BOOLEAN
712         Accept Redirects.
713
714         Functional default: enabled if local forwarding is disabled.
715                             disabled if local forwarding is enabled.
716
717 autoconf - BOOLEAN
718         Autoconfigure addresses using Prefix Information in Router 
719         Advertisements.
720
721         Functional default: enabled if accept_ra is enabled.
722                             disabled if accept_ra is disabled.
723
724 dad_transmits - INTEGER
725         The amount of Duplicate Address Detection probes to send.
726         Default: 1
727         
728 forwarding - BOOLEAN
729         Configure interface-specific Host/Router behaviour.  
730
731         Note: It is recommended to have the same setting on all 
732         interfaces; mixed router/host scenarios are rather uncommon.
733
734         FALSE:
735
736         By default, Host behaviour is assumed.  This means:
737
738         1. IsRouter flag is not set in Neighbour Advertisements.
739         2. Router Solicitations are being sent when necessary.
740         3. If accept_ra is TRUE (default), accept Router 
741            Advertisements (and do autoconfiguration).
742         4. If accept_redirects is TRUE (default), accept Redirects.
743
744         TRUE:
745
746         If local forwarding is enabled, Router behaviour is assumed. 
747         This means exactly the reverse from the above:
748
749         1. IsRouter flag is set in Neighbour Advertisements.
750         2. Router Solicitations are not sent.
751         3. Router Advertisements are ignored.
752         4. Redirects are ignored.
753
754         Default: FALSE if global forwarding is disabled (default),
755                  otherwise TRUE.
756
757 hop_limit - INTEGER
758         Default Hop Limit to set.
759         Default: 64
760
761 mtu - INTEGER
762         Default Maximum Transfer Unit
763         Default: 1280 (IPv6 required minimum)
764
765 router_solicitation_delay - INTEGER
766         Number of seconds to wait after interface is brought up
767         before sending Router Solicitations.
768         Default: 1
769
770 router_solicitation_interval - INTEGER
771         Number of seconds to wait between Router Solicitations.
772         Default: 4
773
774 router_solicitations - INTEGER
775         Number of Router Solicitations to send until assuming no 
776         routers are present.
777         Default: 3
778
779 use_tempaddr - INTEGER
780         Preference for Privacy Extensions (RFC3041).
781           <= 0 : disable Privacy Extensions
782           == 1 : enable Privacy Extensions, but prefer public
783                  addresses over temporary addresses.
784           >  1 : enable Privacy Extensions and prefer temporary
785                  addresses over public addresses.
786         Default:  0 (for most devices)
787                  -1 (for point-to-point devices and loopback devices)
788
789 temp_valid_lft - INTEGER
790         valid lifetime (in seconds) for temporary addresses.
791         Default: 604800 (7 days)
792
793 temp_prefered_lft - INTEGER
794         Preferred lifetime (in seconds) for temporary addresses.
795         Default: 86400 (1 day)
796
797 max_desync_factor - INTEGER
798         Maximum value for DESYNC_FACTOR, which is a random value
799         that ensures that clients don't synchronize with each 
800         other and generate new addresses at exactly the same time.
801         value is in seconds.
802         Default: 600
803         
804 regen_max_retry - INTEGER
805         Number of attempts before give up attempting to generate
806         valid temporary addresses.
807         Default: 5
808
809 max_addresses - INTEGER
810         Number of maximum addresses per interface.  0 disables limitation.
811         It is recommended not set too large value (or 0) because it would 
812         be too easy way to crash kernel to allow to create too much of 
813         autoconfigured addresses.
814         Default: 16
815
816 icmp/*:
817 ratelimit - INTEGER
818         Limit the maximal rates for sending ICMPv6 packets.
819         0 to disable any limiting, otherwise the maximal rate in jiffies(1)
820         Default: 100
821
822
823 IPv6 Update by:
824 Pekka Savola <pekkas@netcore.fi>
825 YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
826
827
828 /proc/sys/net/bridge/* Variables:
829
830 bridge-nf-call-arptables - BOOLEAN
831         1 : pass bridged ARP traffic to arptables' FORWARD chain.
832         0 : disable this.
833         Default: 1
834
835 bridge-nf-call-iptables - BOOLEAN
836         1 : pass bridged IPv4 traffic to iptables' chains.
837         0 : disable this.
838         Default: 1
839
840 bridge-nf-call-ip6tables - BOOLEAN
841         1 : pass bridged IPv6 traffic to ip6tables' chains.
842         0 : disable this.
843         Default: 1
844
845 bridge-nf-filter-vlan-tagged - BOOLEAN
846         1 : pass bridged vlan-tagged ARP/IP traffic to arptables/iptables.
847         0 : disable this.
848         Default: 1
849
850
851 UNDOCUMENTED:
852
853 dev_weight FIXME
854 discovery_slots FIXME
855 discovery_timeout FIXME
856 fast_poll_increase FIXME
857 ip6_queue_maxlen FIXME
858 lap_keepalive_time FIXME
859 lo_cong FIXME
860 max_baud_rate FIXME
861 max_dgram_qlen FIXME
862 max_noreply_time FIXME
863 max_tx_data_size FIXME
864 max_tx_window FIXME
865 min_tx_turn_time FIXME
866 mod_cong FIXME
867 no_cong FIXME
868 no_cong_thresh FIXME
869 slot_timeout FIXME
870 warn_noreply_time FIXME
871
872 $Id: ip-sysctl.txt,v 1.20 2001/12/13 09:00:18 davem Exp $