ip-sysctl.txt 58 KB

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