ip-sysctl.txt 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510
  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 value of TTL field (Time To Live) for outgoing (but not
  11. forwarded) IP packets. Should be between 1 and 255 inclusive.
  12. Default: 64 (as recommended by RFC1700)
  13. ip_no_pmtu_disc - BOOLEAN
  14. Disable Path MTU Discovery.
  15. default FALSE
  16. min_pmtu - INTEGER
  17. default 552 - minimum discovered Path MTU
  18. route/max_size - INTEGER
  19. Maximum number of routes allowed in the kernel. Increase
  20. this when using large numbers of interfaces and/or routes.
  21. neigh/default/gc_thresh3 - INTEGER
  22. Maximum number of neighbor entries allowed. Increase this
  23. when using large numbers of interfaces and when communicating
  24. with large numbers of directly-connected peers.
  25. neigh/default/unres_qlen_bytes - INTEGER
  26. The maximum number of bytes which may be used by packets
  27. queued for each unresolved address by other network layers.
  28. (added in linux 3.3)
  29. neigh/default/unres_qlen - INTEGER
  30. The maximum number of packets which may be queued for each
  31. unresolved address by other network layers.
  32. (deprecated in linux 3.3) : use unres_qlen_bytes instead.
  33. mtu_expires - INTEGER
  34. Time, in seconds, that cached PMTU information is kept.
  35. min_adv_mss - INTEGER
  36. The advertised MSS depends on the first hop route MTU, but will
  37. never be lower than this setting.
  38. rt_cache_rebuild_count - INTEGER
  39. The per net-namespace route cache emergency rebuild threshold.
  40. Any net-namespace having its route cache rebuilt due to
  41. a hash bucket chain being too long more than this many times
  42. will have its route caching disabled
  43. IP Fragmentation:
  44. ipfrag_high_thresh - INTEGER
  45. Maximum memory used to reassemble IP fragments. When
  46. ipfrag_high_thresh bytes of memory is allocated for this purpose,
  47. the fragment handler will toss packets until ipfrag_low_thresh
  48. is reached.
  49. ipfrag_low_thresh - INTEGER
  50. See ipfrag_high_thresh
  51. ipfrag_time - INTEGER
  52. Time in seconds to keep an IP fragment in memory.
  53. ipfrag_secret_interval - INTEGER
  54. Regeneration interval (in seconds) of the hash secret (or lifetime
  55. for the hash secret) for IP fragments.
  56. Default: 600
  57. ipfrag_max_dist - INTEGER
  58. ipfrag_max_dist is a non-negative integer value which defines the
  59. maximum "disorder" which is allowed among fragments which share a
  60. common IP source address. Note that reordering of packets is
  61. not unusual, but if a large number of fragments arrive from a source
  62. IP address while a particular fragment queue remains incomplete, it
  63. probably indicates that one or more fragments belonging to that queue
  64. have been lost. When ipfrag_max_dist is positive, an additional check
  65. is done on fragments before they are added to a reassembly queue - if
  66. ipfrag_max_dist (or more) fragments have arrived from a particular IP
  67. address between additions to any IP fragment queue using that source
  68. address, it's presumed that one or more fragments in the queue are
  69. lost. The existing fragment queue will be dropped, and a new one
  70. started. An ipfrag_max_dist value of zero disables this check.
  71. Using a very small value, e.g. 1 or 2, for ipfrag_max_dist can
  72. result in unnecessarily dropping fragment queues when normal
  73. reordering of packets occurs, which could lead to poor application
  74. performance. Using a very large value, e.g. 50000, increases the
  75. likelihood of incorrectly reassembling IP fragments that originate
  76. from different IP datagrams, which could result in data corruption.
  77. Default: 64
  78. INET peer storage:
  79. inet_peer_threshold - INTEGER
  80. The approximate size of the storage. Starting from this threshold
  81. entries will be thrown aggressively. This threshold also determines
  82. entries' time-to-live and time intervals between garbage collection
  83. passes. More entries, less time-to-live, less GC interval.
  84. inet_peer_minttl - INTEGER
  85. Minimum time-to-live of entries. Should be enough to cover fragment
  86. time-to-live on the reassembling side. This minimum time-to-live is
  87. guaranteed if the pool size is less than inet_peer_threshold.
  88. Measured in seconds.
  89. inet_peer_maxttl - INTEGER
  90. Maximum time-to-live of entries. Unused entries will expire after
  91. this period of time if there is no memory pressure on the pool (i.e.
  92. when the number of entries in the pool is very small).
  93. Measured in seconds.
  94. TCP variables:
  95. somaxconn - INTEGER
  96. Limit of socket listen() backlog, known in userspace as SOMAXCONN.
  97. Defaults to 128. See also tcp_max_syn_backlog for additional tuning
  98. for TCP sockets.
  99. tcp_abc - INTEGER
  100. Controls Appropriate Byte Count (ABC) defined in RFC3465.
  101. ABC is a way of increasing congestion window (cwnd) more slowly
  102. in response to partial acknowledgments.
  103. Possible values are:
  104. 0 increase cwnd once per acknowledgment (no ABC)
  105. 1 increase cwnd once per acknowledgment of full sized segment
  106. 2 allow increase cwnd by two if acknowledgment is
  107. of two segments to compensate for delayed acknowledgments.
  108. Default: 0 (off)
  109. tcp_abort_on_overflow - BOOLEAN
  110. If listening service is too slow to accept new connections,
  111. reset them. Default state is FALSE. It means that if overflow
  112. occurred due to a burst, connection will recover. Enable this
  113. option _only_ if you are really sure that listening daemon
  114. cannot be tuned to accept connections faster. Enabling this
  115. option can harm clients of your server.
  116. tcp_adv_win_scale - INTEGER
  117. Count buffering overhead as bytes/2^tcp_adv_win_scale
  118. (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
  119. if it is <= 0.
  120. Possible values are [-31, 31], inclusive.
  121. Default: 2
  122. tcp_allowed_congestion_control - STRING
  123. Show/set the congestion control choices available to non-privileged
  124. processes. The list is a subset of those listed in
  125. tcp_available_congestion_control.
  126. Default is "reno" and the default setting (tcp_congestion_control).
  127. tcp_app_win - INTEGER
  128. Reserve max(window/2^tcp_app_win, mss) of window for application
  129. buffer. Value 0 is special, it means that nothing is reserved.
  130. Default: 31
  131. tcp_available_congestion_control - STRING
  132. Shows the available congestion control choices that are registered.
  133. More congestion control algorithms may be available as modules,
  134. but not loaded.
  135. tcp_base_mss - INTEGER
  136. The initial value of search_low to be used by the packetization layer
  137. Path MTU discovery (MTU probing). If MTU probing is enabled,
  138. this is the initial MSS used by the connection.
  139. tcp_congestion_control - STRING
  140. Set the congestion control algorithm to be used for new
  141. connections. The algorithm "reno" is always available, but
  142. additional choices may be available based on kernel configuration.
  143. Default is set as part of kernel configuration.
  144. For passive connections, the listener congestion control choice
  145. is inherited.
  146. [see setsockopt(listenfd, SOL_TCP, TCP_CONGESTION, "name" ...) ]
  147. tcp_cookie_size - INTEGER
  148. Default size of TCP Cookie Transactions (TCPCT) option, that may be
  149. overridden on a per socket basis by the TCPCT socket option.
  150. Values greater than the maximum (16) are interpreted as the maximum.
  151. Values greater than zero and less than the minimum (8) are interpreted
  152. as the minimum. Odd values are interpreted as the next even value.
  153. Default: 0 (off).
  154. tcp_dsack - BOOLEAN
  155. Allows TCP to send "duplicate" SACKs.
  156. tcp_ecn - INTEGER
  157. Enable Explicit Congestion Notification (ECN) in TCP. ECN is only
  158. used when both ends of the TCP flow support it. It is useful to
  159. avoid losses due to congestion (when the bottleneck router supports
  160. ECN).
  161. Possible values are:
  162. 0 disable ECN
  163. 1 ECN enabled
  164. 2 Only server-side ECN enabled. If the other end does
  165. not support ECN, behavior is like with ECN disabled.
  166. Default: 2
  167. tcp_fack - BOOLEAN
  168. Enable FACK congestion avoidance and fast retransmission.
  169. The value is not used, if tcp_sack is not enabled.
  170. tcp_fin_timeout - INTEGER
  171. Time to hold socket in state FIN-WAIT-2, if it was closed
  172. by our side. Peer can be broken and never close its side,
  173. or even died unexpectedly. Default value is 60sec.
  174. Usual value used in 2.2 was 180 seconds, you may restore
  175. it, but remember that if your machine is even underloaded WEB server,
  176. you risk to overflow memory with kilotons of dead sockets,
  177. FIN-WAIT-2 sockets are less dangerous than FIN-WAIT-1,
  178. because they eat maximum 1.5K of memory, but they tend
  179. to live longer. Cf. tcp_max_orphans.
  180. tcp_frto - INTEGER
  181. Enables Forward RTO-Recovery (F-RTO) defined in RFC4138.
  182. F-RTO is an enhanced recovery algorithm for TCP retransmission
  183. timeouts. It is particularly beneficial in wireless environments
  184. where packet loss is typically due to random radio interference
  185. rather than intermediate router congestion. F-RTO is sender-side
  186. only modification. Therefore it does not require any support from
  187. the peer.
  188. If set to 1, basic version is enabled. 2 enables SACK enhanced
  189. F-RTO if flow uses SACK. The basic version can be used also when
  190. SACK is in use though scenario(s) with it exists where F-RTO
  191. interacts badly with the packet counting of the SACK enabled TCP
  192. flow.
  193. tcp_frto_response - INTEGER
  194. When F-RTO has detected that a TCP retransmission timeout was
  195. spurious (i.e, the timeout would have been avoided had TCP set a
  196. longer retransmission timeout), TCP has several options what to do
  197. next. Possible values are:
  198. 0 Rate halving based; a smooth and conservative response,
  199. results in halved cwnd and ssthresh after one RTT
  200. 1 Very conservative response; not recommended because even
  201. though being valid, it interacts poorly with the rest of
  202. Linux TCP, halves cwnd and ssthresh immediately
  203. 2 Aggressive response; undoes congestion control measures
  204. that are now known to be unnecessary (ignoring the
  205. possibility of a lost retransmission that would require
  206. TCP to be more cautious), cwnd and ssthresh are restored
  207. to the values prior timeout
  208. Default: 0 (rate halving based)
  209. tcp_keepalive_time - INTEGER
  210. How often TCP sends out keepalive messages when keepalive is enabled.
  211. Default: 2hours.
  212. tcp_keepalive_probes - INTEGER
  213. How many keepalive probes TCP sends out, until it decides that the
  214. connection is broken. Default value: 9.
  215. tcp_keepalive_intvl - INTEGER
  216. How frequently the probes are send out. Multiplied by
  217. tcp_keepalive_probes it is time to kill not responding connection,
  218. after probes started. Default value: 75sec i.e. connection
  219. will be aborted after ~11 minutes of retries.
  220. tcp_low_latency - BOOLEAN
  221. If set, the TCP stack makes decisions that prefer lower
  222. latency as opposed to higher throughput. By default, this
  223. option is not set meaning that higher throughput is preferred.
  224. An example of an application where this default should be
  225. changed would be a Beowulf compute cluster.
  226. Default: 0
  227. tcp_max_orphans - INTEGER
  228. Maximal number of TCP sockets not attached to any user file handle,
  229. held by system. If this number is exceeded orphaned connections are
  230. reset immediately and warning is printed. This limit exists
  231. only to prevent simple DoS attacks, you _must_ not rely on this
  232. or lower the limit artificially, but rather increase it
  233. (probably, after increasing installed memory),
  234. if network conditions require more than default value,
  235. and tune network services to linger and kill such states
  236. more aggressively. Let me to remind again: each orphan eats
  237. up to ~64K of unswappable memory.
  238. tcp_max_ssthresh - INTEGER
  239. Limited Slow-Start for TCP with large congestion windows (cwnd) defined in
  240. RFC3742. Limited slow-start is a mechanism to limit growth of the cwnd
  241. on the region where cwnd is larger than tcp_max_ssthresh. TCP increases cwnd
  242. by at most tcp_max_ssthresh segments, and by at least tcp_max_ssthresh/2
  243. segments per RTT when the cwnd is above tcp_max_ssthresh.
  244. If TCP connection increased cwnd to thousands (or tens of thousands) segments,
  245. and thousands of packets were being dropped during slow-start, you can set
  246. tcp_max_ssthresh to improve performance for new TCP connection.
  247. Default: 0 (off)
  248. tcp_max_syn_backlog - INTEGER
  249. Maximal number of remembered connection requests, which have not
  250. received an acknowledgment from connecting client.
  251. The minimal value is 128 for low memory machines, and it will
  252. increase in proportion to the memory of machine.
  253. If server suffers from overload, try increasing this number.
  254. tcp_max_tw_buckets - INTEGER
  255. Maximal number of timewait sockets held by system simultaneously.
  256. If this number is exceeded time-wait socket is immediately destroyed
  257. and warning is printed. This limit exists only to prevent
  258. simple DoS attacks, you _must_ not lower the limit artificially,
  259. but rather increase it (probably, after increasing installed memory),
  260. if network conditions require more than default value.
  261. tcp_mem - vector of 3 INTEGERs: min, pressure, max
  262. min: below this number of pages TCP is not bothered about its
  263. memory appetite.
  264. pressure: when amount of memory allocated by TCP exceeds this number
  265. of pages, TCP moderates its memory consumption and enters memory
  266. pressure mode, which is exited when memory consumption falls
  267. under "min".
  268. max: number of pages allowed for queueing by all TCP sockets.
  269. Defaults are calculated at boot time from amount of available
  270. memory.
  271. tcp_moderate_rcvbuf - BOOLEAN
  272. If set, TCP performs receive buffer auto-tuning, attempting to
  273. automatically size the buffer (no greater than tcp_rmem[2]) to
  274. match the size required by the path for full throughput. Enabled by
  275. default.
  276. tcp_mtu_probing - INTEGER
  277. Controls TCP Packetization-Layer Path MTU Discovery. Takes three
  278. values:
  279. 0 - Disabled
  280. 1 - Disabled by default, enabled when an ICMP black hole detected
  281. 2 - Always enabled, use initial MSS of tcp_base_mss.
  282. tcp_no_metrics_save - BOOLEAN
  283. By default, TCP saves various connection metrics in the route cache
  284. when the connection closes, so that connections established in the
  285. near future can use these to set initial conditions. Usually, this
  286. increases overall performance, but may sometimes cause performance
  287. degradation. If set, TCP will not cache metrics on closing
  288. connections.
  289. tcp_orphan_retries - INTEGER
  290. This value influences the timeout of a locally closed TCP connection,
  291. when RTO retransmissions remain unacknowledged.
  292. See tcp_retries2 for more details.
  293. The default value is 8.
  294. If your machine is a loaded WEB server,
  295. you should think about lowering this value, such sockets
  296. may consume significant resources. Cf. tcp_max_orphans.
  297. tcp_reordering - INTEGER
  298. Maximal reordering of packets in a TCP stream.
  299. Default: 3
  300. tcp_retrans_collapse - BOOLEAN
  301. Bug-to-bug compatibility with some broken printers.
  302. On retransmit try to send bigger packets to work around bugs in
  303. certain TCP stacks.
  304. tcp_retries1 - INTEGER
  305. This value influences the time, after which TCP decides, that
  306. something is wrong due to unacknowledged RTO retransmissions,
  307. and reports this suspicion to the network layer.
  308. See tcp_retries2 for more details.
  309. RFC 1122 recommends at least 3 retransmissions, which is the
  310. default.
  311. tcp_retries2 - INTEGER
  312. This value influences the timeout of an alive TCP connection,
  313. when RTO retransmissions remain unacknowledged.
  314. Given a value of N, a hypothetical TCP connection following
  315. exponential backoff with an initial RTO of TCP_RTO_MIN would
  316. retransmit N times before killing the connection at the (N+1)th RTO.
  317. The default value of 15 yields a hypothetical timeout of 924.6
  318. seconds and is a lower bound for the effective timeout.
  319. TCP will effectively time out at the first RTO which exceeds the
  320. hypothetical timeout.
  321. RFC 1122 recommends at least 100 seconds for the timeout,
  322. which corresponds to a value of at least 8.
  323. tcp_rfc1337 - BOOLEAN
  324. If set, the TCP stack behaves conforming to RFC1337. If unset,
  325. we are not conforming to RFC, but prevent TCP TIME_WAIT
  326. assassination.
  327. Default: 0
  328. tcp_rmem - vector of 3 INTEGERs: min, default, max
  329. min: Minimal size of receive buffer used by TCP sockets.
  330. It is guaranteed to each TCP socket, even under moderate memory
  331. pressure.
  332. Default: 1 page
  333. default: initial size of receive buffer used by TCP sockets.
  334. This value overrides net.core.rmem_default used by other protocols.
  335. Default: 87380 bytes. This value results in window of 65535 with
  336. default setting of tcp_adv_win_scale and tcp_app_win:0 and a bit
  337. less for default tcp_app_win. See below about these variables.
  338. max: maximal size of receive buffer allowed for automatically
  339. selected receiver buffers for TCP socket. This value does not override
  340. net.core.rmem_max. Calling setsockopt() with SO_RCVBUF disables
  341. automatic tuning of that socket's receive buffer size, in which
  342. case this value is ignored.
  343. Default: between 87380B and 4MB, depending on RAM size.
  344. tcp_sack - BOOLEAN
  345. Enable select acknowledgments (SACKS).
  346. tcp_slow_start_after_idle - BOOLEAN
  347. If set, provide RFC2861 behavior and time out the congestion
  348. window after an idle period. An idle period is defined at
  349. the current RTO. If unset, the congestion window will not
  350. be timed out after an idle period.
  351. Default: 1
  352. tcp_stdurg - BOOLEAN
  353. Use the Host requirements interpretation of the TCP urgent pointer field.
  354. Most hosts use the older BSD interpretation, so if you turn this on
  355. Linux might not communicate correctly with them.
  356. Default: FALSE
  357. tcp_synack_retries - INTEGER
  358. Number of times SYNACKs for a passive TCP connection attempt will
  359. be retransmitted. Should not be higher than 255. Default value
  360. is 5, which corresponds to ~180seconds.
  361. tcp_syncookies - BOOLEAN
  362. Only valid when the kernel was compiled with CONFIG_SYNCOOKIES
  363. Send out syncookies when the syn backlog queue of a socket
  364. overflows. This is to prevent against the common 'SYN flood attack'
  365. Default: FALSE
  366. Note, that syncookies is fallback facility.
  367. It MUST NOT be used to help highly loaded servers to stand
  368. against legal connection rate. If you see SYN flood warnings
  369. in your logs, but investigation shows that they occur
  370. because of overload with legal connections, you should tune
  371. another parameters until this warning disappear.
  372. See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
  373. syncookies seriously violate TCP protocol, do not allow
  374. to use TCP extensions, can result in serious degradation
  375. of some services (f.e. SMTP relaying), visible not by you,
  376. but your clients and relays, contacting you. While you see
  377. SYN flood warnings in logs not being really flooded, your server
  378. is seriously misconfigured.
  379. tcp_syn_retries - INTEGER
  380. Number of times initial SYNs for an active TCP connection attempt
  381. will be retransmitted. Should not be higher than 255. Default value
  382. is 5, which corresponds to ~180seconds.
  383. tcp_timestamps - BOOLEAN
  384. Enable timestamps as defined in RFC1323.
  385. tcp_tso_win_divisor - INTEGER
  386. This allows control over what percentage of the congestion window
  387. can be consumed by a single TSO frame.
  388. The setting of this parameter is a choice between burstiness and
  389. building larger TSO frames.
  390. Default: 3
  391. tcp_tw_recycle - BOOLEAN
  392. Enable fast recycling TIME-WAIT sockets. Default value is 0.
  393. It should not be changed without advice/request of technical
  394. experts.
  395. tcp_tw_reuse - BOOLEAN
  396. Allow to reuse TIME-WAIT sockets for new connections when it is
  397. safe from protocol viewpoint. Default value is 0.
  398. It should not be changed without advice/request of technical
  399. experts.
  400. tcp_window_scaling - BOOLEAN
  401. Enable window scaling as defined in RFC1323.
  402. tcp_wmem - vector of 3 INTEGERs: min, default, max
  403. min: Amount of memory reserved for send buffers for TCP sockets.
  404. Each TCP socket has rights to use it due to fact of its birth.
  405. Default: 1 page
  406. default: initial size of send buffer used by TCP sockets. This
  407. value overrides net.core.wmem_default used by other protocols.
  408. It is usually lower than net.core.wmem_default.
  409. Default: 16K
  410. max: Maximal amount of memory allowed for automatically tuned
  411. send buffers for TCP sockets. This value does not override
  412. net.core.wmem_max. Calling setsockopt() with SO_SNDBUF disables
  413. automatic tuning of that socket's send buffer size, in which case
  414. this value is ignored.
  415. Default: between 64K and 4MB, depending on RAM size.
  416. tcp_workaround_signed_windows - BOOLEAN
  417. If set, assume no receipt of a window scaling option means the
  418. remote TCP is broken and treats the window as a signed quantity.
  419. If unset, assume the remote TCP is not broken even if we do
  420. not receive a window scaling option from them.
  421. Default: 0
  422. tcp_dma_copybreak - INTEGER
  423. Lower limit, in bytes, of the size of socket reads that will be
  424. offloaded to a DMA copy engine, if one is present in the system
  425. and CONFIG_NET_DMA is enabled.
  426. Default: 4096
  427. tcp_thin_linear_timeouts - BOOLEAN
  428. Enable dynamic triggering of linear timeouts for thin streams.
  429. If set, a check is performed upon retransmission by timeout to
  430. determine if the stream is thin (less than 4 packets in flight).
  431. As long as the stream is found to be thin, up to 6 linear
  432. timeouts may be performed before exponential backoff mode is
  433. initiated. This improves retransmission latency for
  434. non-aggressive thin streams, often found to be time-dependent.
  435. For more information on thin streams, see
  436. Documentation/networking/tcp-thin.txt
  437. Default: 0
  438. tcp_thin_dupack - BOOLEAN
  439. Enable dynamic triggering of retransmissions after one dupACK
  440. for thin streams. If set, a check is performed upon reception
  441. of a dupACK to determine if the stream is thin (less than 4
  442. packets in flight). As long as the stream is found to be thin,
  443. data is retransmitted on the first received dupACK. This
  444. improves retransmission latency for non-aggressive thin
  445. streams, often found to be time-dependent.
  446. For more information on thin streams, see
  447. Documentation/networking/tcp-thin.txt
  448. Default: 0
  449. UDP variables:
  450. udp_mem - vector of 3 INTEGERs: min, pressure, max
  451. Number of pages allowed for queueing by all UDP sockets.
  452. min: Below this number of pages UDP is not bothered about its
  453. memory appetite. When amount of memory allocated by UDP exceeds
  454. this number, UDP starts to moderate memory usage.
  455. pressure: This value was introduced to follow format of tcp_mem.
  456. max: Number of pages allowed for queueing by all UDP sockets.
  457. Default is calculated at boot time from amount of available memory.
  458. udp_rmem_min - INTEGER
  459. Minimal size of receive buffer used by UDP sockets in moderation.
  460. Each UDP socket is able to use the size for receiving data, even if
  461. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  462. Default: 1 page
  463. udp_wmem_min - INTEGER
  464. Minimal size of send buffer used by UDP sockets in moderation.
  465. Each UDP socket is able to use the size for sending data, even if
  466. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  467. Default: 1 page
  468. CIPSOv4 Variables:
  469. cipso_cache_enable - BOOLEAN
  470. If set, enable additions to and lookups from the CIPSO label mapping
  471. cache. If unset, additions are ignored and lookups always result in a
  472. miss. However, regardless of the setting the cache is still
  473. invalidated when required when means you can safely toggle this on and
  474. off and the cache will always be "safe".
  475. Default: 1
  476. cipso_cache_bucket_size - INTEGER
  477. The CIPSO label cache consists of a fixed size hash table with each
  478. hash bucket containing a number of cache entries. This variable limits
  479. the number of entries in each hash bucket; the larger the value the
  480. more CIPSO label mappings that can be cached. When the number of
  481. entries in a given hash bucket reaches this limit adding new entries
  482. causes the oldest entry in the bucket to be removed to make room.
  483. Default: 10
  484. cipso_rbm_optfmt - BOOLEAN
  485. Enable the "Optimized Tag 1 Format" as defined in section 3.4.2.6 of
  486. the CIPSO draft specification (see Documentation/netlabel for details).
  487. This means that when set the CIPSO tag will be padded with empty
  488. categories in order to make the packet data 32-bit aligned.
  489. Default: 0
  490. cipso_rbm_structvalid - BOOLEAN
  491. If set, do a very strict check of the CIPSO option when
  492. ip_options_compile() is called. If unset, relax the checks done during
  493. ip_options_compile(). Either way is "safe" as errors are caught else
  494. where in the CIPSO processing code but setting this to 0 (False) should
  495. result in less work (i.e. it should be faster) but could cause problems
  496. with other implementations that require strict checking.
  497. Default: 0
  498. IP Variables:
  499. ip_local_port_range - 2 INTEGERS
  500. Defines the local port range that is used by TCP and UDP to
  501. choose the local port. The first number is the first, the
  502. second the last local port number. The default values are
  503. 32768 and 61000 respectively.
  504. ip_local_reserved_ports - list of comma separated ranges
  505. Specify the ports which are reserved for known third-party
  506. applications. These ports will not be used by automatic port
  507. assignments (e.g. when calling connect() or bind() with port
  508. number 0). Explicit port allocation behavior is unchanged.
  509. The format used for both input and output is a comma separated
  510. list of ranges (e.g. "1,2-4,10-10" for ports 1, 2, 3, 4 and
  511. 10). Writing to the file will clear all previously reserved
  512. ports and update the current list with the one given in the
  513. input.
  514. Note that ip_local_port_range and ip_local_reserved_ports
  515. settings are independent and both are considered by the kernel
  516. when determining which ports are available for automatic port
  517. assignments.
  518. You can reserve ports which are not in the current
  519. ip_local_port_range, e.g.:
  520. $ cat /proc/sys/net/ipv4/ip_local_port_range
  521. 32000 61000
  522. $ cat /proc/sys/net/ipv4/ip_local_reserved_ports
  523. 8080,9148
  524. although this is redundant. However such a setting is useful
  525. if later the port range is changed to a value that will
  526. include the reserved ports.
  527. Default: Empty
  528. ip_nonlocal_bind - BOOLEAN
  529. If set, allows processes to bind() to non-local IP addresses,
  530. which can be quite useful - but may break some applications.
  531. Default: 0
  532. ip_dynaddr - BOOLEAN
  533. If set non-zero, enables support for dynamic addresses.
  534. If set to a non-zero value larger than 1, a kernel log
  535. message will be printed when dynamic address rewriting
  536. occurs.
  537. Default: 0
  538. icmp_echo_ignore_all - BOOLEAN
  539. If set non-zero, then the kernel will ignore all ICMP ECHO
  540. requests sent to it.
  541. Default: 0
  542. icmp_echo_ignore_broadcasts - BOOLEAN
  543. If set non-zero, then the kernel will ignore all ICMP ECHO and
  544. TIMESTAMP requests sent to it via broadcast/multicast.
  545. Default: 1
  546. icmp_ratelimit - INTEGER
  547. Limit the maximal rates for sending ICMP packets whose type matches
  548. icmp_ratemask (see below) to specific targets.
  549. 0 to disable any limiting,
  550. otherwise the minimal space between responses in milliseconds.
  551. Default: 1000
  552. icmp_ratemask - INTEGER
  553. Mask made of ICMP types for which rates are being limited.
  554. Significant bits: IHGFEDCBA9876543210
  555. Default mask: 0000001100000011000 (6168)
  556. Bit definitions (see include/linux/icmp.h):
  557. 0 Echo Reply
  558. 3 Destination Unreachable *
  559. 4 Source Quench *
  560. 5 Redirect
  561. 8 Echo Request
  562. B Time Exceeded *
  563. C Parameter Problem *
  564. D Timestamp Request
  565. E Timestamp Reply
  566. F Info Request
  567. G Info Reply
  568. H Address Mask Request
  569. I Address Mask Reply
  570. * These are rate limited by default (see default mask above)
  571. icmp_ignore_bogus_error_responses - BOOLEAN
  572. Some routers violate RFC1122 by sending bogus responses to broadcast
  573. frames. Such violations are normally logged via a kernel warning.
  574. If this is set to TRUE, the kernel will not give such warnings, which
  575. will avoid log file clutter.
  576. Default: FALSE
  577. icmp_errors_use_inbound_ifaddr - BOOLEAN
  578. If zero, icmp error messages are sent with the primary address of
  579. the exiting interface.
  580. If non-zero, the message will be sent with the primary address of
  581. the interface that received the packet that caused the icmp error.
  582. This is the behaviour network many administrators will expect from
  583. a router. And it can make debugging complicated network layouts
  584. much easier.
  585. Note that if no primary address exists for the interface selected,
  586. then the primary address of the first non-loopback interface that
  587. has one will be used regardless of this setting.
  588. Default: 0
  589. igmp_max_memberships - INTEGER
  590. Change the maximum number of multicast groups we can subscribe to.
  591. Default: 20
  592. Theoretical maximum value is bounded by having to send a membership
  593. report in a single datagram (i.e. the report can't span multiple
  594. datagrams, or risk confusing the switch and leaving groups you don't
  595. intend to).
  596. The number of supported groups 'M' is bounded by the number of group
  597. report entries you can fit into a single datagram of 65535 bytes.
  598. M = 65536-sizeof (ip header)/(sizeof(Group record))
  599. Group records are variable length, with a minimum of 12 bytes.
  600. So net.ipv4.igmp_max_memberships should not be set higher than:
  601. (65536-24) / 12 = 5459
  602. The value 5459 assumes no IP header options, so in practice
  603. this number may be lower.
  604. conf/interface/* changes special settings per interface (where
  605. "interface" is the name of your network interface)
  606. conf/all/* is special, changes the settings for all interfaces
  607. log_martians - BOOLEAN
  608. Log packets with impossible addresses to kernel log.
  609. log_martians for the interface will be enabled if at least one of
  610. conf/{all,interface}/log_martians is set to TRUE,
  611. it will be disabled otherwise
  612. accept_redirects - BOOLEAN
  613. Accept ICMP redirect messages.
  614. accept_redirects for the interface will be enabled if:
  615. - both conf/{all,interface}/accept_redirects are TRUE in the case
  616. forwarding for the interface is enabled
  617. or
  618. - at least one of conf/{all,interface}/accept_redirects is TRUE in the
  619. case forwarding for the interface is disabled
  620. accept_redirects for the interface will be disabled otherwise
  621. default TRUE (host)
  622. FALSE (router)
  623. forwarding - BOOLEAN
  624. Enable IP forwarding on this interface.
  625. mc_forwarding - BOOLEAN
  626. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  627. and a multicast routing daemon is required.
  628. conf/all/mc_forwarding must also be set to TRUE to enable multicast
  629. routing for the interface
  630. medium_id - INTEGER
  631. Integer value used to differentiate the devices by the medium they
  632. are attached to. Two devices can have different id values when
  633. the broadcast packets are received only on one of them.
  634. The default value 0 means that the device is the only interface
  635. to its medium, value of -1 means that medium is not known.
  636. Currently, it is used to change the proxy_arp behavior:
  637. the proxy_arp feature is enabled for packets forwarded between
  638. two devices attached to different media.
  639. proxy_arp - BOOLEAN
  640. Do proxy arp.
  641. proxy_arp for the interface will be enabled if at least one of
  642. conf/{all,interface}/proxy_arp is set to TRUE,
  643. it will be disabled otherwise
  644. proxy_arp_pvlan - BOOLEAN
  645. Private VLAN proxy arp.
  646. Basically allow proxy arp replies back to the same interface
  647. (from which the ARP request/solicitation was received).
  648. This is done to support (ethernet) switch features, like RFC
  649. 3069, where the individual ports are NOT allowed to
  650. communicate with each other, but they are allowed to talk to
  651. the upstream router. As described in RFC 3069, it is possible
  652. to allow these hosts to communicate through the upstream
  653. router by proxy_arp'ing. Don't need to be used together with
  654. proxy_arp.
  655. This technology is known by different names:
  656. In RFC 3069 it is called VLAN Aggregation.
  657. Cisco and Allied Telesyn call it Private VLAN.
  658. Hewlett-Packard call it Source-Port filtering or port-isolation.
  659. Ericsson call it MAC-Forced Forwarding (RFC Draft).
  660. shared_media - BOOLEAN
  661. Send(router) or accept(host) RFC1620 shared media redirects.
  662. Overrides ip_secure_redirects.
  663. shared_media for the interface will be enabled if at least one of
  664. conf/{all,interface}/shared_media is set to TRUE,
  665. it will be disabled otherwise
  666. default TRUE
  667. secure_redirects - BOOLEAN
  668. Accept ICMP redirect messages only for gateways,
  669. listed in default gateway list.
  670. secure_redirects for the interface will be enabled if at least one of
  671. conf/{all,interface}/secure_redirects is set to TRUE,
  672. it will be disabled otherwise
  673. default TRUE
  674. send_redirects - BOOLEAN
  675. Send redirects, if router.
  676. send_redirects for the interface will be enabled if at least one of
  677. conf/{all,interface}/send_redirects is set to TRUE,
  678. it will be disabled otherwise
  679. Default: TRUE
  680. bootp_relay - BOOLEAN
  681. Accept packets with source address 0.b.c.d destined
  682. not to this host as local ones. It is supposed, that
  683. BOOTP relay daemon will catch and forward such packets.
  684. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  685. for the interface
  686. default FALSE
  687. Not Implemented Yet.
  688. accept_source_route - BOOLEAN
  689. Accept packets with SRR option.
  690. conf/all/accept_source_route must also be set to TRUE to accept packets
  691. with SRR option on the interface
  692. default TRUE (router)
  693. FALSE (host)
  694. accept_local - BOOLEAN
  695. Accept packets with local source addresses. In combination with
  696. suitable routing, this can be used to direct packets between two
  697. local interfaces over the wire and have them accepted properly.
  698. default FALSE
  699. rp_filter - INTEGER
  700. 0 - No source validation.
  701. 1 - Strict mode as defined in RFC3704 Strict Reverse Path
  702. Each incoming packet is tested against the FIB and if the interface
  703. is not the best reverse path the packet check will fail.
  704. By default failed packets are discarded.
  705. 2 - Loose mode as defined in RFC3704 Loose Reverse Path
  706. Each incoming packet's source address is also tested against the FIB
  707. and if the source address is not reachable via any interface
  708. the packet check will fail.
  709. Current recommended practice in RFC3704 is to enable strict mode
  710. to prevent IP spoofing from DDos attacks. If using asymmetric routing
  711. or other complicated routing, then loose mode is recommended.
  712. The max value from conf/{all,interface}/rp_filter is used
  713. when doing source validation on the {interface}.
  714. Default value is 0. Note that some distributions enable it
  715. in startup scripts.
  716. arp_filter - BOOLEAN
  717. 1 - Allows you to have multiple network interfaces on the same
  718. subnet, and have the ARPs for each interface be answered
  719. based on whether or not the kernel would route a packet from
  720. the ARP'd IP out that interface (therefore you must use source
  721. based routing for this to work). In other words it allows control
  722. of which cards (usually 1) will respond to an arp request.
  723. 0 - (default) The kernel can respond to arp requests with addresses
  724. from other interfaces. This may seem wrong but it usually makes
  725. sense, because it increases the chance of successful communication.
  726. IP addresses are owned by the complete host on Linux, not by
  727. particular interfaces. Only for more complex setups like load-
  728. balancing, does this behaviour cause problems.
  729. arp_filter for the interface will be enabled if at least one of
  730. conf/{all,interface}/arp_filter is set to TRUE,
  731. it will be disabled otherwise
  732. arp_announce - INTEGER
  733. Define different restriction levels for announcing the local
  734. source IP address from IP packets in ARP requests sent on
  735. interface:
  736. 0 - (default) Use any local address, configured on any interface
  737. 1 - Try to avoid local addresses that are not in the target's
  738. subnet for this interface. This mode is useful when target
  739. hosts reachable via this interface require the source IP
  740. address in ARP requests to be part of their logical network
  741. configured on the receiving interface. When we generate the
  742. request we will check all our subnets that include the
  743. target IP and will preserve the source address if it is from
  744. such subnet. If there is no such subnet we select source
  745. address according to the rules for level 2.
  746. 2 - Always use the best local address for this target.
  747. In this mode we ignore the source address in the IP packet
  748. and try to select local address that we prefer for talks with
  749. the target host. Such local address is selected by looking
  750. for primary IP addresses on all our subnets on the outgoing
  751. interface that include the target IP address. If no suitable
  752. local address is found we select the first local address
  753. we have on the outgoing interface or on all other interfaces,
  754. with the hope we will receive reply for our request and
  755. even sometimes no matter the source IP address we announce.
  756. The max value from conf/{all,interface}/arp_announce is used.
  757. Increasing the restriction level gives more chance for
  758. receiving answer from the resolved target while decreasing
  759. the level announces more valid sender's information.
  760. arp_ignore - INTEGER
  761. Define different modes for sending replies in response to
  762. received ARP requests that resolve local target IP addresses:
  763. 0 - (default): reply for any local target IP address, configured
  764. on any interface
  765. 1 - reply only if the target IP address is local address
  766. configured on the incoming interface
  767. 2 - reply only if the target IP address is local address
  768. configured on the incoming interface and both with the
  769. sender's IP address are part from same subnet on this interface
  770. 3 - do not reply for local addresses configured with scope host,
  771. only resolutions for global and link addresses are replied
  772. 4-7 - reserved
  773. 8 - do not reply for all local addresses
  774. The max value from conf/{all,interface}/arp_ignore is used
  775. when ARP request is received on the {interface}
  776. arp_notify - BOOLEAN
  777. Define mode for notification of address and device changes.
  778. 0 - (default): do nothing
  779. 1 - Generate gratuitous arp requests when device is brought up
  780. or hardware address changes.
  781. arp_accept - BOOLEAN
  782. Define behavior for gratuitous ARP frames who's IP is not
  783. already present in the ARP table:
  784. 0 - don't create new entries in the ARP table
  785. 1 - create new entries in the ARP table
  786. Both replies and requests type gratuitous arp will trigger the
  787. ARP table to be updated, if this setting is on.
  788. If the ARP table already contains the IP address of the
  789. gratuitous arp frame, the arp table will be updated regardless
  790. if this setting is on or off.
  791. app_solicit - INTEGER
  792. The maximum number of probes to send to the user space ARP daemon
  793. via netlink before dropping back to multicast probes (see
  794. mcast_solicit). Defaults to 0.
  795. disable_policy - BOOLEAN
  796. Disable IPSEC policy (SPD) for this interface
  797. disable_xfrm - BOOLEAN
  798. Disable IPSEC encryption on this interface, whatever the policy
  799. tag - INTEGER
  800. Allows you to write a number, which can be used as required.
  801. Default value is 0.
  802. Alexey Kuznetsov.
  803. kuznet@ms2.inr.ac.ru
  804. Updated by:
  805. Andi Kleen
  806. ak@muc.de
  807. Nicolas Delon
  808. delon.nicolas@wanadoo.fr
  809. /proc/sys/net/ipv6/* Variables:
  810. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  811. apply to IPv6 [XXX?].
  812. bindv6only - BOOLEAN
  813. Default value for IPV6_V6ONLY socket option,
  814. which restricts use of the IPv6 socket to IPv6 communication
  815. only.
  816. TRUE: disable IPv4-mapped address feature
  817. FALSE: enable IPv4-mapped address feature
  818. Default: FALSE (as specified in RFC3493)
  819. IPv6 Fragmentation:
  820. ip6frag_high_thresh - INTEGER
  821. Maximum memory used to reassemble IPv6 fragments. When
  822. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  823. the fragment handler will toss packets until ip6frag_low_thresh
  824. is reached.
  825. ip6frag_low_thresh - INTEGER
  826. See ip6frag_high_thresh
  827. ip6frag_time - INTEGER
  828. Time in seconds to keep an IPv6 fragment in memory.
  829. ip6frag_secret_interval - INTEGER
  830. Regeneration interval (in seconds) of the hash secret (or lifetime
  831. for the hash secret) for IPv6 fragments.
  832. Default: 600
  833. conf/default/*:
  834. Change the interface-specific default settings.
  835. conf/all/*:
  836. Change all the interface-specific settings.
  837. [XXX: Other special features than forwarding?]
  838. conf/all/forwarding - BOOLEAN
  839. Enable global IPv6 forwarding between all interfaces.
  840. IPv4 and IPv6 work differently here; e.g. netfilter must be used
  841. to control which interfaces may forward packets and which not.
  842. This also sets all interfaces' Host/Router setting
  843. 'forwarding' to the specified value. See below for details.
  844. This referred to as global forwarding.
  845. proxy_ndp - BOOLEAN
  846. Do proxy ndp.
  847. conf/interface/*:
  848. Change special settings per interface.
  849. The functional behaviour for certain settings is different
  850. depending on whether local forwarding is enabled or not.
  851. accept_ra - INTEGER
  852. Accept Router Advertisements; autoconfigure using them.
  853. It also determines whether or not to transmit Router
  854. Solicitations. If and only if the functional setting is to
  855. accept Router Advertisements, Router Solicitations will be
  856. transmitted.
  857. Possible values are:
  858. 0 Do not accept Router Advertisements.
  859. 1 Accept Router Advertisements if forwarding is disabled.
  860. 2 Overrule forwarding behaviour. Accept Router Advertisements
  861. even if forwarding is enabled.
  862. Functional default: enabled if local forwarding is disabled.
  863. disabled if local forwarding is enabled.
  864. accept_ra_defrtr - BOOLEAN
  865. Learn default router in Router Advertisement.
  866. Functional default: enabled if accept_ra is enabled.
  867. disabled if accept_ra is disabled.
  868. accept_ra_pinfo - BOOLEAN
  869. Learn Prefix Information in Router Advertisement.
  870. Functional default: enabled if accept_ra is enabled.
  871. disabled if accept_ra is disabled.
  872. accept_ra_rt_info_max_plen - INTEGER
  873. Maximum prefix length of Route Information in RA.
  874. Route Information w/ prefix larger than or equal to this
  875. variable shall be ignored.
  876. Functional default: 0 if accept_ra_rtr_pref is enabled.
  877. -1 if accept_ra_rtr_pref is disabled.
  878. accept_ra_rtr_pref - BOOLEAN
  879. Accept Router Preference in RA.
  880. Functional default: enabled if accept_ra is enabled.
  881. disabled if accept_ra is disabled.
  882. accept_redirects - BOOLEAN
  883. Accept Redirects.
  884. Functional default: enabled if local forwarding is disabled.
  885. disabled if local forwarding is enabled.
  886. accept_source_route - INTEGER
  887. Accept source routing (routing extension header).
  888. >= 0: Accept only routing header type 2.
  889. < 0: Do not accept routing header.
  890. Default: 0
  891. autoconf - BOOLEAN
  892. Autoconfigure addresses using Prefix Information in Router
  893. Advertisements.
  894. Functional default: enabled if accept_ra_pinfo is enabled.
  895. disabled if accept_ra_pinfo is disabled.
  896. dad_transmits - INTEGER
  897. The amount of Duplicate Address Detection probes to send.
  898. Default: 1
  899. forwarding - INTEGER
  900. Configure interface-specific Host/Router behaviour.
  901. Note: It is recommended to have the same setting on all
  902. interfaces; mixed router/host scenarios are rather uncommon.
  903. Possible values are:
  904. 0 Forwarding disabled
  905. 1 Forwarding enabled
  906. FALSE (0):
  907. By default, Host behaviour is assumed. This means:
  908. 1. IsRouter flag is not set in Neighbour Advertisements.
  909. 2. If accept_ra is TRUE (default), transmit Router
  910. Solicitations.
  911. 3. If accept_ra is TRUE (default), accept Router
  912. Advertisements (and do autoconfiguration).
  913. 4. If accept_redirects is TRUE (default), accept Redirects.
  914. TRUE (1):
  915. If local forwarding is enabled, Router behaviour is assumed.
  916. This means exactly the reverse from the above:
  917. 1. IsRouter flag is set in Neighbour Advertisements.
  918. 2. Router Solicitations are not sent unless accept_ra is 2.
  919. 3. Router Advertisements are ignored unless accept_ra is 2.
  920. 4. Redirects are ignored.
  921. Default: 0 (disabled) if global forwarding is disabled (default),
  922. otherwise 1 (enabled).
  923. hop_limit - INTEGER
  924. Default Hop Limit to set.
  925. Default: 64
  926. mtu - INTEGER
  927. Default Maximum Transfer Unit
  928. Default: 1280 (IPv6 required minimum)
  929. router_probe_interval - INTEGER
  930. Minimum interval (in seconds) between Router Probing described
  931. in RFC4191.
  932. Default: 60
  933. router_solicitation_delay - INTEGER
  934. Number of seconds to wait after interface is brought up
  935. before sending Router Solicitations.
  936. Default: 1
  937. router_solicitation_interval - INTEGER
  938. Number of seconds to wait between Router Solicitations.
  939. Default: 4
  940. router_solicitations - INTEGER
  941. Number of Router Solicitations to send until assuming no
  942. routers are present.
  943. Default: 3
  944. use_tempaddr - INTEGER
  945. Preference for Privacy Extensions (RFC3041).
  946. <= 0 : disable Privacy Extensions
  947. == 1 : enable Privacy Extensions, but prefer public
  948. addresses over temporary addresses.
  949. > 1 : enable Privacy Extensions and prefer temporary
  950. addresses over public addresses.
  951. Default: 0 (for most devices)
  952. -1 (for point-to-point devices and loopback devices)
  953. temp_valid_lft - INTEGER
  954. valid lifetime (in seconds) for temporary addresses.
  955. Default: 604800 (7 days)
  956. temp_prefered_lft - INTEGER
  957. Preferred lifetime (in seconds) for temporary addresses.
  958. Default: 86400 (1 day)
  959. max_desync_factor - INTEGER
  960. Maximum value for DESYNC_FACTOR, which is a random value
  961. that ensures that clients don't synchronize with each
  962. other and generate new addresses at exactly the same time.
  963. value is in seconds.
  964. Default: 600
  965. regen_max_retry - INTEGER
  966. Number of attempts before give up attempting to generate
  967. valid temporary addresses.
  968. Default: 5
  969. max_addresses - INTEGER
  970. Maximum number of autoconfigured addresses per interface. Setting
  971. to zero disables the limitation. It is not recommended to set this
  972. value too large (or to zero) because it would be an easy way to
  973. crash the kernel by allowing too many addresses to be created.
  974. Default: 16
  975. disable_ipv6 - BOOLEAN
  976. Disable IPv6 operation. If accept_dad is set to 2, this value
  977. will be dynamically set to TRUE if DAD fails for the link-local
  978. address.
  979. Default: FALSE (enable IPv6 operation)
  980. When this value is changed from 1 to 0 (IPv6 is being enabled),
  981. it will dynamically create a link-local address on the given
  982. interface and start Duplicate Address Detection, if necessary.
  983. When this value is changed from 0 to 1 (IPv6 is being disabled),
  984. it will dynamically delete all address on the given interface.
  985. accept_dad - INTEGER
  986. Whether to accept DAD (Duplicate Address Detection).
  987. 0: Disable DAD
  988. 1: Enable DAD (default)
  989. 2: Enable DAD, and disable IPv6 operation if MAC-based duplicate
  990. link-local address has been found.
  991. force_tllao - BOOLEAN
  992. Enable sending the target link-layer address option even when
  993. responding to a unicast neighbor solicitation.
  994. Default: FALSE
  995. Quoting from RFC 2461, section 4.4, Target link-layer address:
  996. "The option MUST be included for multicast solicitations in order to
  997. avoid infinite Neighbor Solicitation "recursion" when the peer node
  998. does not have a cache entry to return a Neighbor Advertisements
  999. message. When responding to unicast solicitations, the option can be
  1000. omitted since the sender of the solicitation has the correct link-
  1001. layer address; otherwise it would not have be able to send the unicast
  1002. solicitation in the first place. However, including the link-layer
  1003. address in this case adds little overhead and eliminates a potential
  1004. race condition where the sender deletes the cached link-layer address
  1005. prior to receiving a response to a previous solicitation."
  1006. icmp/*:
  1007. ratelimit - INTEGER
  1008. Limit the maximal rates for sending ICMPv6 packets.
  1009. 0 to disable any limiting,
  1010. otherwise the minimal space between responses in milliseconds.
  1011. Default: 1000
  1012. IPv6 Update by:
  1013. Pekka Savola <pekkas@netcore.fi>
  1014. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  1015. /proc/sys/net/bridge/* Variables:
  1016. bridge-nf-call-arptables - BOOLEAN
  1017. 1 : pass bridged ARP traffic to arptables' FORWARD chain.
  1018. 0 : disable this.
  1019. Default: 1
  1020. bridge-nf-call-iptables - BOOLEAN
  1021. 1 : pass bridged IPv4 traffic to iptables' chains.
  1022. 0 : disable this.
  1023. Default: 1
  1024. bridge-nf-call-ip6tables - BOOLEAN
  1025. 1 : pass bridged IPv6 traffic to ip6tables' chains.
  1026. 0 : disable this.
  1027. Default: 1
  1028. bridge-nf-filter-vlan-tagged - BOOLEAN
  1029. 1 : pass bridged vlan-tagged ARP/IP/IPv6 traffic to {arp,ip,ip6}tables.
  1030. 0 : disable this.
  1031. Default: 1
  1032. bridge-nf-filter-pppoe-tagged - BOOLEAN
  1033. 1 : pass bridged pppoe-tagged IP/IPv6 traffic to {ip,ip6}tables.
  1034. 0 : disable this.
  1035. Default: 1
  1036. proc/sys/net/sctp/* Variables:
  1037. addip_enable - BOOLEAN
  1038. Enable or disable extension of Dynamic Address Reconfiguration
  1039. (ADD-IP) functionality specified in RFC5061. This extension provides
  1040. the ability to dynamically add and remove new addresses for the SCTP
  1041. associations.
  1042. 1: Enable extension.
  1043. 0: Disable extension.
  1044. Default: 0
  1045. addip_noauth_enable - BOOLEAN
  1046. Dynamic Address Reconfiguration (ADD-IP) requires the use of
  1047. authentication to protect the operations of adding or removing new
  1048. addresses. This requirement is mandated so that unauthorized hosts
  1049. would not be able to hijack associations. However, older
  1050. implementations may not have implemented this requirement while
  1051. allowing the ADD-IP extension. For reasons of interoperability,
  1052. we provide this variable to control the enforcement of the
  1053. authentication requirement.
  1054. 1: Allow ADD-IP extension to be used without authentication. This
  1055. should only be set in a closed environment for interoperability
  1056. with older implementations.
  1057. 0: Enforce the authentication requirement
  1058. Default: 0
  1059. auth_enable - BOOLEAN
  1060. Enable or disable Authenticated Chunks extension. This extension
  1061. provides the ability to send and receive authenticated chunks and is
  1062. required for secure operation of Dynamic Address Reconfiguration
  1063. (ADD-IP) extension.
  1064. 1: Enable this extension.
  1065. 0: Disable this extension.
  1066. Default: 0
  1067. prsctp_enable - BOOLEAN
  1068. Enable or disable the Partial Reliability extension (RFC3758) which
  1069. is used to notify peers that a given DATA should no longer be expected.
  1070. 1: Enable extension
  1071. 0: Disable
  1072. Default: 1
  1073. max_burst - INTEGER
  1074. The limit of the number of new packets that can be initially sent. It
  1075. controls how bursty the generated traffic can be.
  1076. Default: 4
  1077. association_max_retrans - INTEGER
  1078. Set the maximum number for retransmissions that an association can
  1079. attempt deciding that the remote end is unreachable. If this value
  1080. is exceeded, the association is terminated.
  1081. Default: 10
  1082. max_init_retransmits - INTEGER
  1083. The maximum number of retransmissions of INIT and COOKIE-ECHO chunks
  1084. that an association will attempt before declaring the destination
  1085. unreachable and terminating.
  1086. Default: 8
  1087. path_max_retrans - INTEGER
  1088. The maximum number of retransmissions that will be attempted on a given
  1089. path. Once this threshold is exceeded, the path is considered
  1090. unreachable, and new traffic will use a different path when the
  1091. association is multihomed.
  1092. Default: 5
  1093. rto_initial - INTEGER
  1094. The initial round trip timeout value in milliseconds that will be used
  1095. in calculating round trip times. This is the initial time interval
  1096. for retransmissions.
  1097. Default: 3000
  1098. rto_max - INTEGER
  1099. The maximum value (in milliseconds) of the round trip timeout. This
  1100. is the largest time interval that can elapse between retransmissions.
  1101. Default: 60000
  1102. rto_min - INTEGER
  1103. The minimum value (in milliseconds) of the round trip timeout. This
  1104. is the smallest time interval the can elapse between retransmissions.
  1105. Default: 1000
  1106. hb_interval - INTEGER
  1107. The interval (in milliseconds) between HEARTBEAT chunks. These chunks
  1108. are sent at the specified interval on idle paths to probe the state of
  1109. a given path between 2 associations.
  1110. Default: 30000
  1111. sack_timeout - INTEGER
  1112. The amount of time (in milliseconds) that the implementation will wait
  1113. to send a SACK.
  1114. Default: 200
  1115. valid_cookie_life - INTEGER
  1116. The default lifetime of the SCTP cookie (in milliseconds). The cookie
  1117. is used during association establishment.
  1118. Default: 60000
  1119. cookie_preserve_enable - BOOLEAN
  1120. Enable or disable the ability to extend the lifetime of the SCTP cookie
  1121. that is used during the establishment phase of SCTP association
  1122. 1: Enable cookie lifetime extension.
  1123. 0: Disable
  1124. Default: 1
  1125. rcvbuf_policy - INTEGER
  1126. Determines if the receive buffer is attributed to the socket or to
  1127. association. SCTP supports the capability to create multiple
  1128. associations on a single socket. When using this capability, it is
  1129. possible that a single stalled association that's buffering a lot
  1130. of data may block other associations from delivering their data by
  1131. consuming all of the receive buffer space. To work around this,
  1132. the rcvbuf_policy could be set to attribute the receiver buffer space
  1133. to each association instead of the socket. This prevents the described
  1134. blocking.
  1135. 1: rcvbuf space is per association
  1136. 0: recbuf space is per socket
  1137. Default: 0
  1138. sndbuf_policy - INTEGER
  1139. Similar to rcvbuf_policy above, this applies to send buffer space.
  1140. 1: Send buffer is tracked per association
  1141. 0: Send buffer is tracked per socket.
  1142. Default: 0
  1143. sctp_mem - vector of 3 INTEGERs: min, pressure, max
  1144. Number of pages allowed for queueing by all SCTP sockets.
  1145. min: Below this number of pages SCTP is not bothered about its
  1146. memory appetite. When amount of memory allocated by SCTP exceeds
  1147. this number, SCTP starts to moderate memory usage.
  1148. pressure: This value was introduced to follow format of tcp_mem.
  1149. max: Number of pages allowed for queueing by all SCTP sockets.
  1150. Default is calculated at boot time from amount of available memory.
  1151. sctp_rmem - vector of 3 INTEGERs: min, default, max
  1152. Only the first value ("min") is used, "default" and "max" are
  1153. ignored.
  1154. min: Minimal size of receive buffer used by SCTP socket.
  1155. It is guaranteed to each SCTP socket (but not association) even
  1156. under moderate memory pressure.
  1157. Default: 1 page
  1158. sctp_wmem - vector of 3 INTEGERs: min, default, max
  1159. Currently this tunable has no effect.
  1160. addr_scope_policy - INTEGER
  1161. Control IPv4 address scoping - draft-stewart-tsvwg-sctp-ipv4-00
  1162. 0 - Disable IPv4 address scoping
  1163. 1 - Enable IPv4 address scoping
  1164. 2 - Follow draft but allow IPv4 private addresses
  1165. 3 - Follow draft but allow IPv4 link local addresses
  1166. Default: 1
  1167. /proc/sys/net/core/*
  1168. Please see: Documentation/sysctl/net.txt for descriptions of these entries.
  1169. /proc/sys/net/unix/*
  1170. max_dgram_qlen - INTEGER
  1171. The maximum length of dgram socket receive queue
  1172. Default: 10
  1173. UNDOCUMENTED:
  1174. /proc/sys/net/irda/*
  1175. fast_poll_increase FIXME
  1176. warn_noreply_time FIXME
  1177. discovery_slots FIXME
  1178. slot_timeout FIXME
  1179. max_baud_rate FIXME
  1180. discovery_timeout FIXME
  1181. lap_keepalive_time FIXME
  1182. max_noreply_time FIXME
  1183. max_tx_data_size FIXME
  1184. max_tx_window FIXME
  1185. min_tx_turn_time FIXME