ip-sysctl.txt 37 KB

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