ip-sysctl.rst 122 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787
  1. .. SPDX-License-Identifier: GPL-2.0
  2. =========
  3. IP Sysctl
  4. =========
  5. /proc/sys/net/ipv4/* Variables
  6. ==============================
  7. ip_forward - BOOLEAN
  8. Forward Packets between interfaces.
  9. This variable is special, its change resets all configuration
  10. parameters to their default state (RFC1122 for hosts, RFC1812
  11. for routers)
  12. Possible values:
  13. - 0 (disabled)
  14. - 1 (enabled)
  15. Default: 0 (disabled)
  16. ip_default_ttl - INTEGER
  17. Default value of TTL field (Time To Live) for outgoing (but not
  18. forwarded) IP packets. Should be between 1 and 255 inclusive.
  19. Default: 64 (as recommended by RFC1700)
  20. ip_no_pmtu_disc - INTEGER
  21. Disable Path MTU Discovery. If enabled in mode 1 and a
  22. fragmentation-required ICMP is received, the PMTU to this
  23. destination will be set to the smallest of the old MTU to
  24. this destination and min_pmtu (see below). You will need
  25. to raise min_pmtu to the smallest interface MTU on your system
  26. manually if you want to avoid locally generated fragments.
  27. In mode 2 incoming Path MTU Discovery messages will be
  28. discarded. Outgoing frames are handled the same as in mode 1,
  29. implicitly setting IP_PMTUDISC_DONT on every created socket.
  30. Mode 3 is a hardened pmtu discover mode. The kernel will only
  31. accept fragmentation-needed errors if the underlying protocol
  32. can verify them besides a plain socket lookup. Current
  33. protocols for which pmtu events will be honored are TCP and
  34. SCTP as they verify e.g. the sequence number or the
  35. association. This mode should not be enabled globally but is
  36. only intended to secure e.g. name servers in namespaces where
  37. TCP path mtu must still work but path MTU information of other
  38. protocols should be discarded. If enabled globally this mode
  39. could break other protocols.
  40. Possible values: 0-3
  41. Default: FALSE
  42. min_pmtu - INTEGER
  43. default 552 - minimum Path MTU. Unless this is changed manually,
  44. each cached pmtu will never be lower than this setting.
  45. ip_forward_use_pmtu - BOOLEAN
  46. By default we don't trust protocol path MTUs while forwarding
  47. because they could be easily forged and can lead to unwanted
  48. fragmentation by the router.
  49. You only need to enable this if you have user-space software
  50. which tries to discover path mtus by itself and depends on the
  51. kernel honoring this information. This is normally not the
  52. case.
  53. Possible values:
  54. - 0 (disabled)
  55. - 1 (enabled)
  56. Default: 0 (disabled)
  57. fwmark_reflect - BOOLEAN
  58. Controls the fwmark of kernel-generated IPv4 reply packets that are not
  59. associated with a socket for example, TCP RSTs or ICMP echo replies).
  60. If disabled, these packets have a fwmark of zero. If enabled, they have the
  61. fwmark of the packet they are replying to.
  62. Possible values:
  63. - 0 (disabled)
  64. - 1 (enabled)
  65. Default: 0 (disabled)
  66. fib_multipath_use_neigh - BOOLEAN
  67. Use status of existing neighbor entry when determining nexthop for
  68. multipath routes. If disabled, neighbor information is not used and
  69. packets could be directed to a failed nexthop. Only valid for kernels
  70. built with CONFIG_IP_ROUTE_MULTIPATH enabled.
  71. Possible values:
  72. - 0 (disabled)
  73. - 1 (enabled)
  74. Default: 0 (disabled)
  75. fib_multipath_hash_policy - INTEGER
  76. Controls which hash policy to use for multipath routes. Only valid
  77. for kernels built with CONFIG_IP_ROUTE_MULTIPATH enabled.
  78. Default: 0 (Layer 3)
  79. Possible values:
  80. - 0 - Layer 3
  81. - 1 - Layer 4
  82. - 2 - Layer 3 or inner Layer 3 if present
  83. - 3 - Custom multipath hash. Fields used for multipath hash calculation
  84. are determined by fib_multipath_hash_fields sysctl
  85. fib_multipath_hash_fields - UNSIGNED INTEGER
  86. When fib_multipath_hash_policy is set to 3 (custom multipath hash), the
  87. fields used for multipath hash calculation are determined by this
  88. sysctl.
  89. This value is a bitmask which enables various fields for multipath hash
  90. calculation.
  91. Possible fields are:
  92. ====== ============================
  93. 0x0001 Source IP address
  94. 0x0002 Destination IP address
  95. 0x0004 IP protocol
  96. 0x0008 Unused (Flow Label)
  97. 0x0010 Source port
  98. 0x0020 Destination port
  99. 0x0040 Inner source IP address
  100. 0x0080 Inner destination IP address
  101. 0x0100 Inner IP protocol
  102. 0x0200 Inner Flow Label
  103. 0x0400 Inner source port
  104. 0x0800 Inner destination port
  105. ====== ============================
  106. Default: 0x0007 (source IP, destination IP and IP protocol)
  107. fib_multipath_hash_seed - UNSIGNED INTEGER
  108. The seed value used when calculating hash for multipath routes. Applies
  109. to both IPv4 and IPv6 datapath. Only present for kernels built with
  110. CONFIG_IP_ROUTE_MULTIPATH enabled.
  111. When set to 0, the seed value used for multipath routing defaults to an
  112. internal random-generated one.
  113. The actual hashing algorithm is not specified -- there is no guarantee
  114. that a next hop distribution effected by a given seed will keep stable
  115. across kernel versions.
  116. Default: 0 (random)
  117. fib_sync_mem - UNSIGNED INTEGER
  118. Amount of dirty memory from fib entries that can be backlogged before
  119. synchronize_rcu is forced.
  120. Default: 512kB Minimum: 64kB Maximum: 64MB
  121. ip_forward_update_priority - INTEGER
  122. Whether to update SKB priority from "TOS" field in IPv4 header after it
  123. is forwarded. The new SKB priority is mapped from TOS field value
  124. according to an rt_tos2priority table (see e.g. man tc-prio).
  125. Default: 1 (Update priority.)
  126. Possible values:
  127. - 0 - Do not update priority.
  128. - 1 - Update priority.
  129. route/max_size - INTEGER
  130. Maximum number of routes allowed in the kernel. Increase
  131. this when using large numbers of interfaces and/or routes.
  132. From linux kernel 3.6 onwards, this is deprecated for ipv4
  133. as route cache is no longer used.
  134. From linux kernel 6.3 onwards, this is deprecated for ipv6
  135. as garbage collection manages cached route entries.
  136. neigh/default/gc_thresh1 - INTEGER
  137. Minimum number of entries to keep. Garbage collector will not
  138. purge entries if there are fewer than this number.
  139. Default: 128
  140. neigh/default/gc_thresh2 - INTEGER
  141. Threshold when garbage collector becomes more aggressive about
  142. purging entries. Entries older than 5 seconds will be cleared
  143. when over this number.
  144. Default: 512
  145. neigh/default/gc_thresh3 - INTEGER
  146. Maximum number of non-PERMANENT neighbor entries allowed. Increase
  147. this when using large numbers of interfaces and when communicating
  148. with large numbers of directly-connected peers.
  149. Default: 1024
  150. neigh/default/unres_qlen_bytes - INTEGER
  151. The maximum number of bytes which may be used by packets
  152. queued for each unresolved address by other network layers.
  153. (added in linux 3.3)
  154. Setting negative value is meaningless and will return error.
  155. Default: SK_WMEM_DEFAULT, (same as net.core.wmem_default).
  156. Exact value depends on architecture and kernel options,
  157. but should be enough to allow queuing 256 packets
  158. of medium size.
  159. neigh/default/unres_qlen - INTEGER
  160. The maximum number of packets which may be queued for each
  161. unresolved address by other network layers.
  162. (deprecated in linux 3.3) : use unres_qlen_bytes instead.
  163. Prior to linux 3.3, the default value is 3 which may cause
  164. unexpected packet loss. The current default value is calculated
  165. according to default value of unres_qlen_bytes and true size of
  166. packet.
  167. Default: 101
  168. neigh/default/interval_probe_time_ms - INTEGER
  169. The probe interval for neighbor entries with NTF_MANAGED flag,
  170. the min value is 1.
  171. Default: 5000
  172. mtu_expires - INTEGER
  173. Time, in seconds, that cached PMTU information is kept.
  174. min_adv_mss - INTEGER
  175. The advertised MSS depends on the first hop route MTU, but will
  176. never be lower than this setting.
  177. fib_notify_on_flag_change - INTEGER
  178. Whether to emit RTM_NEWROUTE notifications whenever RTM_F_OFFLOAD/
  179. RTM_F_TRAP/RTM_F_OFFLOAD_FAILED flags are changed.
  180. After installing a route to the kernel, user space receives an
  181. acknowledgment, which means the route was installed in the kernel,
  182. but not necessarily in hardware.
  183. It is also possible for a route already installed in hardware to change
  184. its action and therefore its flags. For example, a host route that is
  185. trapping packets can be "promoted" to perform decapsulation following
  186. the installation of an IPinIP/VXLAN tunnel.
  187. The notifications will indicate to user-space the state of the route.
  188. Default: 0 (Do not emit notifications.)
  189. Possible values:
  190. - 0 - Do not emit notifications.
  191. - 1 - Emit notifications.
  192. - 2 - Emit notifications only for RTM_F_OFFLOAD_FAILED flag change.
  193. IP Fragmentation:
  194. ipfrag_high_thresh - LONG INTEGER
  195. Maximum memory used to reassemble IP fragments.
  196. ipfrag_low_thresh - LONG INTEGER
  197. (Obsolete since linux-4.17)
  198. Maximum memory used to reassemble IP fragments before the kernel
  199. begins to remove incomplete fragment queues to free up resources.
  200. The kernel still accepts new fragments for defragmentation.
  201. ipfrag_time - INTEGER
  202. Time in seconds to keep an IP fragment in memory.
  203. ipfrag_max_dist - INTEGER
  204. ipfrag_max_dist is a non-negative integer value which defines the
  205. maximum "disorder" which is allowed among fragments which share a
  206. common IP source address. Note that reordering of packets is
  207. not unusual, but if a large number of fragments arrive from a source
  208. IP address while a particular fragment queue remains incomplete, it
  209. probably indicates that one or more fragments belonging to that queue
  210. have been lost. When ipfrag_max_dist is positive, an additional check
  211. is done on fragments before they are added to a reassembly queue - if
  212. ipfrag_max_dist (or more) fragments have arrived from a particular IP
  213. address between additions to any IP fragment queue using that source
  214. address, it's presumed that one or more fragments in the queue are
  215. lost. The existing fragment queue will be dropped, and a new one
  216. started. An ipfrag_max_dist value of zero disables this check.
  217. Using a very small value, e.g. 1 or 2, for ipfrag_max_dist can
  218. result in unnecessarily dropping fragment queues when normal
  219. reordering of packets occurs, which could lead to poor application
  220. performance. Using a very large value, e.g. 50000, increases the
  221. likelihood of incorrectly reassembling IP fragments that originate
  222. from different IP datagrams, which could result in data corruption.
  223. Default: 64
  224. bc_forwarding - INTEGER
  225. bc_forwarding enables the feature described in rfc1812#section-5.3.5.2
  226. and rfc2644. It allows the router to forward directed broadcast.
  227. To enable this feature, the 'all' entry and the input interface entry
  228. should be set to 1.
  229. Default: 0
  230. INET peer storage
  231. =================
  232. inet_peer_threshold - INTEGER
  233. The approximate size of the storage. Starting from this threshold
  234. entries will be thrown aggressively. This threshold also determines
  235. entries' time-to-live and time intervals between garbage collection
  236. passes. More entries, less time-to-live, less GC interval.
  237. inet_peer_minttl - INTEGER
  238. Minimum time-to-live of entries. Should be enough to cover fragment
  239. time-to-live on the reassembling side. This minimum time-to-live is
  240. guaranteed if the pool size is less than inet_peer_threshold.
  241. Measured in seconds.
  242. inet_peer_maxttl - INTEGER
  243. Maximum time-to-live of entries. Unused entries will expire after
  244. this period of time if there is no memory pressure on the pool (i.e.
  245. when the number of entries in the pool is very small).
  246. Measured in seconds.
  247. TCP variables
  248. =============
  249. somaxconn - INTEGER
  250. Limit of socket listen() backlog, known in userspace as SOMAXCONN.
  251. Defaults to 4096. (Was 128 before linux-5.4)
  252. See also tcp_max_syn_backlog for additional tuning for TCP sockets.
  253. tcp_abort_on_overflow - BOOLEAN
  254. If listening service is too slow to accept new connections,
  255. reset them. Default state is FALSE. It means that if overflow
  256. occurred due to a burst, connection will recover. Enable this
  257. option _only_ if you are really sure that listening daemon
  258. cannot be tuned to accept connections faster. Enabling this
  259. option can harm clients of your server.
  260. tcp_adv_win_scale - INTEGER
  261. Obsolete since linux-6.6
  262. Count buffering overhead as bytes/2^tcp_adv_win_scale
  263. (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
  264. if it is <= 0.
  265. Possible values are [-31, 31], inclusive.
  266. Default: 1
  267. tcp_allowed_congestion_control - STRING
  268. Show/set the congestion control choices available to non-privileged
  269. processes. The list is a subset of those listed in
  270. tcp_available_congestion_control.
  271. Default is "reno" and the default setting (tcp_congestion_control).
  272. tcp_app_win - INTEGER
  273. Reserve max(window/2^tcp_app_win, mss) of window for application
  274. buffer. Value 0 is special, it means that nothing is reserved.
  275. Possible values are [0, 31], inclusive.
  276. Default: 31
  277. tcp_autocorking - BOOLEAN
  278. Enable TCP auto corking :
  279. When applications do consecutive small write()/sendmsg() system calls,
  280. we try to coalesce these small writes as much as possible, to lower
  281. total amount of sent packets. This is done if at least one prior
  282. packet for the flow is waiting in Qdisc queues or device transmit
  283. queue. Applications can still use TCP_CORK for optimal behavior
  284. when they know how/when to uncork their sockets.
  285. Possible values:
  286. - 0 (disabled)
  287. - 1 (enabled)
  288. Default: 1 (enabled)
  289. tcp_available_congestion_control - STRING
  290. Shows the available congestion control choices that are registered.
  291. More congestion control algorithms may be available as modules,
  292. but not loaded.
  293. tcp_base_mss - INTEGER
  294. The initial value of search_low to be used by the packetization layer
  295. Path MTU discovery (MTU probing). If MTU probing is enabled,
  296. this is the initial MSS used by the connection.
  297. tcp_mtu_probe_floor - INTEGER
  298. If MTU probing is enabled this caps the minimum MSS used for search_low
  299. for the connection.
  300. Default : 48
  301. tcp_min_snd_mss - INTEGER
  302. TCP SYN and SYNACK messages usually advertise an ADVMSS option,
  303. as described in RFC 1122 and RFC 6691.
  304. If this ADVMSS option is smaller than tcp_min_snd_mss,
  305. it is silently capped to tcp_min_snd_mss.
  306. Default : 48 (at least 8 bytes of payload per segment)
  307. tcp_congestion_control - STRING
  308. Set the congestion control algorithm to be used for new
  309. connections. The algorithm "reno" is always available, but
  310. additional choices may be available based on kernel configuration.
  311. Default is set as part of kernel configuration.
  312. For passive connections, the listener congestion control choice
  313. is inherited.
  314. [see setsockopt(listenfd, SOL_TCP, TCP_CONGESTION, "name" ...) ]
  315. tcp_dsack - BOOLEAN
  316. Allows TCP to send "duplicate" SACKs.
  317. Possible values:
  318. - 0 (disabled)
  319. - 1 (enabled)
  320. Default: 1 (enabled)
  321. tcp_early_retrans - INTEGER
  322. Tail loss probe (TLP) converts RTOs occurring due to tail
  323. losses into fast recovery (RFC8985). Note that
  324. TLP requires RACK to function properly (see tcp_recovery below)
  325. Possible values:
  326. - 0 disables TLP
  327. - 3 or 4 enables TLP
  328. Default: 3
  329. tcp_ecn - INTEGER
  330. Control use of Explicit Congestion Notification (ECN) by TCP.
  331. ECN is used only when both ends of the TCP connection indicate support
  332. for it. This feature is useful in avoiding losses due to congestion by
  333. allowing supporting routers to signal congestion before having to drop
  334. packets. A host that supports ECN both sends ECN at the IP layer and
  335. feeds back ECN at the TCP layer. The highest variant of ECN feedback
  336. that both peers support is chosen by the ECN negotiation (Accurate ECN,
  337. ECN, or no ECN).
  338. The highest negotiated variant for incoming connection requests
  339. and the highest variant requested by outgoing connection
  340. attempts:
  341. ===== ==================== ====================
  342. Value Incoming connections Outgoing connections
  343. ===== ==================== ====================
  344. 0 No ECN No ECN
  345. 1 ECN ECN
  346. 2 ECN No ECN
  347. 3 AccECN AccECN
  348. 4 AccECN ECN
  349. 5 AccECN No ECN
  350. ===== ==================== ====================
  351. Default: 2
  352. tcp_ecn_option - INTEGER
  353. Control Accurate ECN (AccECN) option sending when AccECN has been
  354. successfully negotiated during handshake. Send logic inhibits
  355. sending AccECN options regarless of this setting when no AccECN
  356. option has been seen for the reverse direction.
  357. Possible values are:
  358. = ============================================================
  359. 0 Never send AccECN option. This also disables sending AccECN
  360. option in SYN/ACK during handshake.
  361. 1 Send AccECN option sparingly according to the minimum option
  362. rules outlined in draft-ietf-tcpm-accurate-ecn.
  363. 2 Send AccECN option on every packet whenever it fits into TCP
  364. option space except when AccECN fallback is triggered.
  365. 3 Send AccECN option on every packet whenever it fits into TCP
  366. option space even when AccECN fallback is triggered.
  367. = ============================================================
  368. Default: 2
  369. tcp_ecn_option_beacon - INTEGER
  370. Control Accurate ECN (AccECN) option sending frequency per RTT and it
  371. takes effect only when tcp_ecn_option is set to 2.
  372. Default: 3 (AccECN will be send at least 3 times per RTT)
  373. tcp_ecn_fallback - BOOLEAN
  374. If the kernel detects that ECN connection misbehaves, enable fall
  375. back to non-ECN. Currently, this knob implements the fallback
  376. from RFC3168, section 6.1.1.1., but we reserve that in future,
  377. additional detection mechanisms could be implemented under this
  378. knob. The value is not used, if tcp_ecn or per route (or congestion
  379. control) ECN settings are disabled.
  380. Possible values:
  381. - 0 (disabled)
  382. - 1 (enabled)
  383. Default: 1 (enabled)
  384. tcp_fack - BOOLEAN
  385. This is a legacy option, it has no effect anymore.
  386. tcp_fin_timeout - INTEGER
  387. The length of time an orphaned (no longer referenced by any
  388. application) connection will remain in the FIN_WAIT_2 state
  389. before it is aborted at the local end. While a perfectly
  390. valid "receive only" state for an un-orphaned connection, an
  391. orphaned connection in FIN_WAIT_2 state could otherwise wait
  392. forever for the remote to close its end of the connection.
  393. Cf. tcp_max_orphans
  394. Default: 60 seconds
  395. tcp_frto - INTEGER
  396. Enables Forward RTO-Recovery (F-RTO) defined in RFC5682.
  397. F-RTO is an enhanced recovery algorithm for TCP retransmission
  398. timeouts. It is particularly beneficial in networks where the
  399. RTT fluctuates (e.g., wireless). F-RTO is sender-side only
  400. modification. It does not require any support from the peer.
  401. By default it's enabled with a non-zero value. 0 disables F-RTO.
  402. tcp_fwmark_accept - BOOLEAN
  403. If enabled, incoming connections to listening sockets that do not have a
  404. socket mark will set the mark of the accepting socket to the fwmark of
  405. the incoming SYN packet. This will cause all packets on that connection
  406. (starting from the first SYNACK) to be sent with that fwmark. The
  407. listening socket's mark is unchanged. Listening sockets that already
  408. have a fwmark set via setsockopt(SOL_SOCKET, SO_MARK, ...) are
  409. unaffected.
  410. Possible values:
  411. - 0 (disabled)
  412. - 1 (enabled)
  413. Default: 0 (disabled)
  414. tcp_invalid_ratelimit - INTEGER
  415. Limit the maximal rate for sending duplicate acknowledgments
  416. in response to incoming TCP packets that are for an existing
  417. connection but that are invalid due to any of these reasons:
  418. (a) out-of-window sequence number,
  419. (b) out-of-window acknowledgment number, or
  420. (c) PAWS (Protection Against Wrapped Sequence numbers) check failure
  421. This can help mitigate simple "ack loop" DoS attacks, wherein
  422. a buggy or malicious middlebox or man-in-the-middle can
  423. rewrite TCP header fields in manner that causes each endpoint
  424. to think that the other is sending invalid TCP segments, thus
  425. causing each side to send an unterminating stream of duplicate
  426. acknowledgments for invalid segments.
  427. Using 0 disables rate-limiting of dupacks in response to
  428. invalid segments; otherwise this value specifies the minimal
  429. space between sending such dupacks, in milliseconds.
  430. Default: 500 (milliseconds).
  431. tcp_keepalive_time - INTEGER
  432. How often TCP sends out keepalive messages when keepalive is enabled.
  433. Default: 2hours.
  434. tcp_keepalive_probes - INTEGER
  435. How many keepalive probes TCP sends out, until it decides that the
  436. connection is broken. Default value: 9.
  437. tcp_keepalive_intvl - INTEGER
  438. How frequently the probes are send out. Multiplied by
  439. tcp_keepalive_probes it is time to kill not responding connection,
  440. after probes started. Default value: 75sec i.e. connection
  441. will be aborted after ~11 minutes of retries.
  442. tcp_l3mdev_accept - BOOLEAN
  443. Enables child sockets to inherit the L3 master device index.
  444. Enabling this option allows a "global" listen socket to work
  445. across L3 master domains (e.g., VRFs) with connected sockets
  446. derived from the listen socket to be bound to the L3 domain in
  447. which the packets originated. Only valid when the kernel was
  448. compiled with CONFIG_NET_L3_MASTER_DEV.
  449. Possible values:
  450. - 0 (disabled)
  451. - 1 (enabled)
  452. Default: 0 (disabled)
  453. tcp_low_latency - BOOLEAN
  454. This is a legacy option, it has no effect anymore.
  455. tcp_max_orphans - INTEGER
  456. Maximal number of TCP sockets not attached to any user file handle,
  457. held by system. If this number is exceeded orphaned connections are
  458. reset immediately and warning is printed. This limit exists
  459. only to prevent simple DoS attacks, you _must_ not rely on this
  460. or lower the limit artificially, but rather increase it
  461. (probably, after increasing installed memory),
  462. if network conditions require more than default value,
  463. and tune network services to linger and kill such states
  464. more aggressively. Let me to remind again: each orphan eats
  465. up to ~64K of unswappable memory.
  466. tcp_max_syn_backlog - INTEGER
  467. Maximal number of remembered connection requests (SYN_RECV),
  468. which have not received an acknowledgment from connecting client.
  469. This is a per-listener limit.
  470. The minimal value is 128 for low memory machines, and it will
  471. increase in proportion to the memory of machine.
  472. If server suffers from overload, try increasing this number.
  473. Remember to also check /proc/sys/net/core/somaxconn
  474. A SYN_RECV request socket consumes about 304 bytes of memory.
  475. tcp_max_tw_buckets - INTEGER
  476. Maximal number of timewait sockets held by system simultaneously.
  477. If this number is exceeded time-wait socket is immediately destroyed
  478. and warning is printed. This limit exists only to prevent
  479. simple DoS attacks, you _must_ not lower the limit artificially,
  480. but rather increase it (probably, after increasing installed memory),
  481. if network conditions require more than default value.
  482. tcp_mem - vector of 3 INTEGERs: min, pressure, max
  483. min: below this number of pages TCP is not bothered about its
  484. memory appetite.
  485. pressure: when amount of memory allocated by TCP exceeds this number
  486. of pages, TCP moderates its memory consumption and enters memory
  487. pressure mode, which is exited when memory consumption falls
  488. under "min".
  489. max: number of pages allowed for queueing by all TCP sockets.
  490. Defaults are calculated at boot time from amount of available
  491. memory.
  492. tcp_min_rtt_wlen - INTEGER
  493. The window length of the windowed min filter to track the minimum RTT.
  494. A shorter window lets a flow more quickly pick up new (higher)
  495. minimum RTT when it is moved to a longer path (e.g., due to traffic
  496. engineering). A longer window makes the filter more resistant to RTT
  497. inflations such as transient congestion. The unit is seconds.
  498. Possible values: 0 - 86400 (1 day)
  499. Default: 300
  500. tcp_moderate_rcvbuf - BOOLEAN
  501. If enabled, TCP performs receive buffer auto-tuning, attempting to
  502. automatically size the buffer (no greater than tcp_rmem[2]) to
  503. match the size required by the path for full throughput.
  504. Possible values:
  505. - 0 (disabled)
  506. - 1 (enabled)
  507. Default: 1 (enabled)
  508. tcp_rcvbuf_low_rtt - INTEGER
  509. rcvbuf autotuning can over estimate final socket rcvbuf, which
  510. can lead to cache trashing for high throughput flows.
  511. For small RTT flows (below tcp_rcvbuf_low_rtt usecs), we can relax
  512. rcvbuf growth: Few additional ms to reach the final (and smaller)
  513. rcvbuf is a good tradeoff.
  514. Default : 1000 (1 ms)
  515. tcp_mtu_probing - INTEGER
  516. Controls TCP Packetization-Layer Path MTU Discovery. Takes three
  517. values:
  518. - 0 - Disabled
  519. - 1 - Disabled by default, enabled when an ICMP black hole detected
  520. - 2 - Always enabled, use initial MSS of tcp_base_mss.
  521. tcp_probe_interval - UNSIGNED INTEGER
  522. Controls how often to start TCP Packetization-Layer Path MTU
  523. Discovery reprobe. The default is reprobing every 10 minutes as
  524. per RFC4821.
  525. tcp_probe_threshold - INTEGER
  526. Controls when TCP Packetization-Layer Path MTU Discovery probing
  527. will stop in respect to the width of search range in bytes. Default
  528. is 8 bytes.
  529. tcp_no_metrics_save - BOOLEAN
  530. By default, TCP saves various connection metrics in the route cache
  531. when the connection closes, so that connections established in the
  532. near future can use these to set initial conditions. Usually, this
  533. increases overall performance, but may sometimes cause performance
  534. degradation. If enabled, TCP will not cache metrics on closing
  535. connections.
  536. Possible values:
  537. - 0 (disabled)
  538. - 1 (enabled)
  539. Default: 0 (disabled)
  540. tcp_no_ssthresh_metrics_save - BOOLEAN
  541. Controls whether TCP saves ssthresh metrics in the route cache.
  542. If enabled, ssthresh metrics are disabled.
  543. Possible values:
  544. - 0 (disabled)
  545. - 1 (enabled)
  546. Default: 1 (enabled)
  547. tcp_orphan_retries - INTEGER
  548. This value influences the timeout of a locally closed TCP connection,
  549. when RTO retransmissions remain unacknowledged.
  550. See tcp_retries2 for more details.
  551. The default value is 8.
  552. If your machine is a loaded WEB server,
  553. you should think about lowering this value, such sockets
  554. may consume significant resources. Cf. tcp_max_orphans.
  555. tcp_recovery - INTEGER
  556. This value is a bitmap to enable various experimental loss recovery
  557. features.
  558. ========= =============================================================
  559. RACK: 0x1 enables RACK loss detection, for fast detection of lost
  560. retransmissions and tail drops, and resilience to
  561. reordering. currently, setting this bit to 0 has no
  562. effect, since RACK is the only supported loss detection
  563. algorithm.
  564. RACK: 0x2 makes RACK's reordering window static (min_rtt/4).
  565. RACK: 0x4 disables RACK's DUPACK threshold heuristic
  566. ========= =============================================================
  567. Default: 0x1
  568. tcp_reflect_tos - BOOLEAN
  569. For listening sockets, reuse the DSCP value of the initial SYN message
  570. for outgoing packets. This allows to have both directions of a TCP
  571. stream to use the same DSCP value, assuming DSCP remains unchanged for
  572. the lifetime of the connection.
  573. This options affects both IPv4 and IPv6.
  574. Possible values:
  575. - 0 (disabled)
  576. - 1 (enabled)
  577. Default: 0 (disabled)
  578. tcp_reordering - INTEGER
  579. Initial reordering level of packets in a TCP stream.
  580. TCP stack can then dynamically adjust flow reordering level
  581. between this initial value and tcp_max_reordering
  582. Default: 3
  583. tcp_max_reordering - INTEGER
  584. Maximal reordering level of packets in a TCP stream.
  585. 300 is a fairly conservative value, but you might increase it
  586. if paths are using per packet load balancing (like bonding rr mode)
  587. Default: 300
  588. tcp_retrans_collapse - BOOLEAN
  589. Bug-to-bug compatibility with some broken printers.
  590. On retransmit try to send bigger packets to work around bugs in
  591. certain TCP stacks.
  592. Possible values:
  593. - 0 (disabled)
  594. - 1 (enabled)
  595. Default: 1 (enabled)
  596. tcp_retries1 - INTEGER
  597. This value influences the time, after which TCP decides, that
  598. something is wrong due to unacknowledged RTO retransmissions,
  599. and reports this suspicion to the network layer.
  600. See tcp_retries2 for more details.
  601. RFC 1122 recommends at least 3 retransmissions, which is the
  602. default.
  603. tcp_retries2 - INTEGER
  604. This value influences the timeout of an alive TCP connection,
  605. when RTO retransmissions remain unacknowledged.
  606. Given a value of N, a hypothetical TCP connection following
  607. exponential backoff with an initial RTO of TCP_RTO_MIN would
  608. retransmit N times before killing the connection at the (N+1)th RTO.
  609. The default value of 15 yields a hypothetical timeout of 924.6
  610. seconds and is a lower bound for the effective timeout.
  611. TCP will effectively time out at the first RTO which exceeds the
  612. hypothetical timeout.
  613. If tcp_rto_max_ms is decreased, it is recommended to also
  614. change tcp_retries2.
  615. RFC 1122 recommends at least 100 seconds for the timeout,
  616. which corresponds to a value of at least 8.
  617. tcp_rfc1337 - BOOLEAN
  618. If enabled, the TCP stack behaves conforming to RFC1337. If unset,
  619. we are not conforming to RFC, but prevent TCP TIME_WAIT
  620. assassination.
  621. Possible values:
  622. - 0 (disabled)
  623. - 1 (enabled)
  624. Default: 0 (disabled)
  625. tcp_rmem - vector of 3 INTEGERs: min, default, max
  626. min: Minimal size of receive buffer used by TCP sockets.
  627. It is guaranteed to each TCP socket, even under moderate memory
  628. pressure.
  629. Default: 4K
  630. default: initial size of receive buffer used by TCP sockets.
  631. This value overrides net.core.rmem_default used by other protocols.
  632. Default: 131072 bytes.
  633. This value results in initial window of 65535.
  634. max: maximal size of receive buffer allowed for automatically
  635. selected receiver buffers for TCP socket.
  636. Calling setsockopt() with SO_RCVBUF disables
  637. automatic tuning of that socket's receive buffer size, in which
  638. case this value is ignored.
  639. Default: between 131072 and 32MB, depending on RAM size.
  640. tcp_sack - BOOLEAN
  641. Enable select acknowledgments (SACKS).
  642. Possible values:
  643. - 0 (disabled)
  644. - 1 (enabled)
  645. Default: 1 (enabled)
  646. tcp_comp_sack_rtt_percent - INTEGER
  647. Percentage of SRTT used for the compressed SACK feature.
  648. See tcp_comp_sack_nr, tcp_comp_sack_delay_ns, tcp_comp_sack_slack_ns.
  649. Possible values : 1 - 1000
  650. Default : 33 %
  651. tcp_comp_sack_delay_ns - LONG INTEGER
  652. TCP tries to reduce number of SACK sent, using a timer based
  653. on tcp_comp_sack_rtt_percent of SRTT, capped by this sysctl
  654. in nano seconds.
  655. The default is 1ms, based on TSO autosizing period.
  656. Default : 1,000,000 ns (1 ms)
  657. tcp_comp_sack_slack_ns - LONG INTEGER
  658. This sysctl control the slack used when arming the
  659. timer used by SACK compression. This gives extra time
  660. for small RTT flows, and reduces system overhead by allowing
  661. opportunistic reduction of timer interrupts.
  662. Too big values might reduce goodput.
  663. Default : 10,000 ns (10 us)
  664. tcp_comp_sack_nr - INTEGER
  665. Max number of SACK that can be compressed.
  666. Using 0 disables SACK compression.
  667. Default : 44
  668. tcp_backlog_ack_defer - BOOLEAN
  669. If enabled, user thread processing socket backlog tries sending
  670. one ACK for the whole queue. This helps to avoid potential
  671. long latencies at end of a TCP socket syscall.
  672. Possible values:
  673. - 0 (disabled)
  674. - 1 (enabled)
  675. Default: 1 (enabled)
  676. tcp_slow_start_after_idle - BOOLEAN
  677. If enabled, provide RFC2861 behavior and time out the congestion
  678. window after an idle period. An idle period is defined at
  679. the current RTO. If unset, the congestion window will not
  680. be timed out after an idle period.
  681. Possible values:
  682. - 0 (disabled)
  683. - 1 (enabled)
  684. Default: 1 (enabled)
  685. tcp_stdurg - BOOLEAN
  686. Use the Host requirements interpretation of the TCP urgent pointer field.
  687. Most hosts use the older BSD interpretation, so if enabled,
  688. Linux might not communicate correctly with them.
  689. Possible values:
  690. - 0 (disabled)
  691. - 1 (enabled)
  692. Default: 0 (disabled)
  693. tcp_synack_retries - INTEGER
  694. Number of times SYNACKs for a passive TCP connection attempt will
  695. be retransmitted. Should not be higher than 255. Default value
  696. is 5, which corresponds to 31seconds till the last retransmission
  697. with the current initial RTO of 1second. With this the final timeout
  698. for a passive TCP connection will happen after 63seconds.
  699. tcp_syncookies - INTEGER
  700. Only valid when the kernel was compiled with CONFIG_SYN_COOKIES
  701. Send out syncookies when the syn backlog queue of a socket
  702. overflows. This is to prevent against the common 'SYN flood attack'
  703. Default: 1
  704. Note, that syncookies is fallback facility.
  705. It MUST NOT be used to help highly loaded servers to stand
  706. against legal connection rate. If you see SYN flood warnings
  707. in your logs, but investigation shows that they occur
  708. because of overload with legal connections, you should tune
  709. another parameters until this warning disappear.
  710. See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
  711. syncookies seriously violate TCP protocol, do not allow
  712. to use TCP extensions, can result in serious degradation
  713. of some services (f.e. SMTP relaying), visible not by you,
  714. but your clients and relays, contacting you. While you see
  715. SYN flood warnings in logs not being really flooded, your server
  716. is seriously misconfigured.
  717. If you want to test which effects syncookies have to your
  718. network connections you can set this knob to 2 to enable
  719. unconditionally generation of syncookies.
  720. tcp_migrate_req - BOOLEAN
  721. The incoming connection is tied to a specific listening socket when
  722. the initial SYN packet is received during the three-way handshake.
  723. When a listener is closed, in-flight request sockets during the
  724. handshake and established sockets in the accept queue are aborted.
  725. If the listener has SO_REUSEPORT enabled, other listeners on the
  726. same port should have been able to accept such connections. This
  727. option makes it possible to migrate such child sockets to another
  728. listener after close() or shutdown().
  729. The BPF_SK_REUSEPORT_SELECT_OR_MIGRATE type of eBPF program should
  730. usually be used to define the policy to pick an alive listener.
  731. Otherwise, the kernel will randomly pick an alive listener only if
  732. this option is enabled.
  733. Note that migration between listeners with different settings may
  734. crash applications. Let's say migration happens from listener A to
  735. B, and only B has TCP_SAVE_SYN enabled. B cannot read SYN data from
  736. the requests migrated from A. To avoid such a situation, cancel
  737. migration by returning SK_DROP in the type of eBPF program, or
  738. disable this option.
  739. Possible values:
  740. - 0 (disabled)
  741. - 1 (enabled)
  742. Default: 0 (disabled)
  743. tcp_fastopen - INTEGER
  744. Enable TCP Fast Open (RFC7413) to send and accept data in the opening
  745. SYN packet.
  746. The client support is enabled by flag 0x1 (on by default). The client
  747. then must use sendmsg() or sendto() with the MSG_FASTOPEN flag,
  748. rather than connect() to send data in SYN.
  749. The server support is enabled by flag 0x2 (off by default). Then
  750. either enable for all listeners with another flag (0x400) or
  751. enable individual listeners via TCP_FASTOPEN socket option with
  752. the option value being the length of the syn-data backlog.
  753. The values (bitmap) are
  754. ===== ======== ======================================================
  755. 0x1 (client) enables sending data in the opening SYN on the client.
  756. 0x2 (server) enables the server support, i.e., allowing data in
  757. a SYN packet to be accepted and passed to the
  758. application before 3-way handshake finishes.
  759. 0x4 (client) send data in the opening SYN regardless of cookie
  760. availability and without a cookie option.
  761. 0x200 (server) accept data-in-SYN w/o any cookie option present.
  762. 0x400 (server) enable all listeners to support Fast Open by
  763. default without explicit TCP_FASTOPEN socket option.
  764. ===== ======== ======================================================
  765. Default: 0x1
  766. Note that additional client or server features are only
  767. effective if the basic support (0x1 and 0x2) are enabled respectively.
  768. tcp_fastopen_blackhole_timeout_sec - INTEGER
  769. Initial time period in second to disable Fastopen on active TCP sockets
  770. when a TFO firewall blackhole issue happens.
  771. This time period will grow exponentially when more blackhole issues
  772. get detected right after Fastopen is re-enabled and will reset to
  773. initial value when the blackhole issue goes away.
  774. 0 to disable the blackhole detection.
  775. By default, it is set to 0 (feature is disabled).
  776. tcp_fastopen_key - list of comma separated 32-digit hexadecimal INTEGERs
  777. The list consists of a primary key and an optional backup key. The
  778. primary key is used for both creating and validating cookies, while the
  779. optional backup key is only used for validating cookies. The purpose of
  780. the backup key is to maximize TFO validation when keys are rotated.
  781. A randomly chosen primary key may be configured by the kernel if
  782. the tcp_fastopen sysctl is set to 0x400 (see above), or if the
  783. TCP_FASTOPEN setsockopt() optname is set and a key has not been
  784. previously configured via sysctl. If keys are configured via
  785. setsockopt() by using the TCP_FASTOPEN_KEY optname, then those
  786. per-socket keys will be used instead of any keys that are specified via
  787. sysctl.
  788. A key is specified as 4 8-digit hexadecimal integers which are separated
  789. by a '-' as: xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx. Leading zeros may be
  790. omitted. A primary and a backup key may be specified by separating them
  791. by a comma. If only one key is specified, it becomes the primary key and
  792. any previously configured backup keys are removed.
  793. tcp_syn_retries - INTEGER
  794. Number of times initial SYNs for an active TCP connection attempt
  795. will be retransmitted. Should not be higher than 127. Default value
  796. is 6, which corresponds to 67seconds (with tcp_syn_linear_timeouts = 4)
  797. till the last retransmission with the current initial RTO of 1second.
  798. With this the final timeout for an active TCP connection attempt
  799. will happen after 131seconds.
  800. tcp_timestamps - INTEGER
  801. Enable timestamps as defined in RFC1323.
  802. - 0: Disabled.
  803. - 1: Enable timestamps as defined in RFC1323 and use random offset for
  804. each connection rather than only using the current time.
  805. - 2: Like 1, but without random offsets.
  806. Default: 1
  807. tcp_min_tso_segs - INTEGER
  808. Minimal number of segments per TSO frame.
  809. Since linux-3.12, TCP does an automatic sizing of TSO frames,
  810. depending on flow rate, instead of filling 64Kbytes packets.
  811. For specific usages, it's possible to force TCP to build big
  812. TSO frames. Note that TCP stack might split too big TSO packets
  813. if available window is too small.
  814. Default: 2
  815. tcp_tso_rtt_log - INTEGER
  816. Adjustment of TSO packet sizes based on min_rtt
  817. Starting from linux-5.18, TCP autosizing can be tweaked
  818. for flows having small RTT.
  819. Old autosizing was splitting the pacing budget to send 1024 TSO
  820. per second.
  821. tso_packet_size = sk->sk_pacing_rate / 1024;
  822. With the new mechanism, we increase this TSO sizing using:
  823. distance = min_rtt_usec / (2^tcp_tso_rtt_log)
  824. tso_packet_size += gso_max_size >> distance;
  825. This means that flows between very close hosts can use bigger
  826. TSO packets, reducing their cpu costs.
  827. If you want to use the old autosizing, set this sysctl to 0.
  828. Default: 9 (2^9 = 512 usec)
  829. tcp_pacing_ss_ratio - INTEGER
  830. sk->sk_pacing_rate is set by TCP stack using a ratio applied
  831. to current rate. (current_rate = cwnd * mss / srtt)
  832. If TCP is in slow start, tcp_pacing_ss_ratio is applied
  833. to let TCP probe for bigger speeds, assuming cwnd can be
  834. doubled every other RTT.
  835. Default: 200
  836. tcp_pacing_ca_ratio - INTEGER
  837. sk->sk_pacing_rate is set by TCP stack using a ratio applied
  838. to current rate. (current_rate = cwnd * mss / srtt)
  839. If TCP is in congestion avoidance phase, tcp_pacing_ca_ratio
  840. is applied to conservatively probe for bigger throughput.
  841. Default: 120
  842. tcp_syn_linear_timeouts - INTEGER
  843. The number of times for an active TCP connection to retransmit SYNs with
  844. a linear backoff timeout before defaulting to an exponential backoff
  845. timeout. This has no effect on SYNACK at the passive TCP side.
  846. With an initial RTO of 1 and tcp_syn_linear_timeouts = 4 we would
  847. expect SYN RTOs to be: 1, 1, 1, 1, 1, 2, 4, ... (4 linear timeouts,
  848. and the first exponential backoff using 2^0 * initial_RTO).
  849. Default: 4
  850. tcp_tso_win_divisor - INTEGER
  851. This allows control over what percentage of the congestion window
  852. can be consumed by a single TSO frame.
  853. The setting of this parameter is a choice between burstiness and
  854. building larger TSO frames.
  855. Default: 3
  856. tcp_tw_reuse - INTEGER
  857. Enable reuse of TIME-WAIT sockets for new connections when it is
  858. safe from protocol viewpoint.
  859. - 0 - disable
  860. - 1 - global enable
  861. - 2 - enable for loopback traffic only
  862. It should not be changed without advice/request of technical
  863. experts.
  864. Default: 2
  865. tcp_tw_reuse_delay - UNSIGNED INTEGER
  866. The delay in milliseconds before a TIME-WAIT socket can be reused by a
  867. new connection, if TIME-WAIT socket reuse is enabled. The actual reuse
  868. threshold is within [N, N+1] range, where N is the requested delay in
  869. milliseconds, to ensure the delay interval is never shorter than the
  870. configured value.
  871. This setting contains an assumption about the other TCP timestamp clock
  872. tick interval. It should not be set to a value lower than the peer's
  873. clock tick for PAWS (Protection Against Wrapped Sequence numbers)
  874. mechanism work correctly for the reused connection.
  875. Default: 1000 (milliseconds)
  876. tcp_window_scaling - BOOLEAN
  877. Enable window scaling as defined in RFC1323.
  878. Possible values:
  879. - 0 (disabled)
  880. - 1 (enabled)
  881. Default: 1 (enabled)
  882. tcp_shrink_window - BOOLEAN
  883. This changes how the TCP receive window is calculated.
  884. RFC 7323, section 2.4, says there are instances when a retracted
  885. window can be offered, and that TCP implementations MUST ensure
  886. that they handle a shrinking window, as specified in RFC 1122.
  887. Possible values:
  888. - 0 (disabled) - The window is never shrunk.
  889. - 1 (enabled) - The window is shrunk when necessary to remain within
  890. the memory limit set by autotuning (sk_rcvbuf).
  891. This only occurs if a non-zero receive window
  892. scaling factor is also in effect.
  893. Default: 0 (disabled)
  894. tcp_wmem - vector of 3 INTEGERs: min, default, max
  895. min: Amount of memory reserved for send buffers for TCP sockets.
  896. Each TCP socket has rights to use it due to fact of its birth.
  897. Default: 4K
  898. default: initial size of send buffer used by TCP sockets. This
  899. value overrides net.core.wmem_default used by other protocols.
  900. It is usually lower than net.core.wmem_default.
  901. Default: 16K
  902. max: Maximal amount of memory allowed for automatically tuned
  903. send buffers for TCP sockets. This value does not override
  904. net.core.wmem_max. Calling setsockopt() with SO_SNDBUF disables
  905. automatic tuning of that socket's send buffer size, in which case
  906. this value is ignored.
  907. Default: between 64K and 4MB, depending on RAM size.
  908. tcp_notsent_lowat - UNSIGNED INTEGER
  909. A TCP socket can control the amount of unsent bytes in its write queue,
  910. thanks to TCP_NOTSENT_LOWAT socket option. poll()/select()/epoll()
  911. reports POLLOUT events if the amount of unsent bytes is below a per
  912. socket value, and if the write queue is not full. sendmsg() will
  913. also not add new buffers if the limit is hit.
  914. This global variable controls the amount of unsent data for
  915. sockets not using TCP_NOTSENT_LOWAT. For these sockets, a change
  916. to the global variable has immediate effect.
  917. Default: UINT_MAX (0xFFFFFFFF)
  918. tcp_workaround_signed_windows - BOOLEAN
  919. If enabled, assume no receipt of a window scaling option means the
  920. remote TCP is broken and treats the window as a signed quantity.
  921. If disabled, assume the remote TCP is not broken even if we do
  922. not receive a window scaling option from them.
  923. Possible values:
  924. - 0 (disabled)
  925. - 1 (enabled)
  926. Default: 0 (disabled)
  927. tcp_thin_linear_timeouts - BOOLEAN
  928. Enable dynamic triggering of linear timeouts for thin streams.
  929. If enabled, a check is performed upon retransmission by timeout to
  930. determine if the stream is thin (less than 4 packets in flight).
  931. As long as the stream is found to be thin, up to 6 linear
  932. timeouts may be performed before exponential backoff mode is
  933. initiated. This improves retransmission latency for
  934. non-aggressive thin streams, often found to be time-dependent.
  935. For more information on thin streams, see
  936. Documentation/networking/tcp-thin.rst
  937. Possible values:
  938. - 0 (disabled)
  939. - 1 (enabled)
  940. Default: 0 (disabled)
  941. tcp_limit_output_bytes - INTEGER
  942. Controls TCP Small Queue limit per tcp socket.
  943. TCP bulk sender tends to increase packets in flight until it
  944. gets losses notifications. With SNDBUF autotuning, this can
  945. result in a large amount of packets queued on the local machine
  946. (e.g.: qdiscs, CPU backlog, or device) hurting latency of other
  947. flows, for typical pfifo_fast qdiscs. tcp_limit_output_bytes
  948. limits the number of bytes on qdisc or device to reduce artificial
  949. RTT/cwnd and reduce bufferbloat.
  950. Default: 4194304 (4 MB)
  951. tcp_challenge_ack_limit - INTEGER
  952. Limits number of Challenge ACK sent per second, as recommended
  953. in RFC 5961 (Improving TCP's Robustness to Blind In-Window Attacks)
  954. Note that this per netns rate limit can allow some side channel
  955. attacks and probably should not be enabled.
  956. TCP stack implements per TCP socket limits anyway.
  957. Default: INT_MAX (unlimited)
  958. tcp_ehash_entries - INTEGER
  959. Show the number of hash buckets for TCP sockets in the current
  960. networking namespace.
  961. A negative value means the networking namespace does not own its
  962. hash buckets and shares the initial networking namespace's one.
  963. tcp_child_ehash_entries - INTEGER
  964. Control the number of hash buckets for TCP sockets in the child
  965. networking namespace, which must be set before clone() or unshare().
  966. If the value is not 0, the kernel uses a value rounded up to 2^n
  967. as the actual hash bucket size. 0 is a special value, meaning
  968. the child networking namespace will share the initial networking
  969. namespace's hash buckets.
  970. Note that the child will use the global one in case the kernel
  971. fails to allocate enough memory. In addition, the global hash
  972. buckets are spread over available NUMA nodes, but the allocation
  973. of the child hash table depends on the current process's NUMA
  974. policy, which could result in performance differences.
  975. Note also that the default value of tcp_max_tw_buckets and
  976. tcp_max_syn_backlog depend on the hash bucket size.
  977. Possible values: 0, 2^n (n: 0 - 24 (16Mi))
  978. Default: 0
  979. tcp_plb_enabled - BOOLEAN
  980. If enabled and the underlying congestion control (e.g. DCTCP) supports
  981. and enables PLB feature, TCP PLB (Protective Load Balancing) is
  982. enabled. PLB is described in the following paper:
  983. https://doi.org/10.1145/3544216.3544226. Based on PLB parameters,
  984. upon sensing sustained congestion, TCP triggers a change in
  985. flow label field for outgoing IPv6 packets. A change in flow label
  986. field potentially changes the path of outgoing packets for switches
  987. that use ECMP/WCMP for routing.
  988. PLB changes socket txhash which results in a change in IPv6 Flow Label
  989. field, and currently no-op for IPv4 headers. It is possible
  990. to apply PLB for IPv4 with other network header fields (e.g. TCP
  991. or IPv4 options) or using encapsulation where outer header is used
  992. by switches to determine next hop. In either case, further host
  993. and switch side changes will be needed.
  994. If enabled, PLB assumes that congestion signal (e.g. ECN) is made
  995. available and used by congestion control module to estimate a
  996. congestion measure (e.g. ce_ratio). PLB needs a congestion measure to
  997. make repathing decisions.
  998. Possible values:
  999. - 0 (disabled)
  1000. - 1 (enabled)
  1001. Default: 0 (disabled)
  1002. tcp_plb_idle_rehash_rounds - INTEGER
  1003. Number of consecutive congested rounds (RTT) seen after which
  1004. a rehash can be performed, given there are no packets in flight.
  1005. This is referred to as M in PLB paper:
  1006. https://doi.org/10.1145/3544216.3544226.
  1007. Possible Values: 0 - 31
  1008. Default: 3
  1009. tcp_plb_rehash_rounds - INTEGER
  1010. Number of consecutive congested rounds (RTT) seen after which
  1011. a forced rehash can be performed. Be careful when setting this
  1012. parameter, as a small value increases the risk of retransmissions.
  1013. This is referred to as N in PLB paper:
  1014. https://doi.org/10.1145/3544216.3544226.
  1015. Possible Values: 0 - 31
  1016. Default: 12
  1017. tcp_plb_suspend_rto_sec - INTEGER
  1018. Time, in seconds, to suspend PLB in event of an RTO. In order to avoid
  1019. having PLB repath onto a connectivity "black hole", after an RTO a TCP
  1020. connection suspends PLB repathing for a random duration between 1x and
  1021. 2x of this parameter. Randomness is added to avoid concurrent rehashing
  1022. of multiple TCP connections. This should be set corresponding to the
  1023. amount of time it takes to repair a failed link.
  1024. Possible Values: 0 - 255
  1025. Default: 60
  1026. tcp_plb_cong_thresh - INTEGER
  1027. Fraction of packets marked with congestion over a round (RTT) to
  1028. tag that round as congested. This is referred to as K in the PLB paper:
  1029. https://doi.org/10.1145/3544216.3544226.
  1030. The 0-1 fraction range is mapped to 0-256 range to avoid floating
  1031. point operations. For example, 128 means that if at least 50% of
  1032. the packets in a round were marked as congested then the round
  1033. will be tagged as congested.
  1034. Setting threshold to 0 means that PLB repaths every RTT regardless
  1035. of congestion. This is not intended behavior for PLB and should be
  1036. used only for experimentation purpose.
  1037. Possible Values: 0 - 256
  1038. Default: 128
  1039. tcp_pingpong_thresh - INTEGER
  1040. The number of estimated data replies sent for estimated incoming data
  1041. requests that must happen before TCP considers that a connection is a
  1042. "ping-pong" (request-response) connection for which delayed
  1043. acknowledgments can provide benefits.
  1044. This threshold is 1 by default, but some applications may need a higher
  1045. threshold for optimal performance.
  1046. Possible Values: 1 - 255
  1047. Default: 1
  1048. tcp_rto_min_us - INTEGER
  1049. Minimal TCP retransmission timeout (in microseconds). Note that the
  1050. rto_min route option has the highest precedence for configuring this
  1051. setting, followed by the TCP_BPF_RTO_MIN and TCP_RTO_MIN_US socket
  1052. options, followed by this tcp_rto_min_us sysctl.
  1053. The recommended practice is to use a value less or equal to 200000
  1054. microseconds.
  1055. Possible Values: 1 - INT_MAX
  1056. Default: 200000
  1057. tcp_rto_max_ms - INTEGER
  1058. Maximal TCP retransmission timeout (in ms).
  1059. Note that TCP_RTO_MAX_MS socket option has higher precedence.
  1060. When changing tcp_rto_max_ms, it is important to understand
  1061. that tcp_retries2 might need a change.
  1062. Possible Values: 1000 - 120,000
  1063. Default: 120,000
  1064. UDP variables
  1065. =============
  1066. udp_l3mdev_accept - BOOLEAN
  1067. Enabling this option allows a "global" bound socket to work
  1068. across L3 master domains (e.g., VRFs) with packets capable of
  1069. being received regardless of the L3 domain in which they
  1070. originated. Only valid when the kernel was compiled with
  1071. CONFIG_NET_L3_MASTER_DEV.
  1072. Possible values:
  1073. - 0 (disabled)
  1074. - 1 (enabled)
  1075. Default: 0 (disabled)
  1076. udp_mem - vector of 3 INTEGERs: min, pressure, max
  1077. Number of pages allowed for queueing by all UDP sockets.
  1078. min: Number of pages allowed for queueing by all UDP sockets.
  1079. pressure: This value was introduced to follow format of tcp_mem.
  1080. max: This value was introduced to follow format of tcp_mem.
  1081. Default is calculated at boot time from amount of available memory.
  1082. udp_rmem_min - INTEGER
  1083. Minimal size of receive buffer used by UDP sockets in moderation.
  1084. Each UDP socket is able to use the size for receiving data, even if
  1085. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  1086. Default: 4K
  1087. udp_wmem_min - INTEGER
  1088. UDP does not have tx memory accounting and this tunable has no effect.
  1089. udp_hash_entries - INTEGER
  1090. Show the number of hash buckets for UDP sockets in the current
  1091. networking namespace.
  1092. A negative value means the networking namespace does not own its
  1093. hash buckets and shares the initial networking namespace's one.
  1094. udp_child_hash_entries - INTEGER
  1095. Control the number of hash buckets for UDP sockets in the child
  1096. networking namespace, which must be set before clone() or unshare().
  1097. If the value is not 0, the kernel uses a value rounded up to 2^n
  1098. as the actual hash bucket size. 0 is a special value, meaning
  1099. the child networking namespace will share the initial networking
  1100. namespace's hash buckets.
  1101. Note that the child will use the global one in case the kernel
  1102. fails to allocate enough memory. In addition, the global hash
  1103. buckets are spread over available NUMA nodes, but the allocation
  1104. of the child hash table depends on the current process's NUMA
  1105. policy, which could result in performance differences.
  1106. Possible values: 0, 2^n (n: 7 (128) - 16 (64K))
  1107. Default: 0
  1108. RAW variables
  1109. =============
  1110. raw_l3mdev_accept - BOOLEAN
  1111. Enabling this option allows a "global" bound socket to work
  1112. across L3 master domains (e.g., VRFs) with packets capable of
  1113. being received regardless of the L3 domain in which they
  1114. originated. Only valid when the kernel was compiled with
  1115. CONFIG_NET_L3_MASTER_DEV.
  1116. Possible values:
  1117. - 0 (disabled)
  1118. - 1 (enabled)
  1119. Default: 1 (enabled)
  1120. CIPSOv4 Variables
  1121. =================
  1122. cipso_cache_enable - BOOLEAN
  1123. If enabled, enable additions to and lookups from the CIPSO label mapping
  1124. cache. If disabled, additions are ignored and lookups always result in a
  1125. miss. However, regardless of the setting the cache is still
  1126. invalidated when required when means you can safely toggle this on and
  1127. off and the cache will always be "safe".
  1128. Possible values:
  1129. - 0 (disabled)
  1130. - 1 (enabled)
  1131. Default: 1 (enabled)
  1132. cipso_cache_bucket_size - INTEGER
  1133. The CIPSO label cache consists of a fixed size hash table with each
  1134. hash bucket containing a number of cache entries. This variable limits
  1135. the number of entries in each hash bucket; the larger the value is, the
  1136. more CIPSO label mappings that can be cached. When the number of
  1137. entries in a given hash bucket reaches this limit adding new entries
  1138. causes the oldest entry in the bucket to be removed to make room.
  1139. Default: 10
  1140. cipso_rbm_optfmt - BOOLEAN
  1141. Enable the "Optimized Tag 1 Format" as defined in section 3.4.2.6 of
  1142. the CIPSO draft specification (see Documentation/netlabel for details).
  1143. This means that when set the CIPSO tag will be padded with empty
  1144. categories in order to make the packet data 32-bit aligned.
  1145. Possible values:
  1146. - 0 (disabled)
  1147. - 1 (enabled)
  1148. Default: 0 (disabled)
  1149. cipso_rbm_strictvalid - BOOLEAN
  1150. If enabled, do a very strict check of the CIPSO option when
  1151. ip_options_compile() is called. If disabled, relax the checks done during
  1152. ip_options_compile(). Either way is "safe" as errors are caught else
  1153. where in the CIPSO processing code but setting this to 0 (False) should
  1154. result in less work (i.e. it should be faster) but could cause problems
  1155. with other implementations that require strict checking.
  1156. Possible values:
  1157. - 0 (disabled)
  1158. - 1 (enabled)
  1159. Default: 0 (disabled)
  1160. IP Variables
  1161. ============
  1162. ip_local_port_range - 2 INTEGERS
  1163. Defines the local port range that is used by TCP and UDP to
  1164. choose the local port. The first number is the first, the
  1165. second the last local port number.
  1166. If possible, it is better these numbers have different parity
  1167. (one even and one odd value).
  1168. Must be greater than or equal to ip_unprivileged_port_start.
  1169. The default values are 32768 and 60999 respectively.
  1170. ip_local_reserved_ports - list of comma separated ranges
  1171. Specify the ports which are reserved for known third-party
  1172. applications. These ports will not be used by automatic port
  1173. assignments (e.g. when calling connect() or bind() with port
  1174. number 0). Explicit port allocation behavior is unchanged.
  1175. The format used for both input and output is a comma separated
  1176. list of ranges (e.g. "1,2-4,10-10" for ports 1, 2, 3, 4 and
  1177. 10). Writing to the file will clear all previously reserved
  1178. ports and update the current list with the one given in the
  1179. input.
  1180. Note that ip_local_port_range and ip_local_reserved_ports
  1181. settings are independent and both are considered by the kernel
  1182. when determining which ports are available for automatic port
  1183. assignments.
  1184. You can reserve ports which are not in the current
  1185. ip_local_port_range, e.g.::
  1186. $ cat /proc/sys/net/ipv4/ip_local_port_range
  1187. 32000 60999
  1188. $ cat /proc/sys/net/ipv4/ip_local_reserved_ports
  1189. 8080,9148
  1190. although this is redundant. However such a setting is useful
  1191. if later the port range is changed to a value that will
  1192. include the reserved ports. Also keep in mind, that overlapping
  1193. of these ranges may affect probability of selecting ephemeral
  1194. ports which are right after block of reserved ports.
  1195. Default: Empty
  1196. ip_unprivileged_port_start - INTEGER
  1197. This is a per-namespace sysctl. It defines the first
  1198. unprivileged port in the network namespace. Privileged ports
  1199. require root or CAP_NET_BIND_SERVICE in order to bind to them.
  1200. To disable all privileged ports, set this to 0. They must not
  1201. overlap with the ip_local_port_range.
  1202. Default: 1024
  1203. ip_nonlocal_bind - BOOLEAN
  1204. If enabled, allows processes to bind() to non-local IP addresses,
  1205. which can be quite useful - but may break some applications.
  1206. Possible values:
  1207. - 0 (disabled)
  1208. - 1 (enabled)
  1209. Default: 0 (disabled)
  1210. ip_autobind_reuse - BOOLEAN
  1211. By default, bind() does not select the ports automatically even if
  1212. the new socket and all sockets bound to the port have SO_REUSEADDR.
  1213. ip_autobind_reuse allows bind() to reuse the port and this is useful
  1214. when you use bind()+connect(), but may break some applications.
  1215. The preferred solution is to use IP_BIND_ADDRESS_NO_PORT and this
  1216. option should only be set by experts.
  1217. Possible values:
  1218. - 0 (disabled)
  1219. - 1 (enabled)
  1220. Default: 0 (disabled)
  1221. ip_dynaddr - INTEGER
  1222. If set non-zero, enables support for dynamic addresses.
  1223. If set to a non-zero value larger than 1, a kernel log
  1224. message will be printed when dynamic address rewriting
  1225. occurs.
  1226. Default: 0
  1227. ip_early_demux - BOOLEAN
  1228. Optimize input packet processing down to one demux for
  1229. certain kinds of local sockets. Currently we only do this
  1230. for established TCP and connected UDP sockets.
  1231. It may add an additional cost for pure routing workloads that
  1232. reduces overall throughput, in such case you should disable it.
  1233. Possible values:
  1234. - 0 (disabled)
  1235. - 1 (enabled)
  1236. Default: 1 (enabled)
  1237. ping_group_range - 2 INTEGERS
  1238. Restrict ICMP_PROTO datagram sockets to users in the group range.
  1239. The default is "1 0", meaning, that nobody (not even root) may
  1240. create ping sockets. Setting it to "100 100" would grant permissions
  1241. to the single group. "0 4294967294" would enable it for the world, "100
  1242. 4294967294" would enable it for the users, but not daemons.
  1243. tcp_early_demux - BOOLEAN
  1244. Enable early demux for established TCP sockets.
  1245. Possible values:
  1246. - 0 (disabled)
  1247. - 1 (enabled)
  1248. Default: 1 (enabled)
  1249. udp_early_demux - BOOLEAN
  1250. Enable early demux for connected UDP sockets. Disable this if
  1251. your system could experience more unconnected load.
  1252. Possible values:
  1253. - 0 (disabled)
  1254. - 1 (enabled)
  1255. Default: 1 (enabled)
  1256. icmp_echo_ignore_all - BOOLEAN
  1257. If enabled, then the kernel will ignore all ICMP ECHO
  1258. requests sent to it.
  1259. Possible values:
  1260. - 0 (disabled)
  1261. - 1 (enabled)
  1262. Default: 0 (disabled)
  1263. icmp_echo_enable_probe - BOOLEAN
  1264. If enabled, then the kernel will respond to RFC 8335 PROBE
  1265. requests sent to it.
  1266. Possible values:
  1267. - 0 (disabled)
  1268. - 1 (enabled)
  1269. Default: 0 (disabled)
  1270. icmp_echo_ignore_broadcasts - BOOLEAN
  1271. If enabled, then the kernel will ignore all ICMP ECHO and
  1272. TIMESTAMP requests sent to it via broadcast/multicast.
  1273. Possible values:
  1274. - 0 (disabled)
  1275. - 1 (enabled)
  1276. Default: 1 (enabled)
  1277. icmp_ratelimit - INTEGER
  1278. Limit the maximal rates for sending ICMP packets whose type matches
  1279. icmp_ratemask (see below) to specific targets.
  1280. 0 to disable any limiting,
  1281. otherwise the minimal space between responses in milliseconds.
  1282. Note that another sysctl, icmp_msgs_per_sec limits the number
  1283. of ICMP packets sent on all targets.
  1284. Default: 1000
  1285. icmp_msgs_per_sec - INTEGER
  1286. Limit maximal number of ICMP packets sent per second from this host.
  1287. Only messages whose type matches icmp_ratemask (see below) are
  1288. controlled by this limit. For security reasons, the precise count
  1289. of messages per second is randomized.
  1290. Default: 1000
  1291. icmp_msgs_burst - INTEGER
  1292. icmp_msgs_per_sec controls number of ICMP packets sent per second,
  1293. while icmp_msgs_burst controls the burst size of these packets.
  1294. For security reasons, the precise burst size is randomized.
  1295. Default: 50
  1296. icmp_ratemask - INTEGER
  1297. Mask made of ICMP types for which rates are being limited.
  1298. Significant bits: IHGFEDCBA9876543210
  1299. Default mask: 0000001100000011000 (6168)
  1300. Bit definitions (see include/linux/icmp.h):
  1301. = =========================
  1302. 0 Echo Reply
  1303. 3 Destination Unreachable [1]_
  1304. 4 Source Quench [1]_
  1305. 5 Redirect
  1306. 8 Echo Request
  1307. B Time Exceeded [1]_
  1308. C Parameter Problem [1]_
  1309. D Timestamp Request
  1310. E Timestamp Reply
  1311. F Info Request
  1312. G Info Reply
  1313. H Address Mask Request
  1314. I Address Mask Reply
  1315. = =========================
  1316. .. [1] These are rate limited by default (see default mask above)
  1317. icmp_ignore_bogus_error_responses - BOOLEAN
  1318. Some routers violate RFC1122 by sending bogus responses to broadcast
  1319. frames. Such violations are normally logged via a kernel warning.
  1320. If enabled, the kernel will not give such warnings, which
  1321. will avoid log file clutter.
  1322. Possible values:
  1323. - 0 (disabled)
  1324. - 1 (enabled)
  1325. Default: 1 (enabled)
  1326. icmp_errors_use_inbound_ifaddr - BOOLEAN
  1327. If disabled, icmp error messages are sent with the primary address of
  1328. the exiting interface.
  1329. If enabled, the message will be sent with the primary address of
  1330. the interface that received the packet that caused the icmp error.
  1331. This is the behaviour many network administrators will expect from
  1332. a router. And it can make debugging complicated network layouts
  1333. much easier.
  1334. Note that if no primary address exists for the interface selected,
  1335. then the primary address of the first non-loopback interface that
  1336. has one will be used regardless of this setting.
  1337. Possible values:
  1338. - 0 (disabled)
  1339. - 1 (enabled)
  1340. Default: 0 (disabled)
  1341. icmp_errors_extension_mask - UNSIGNED INTEGER
  1342. Bitmask of ICMP extensions to append to ICMPv4 error messages
  1343. ("Destination Unreachable", "Time Exceeded" and "Parameter Problem").
  1344. The original datagram is trimmed / padded to 128 bytes in order to be
  1345. compatible with applications that do not comply with RFC 4884.
  1346. Possible extensions are:
  1347. ==== ==============================================================
  1348. 0x01 Incoming IP interface information according to RFC 5837.
  1349. Extension will include the index, IPv4 address (if present),
  1350. name and MTU of the IP interface that received the datagram
  1351. which elicited the ICMP error.
  1352. ==== ==============================================================
  1353. Default: 0x00 (no extensions)
  1354. igmp_max_memberships - INTEGER
  1355. Change the maximum number of multicast groups we can subscribe to.
  1356. Default: 20
  1357. Theoretical maximum value is bounded by having to send a membership
  1358. report in a single datagram (i.e. the report can't span multiple
  1359. datagrams, or risk confusing the switch and leaving groups you don't
  1360. intend to).
  1361. The number of supported groups 'M' is bounded by the number of group
  1362. report entries you can fit into a single datagram of 65535 bytes.
  1363. M = 65536-sizeof (ip header)/(sizeof(Group record))
  1364. Group records are variable length, with a minimum of 12 bytes.
  1365. So net.ipv4.igmp_max_memberships should not be set higher than:
  1366. (65536-24) / 12 = 5459
  1367. The value 5459 assumes no IP header options, so in practice
  1368. this number may be lower.
  1369. igmp_max_msf - INTEGER
  1370. Maximum number of addresses allowed in the source filter list for a
  1371. multicast group.
  1372. Default: 10
  1373. igmp_qrv - INTEGER
  1374. Controls the IGMP query robustness variable (see RFC2236 8.1).
  1375. Default: 2 (as specified by RFC2236 8.1)
  1376. Minimum: 1 (as specified by RFC6636 4.5)
  1377. force_igmp_version - INTEGER
  1378. - 0 - (default) No enforcement of a IGMP version, IGMPv1/v2 fallback
  1379. allowed. Will back to IGMPv3 mode again if all IGMPv1/v2 Querier
  1380. Present timer expires.
  1381. - 1 - Enforce to use IGMP version 1. Will also reply IGMPv1 report if
  1382. receive IGMPv2/v3 query.
  1383. - 2 - Enforce to use IGMP version 2. Will fallback to IGMPv1 if receive
  1384. IGMPv1 query message. Will reply report if receive IGMPv3 query.
  1385. - 3 - Enforce to use IGMP version 3. The same react with default 0.
  1386. .. note::
  1387. this is not the same with force_mld_version because IGMPv3 RFC3376
  1388. Security Considerations does not have clear description that we could
  1389. ignore other version messages completely as MLDv2 RFC3810. So make
  1390. this value as default 0 is recommended.
  1391. ``conf/interface/*``
  1392. changes special settings per interface (where
  1393. interface" is the name of your network interface)
  1394. ``conf/all/*``
  1395. is special, changes the settings for all interfaces
  1396. log_martians - BOOLEAN
  1397. Log packets with impossible addresses to kernel log.
  1398. log_martians for the interface will be enabled if at least one of
  1399. conf/{all,interface}/log_martians is set to TRUE,
  1400. it will be disabled otherwise
  1401. accept_redirects - BOOLEAN
  1402. Accept ICMP redirect messages.
  1403. accept_redirects for the interface will be enabled if:
  1404. - both conf/{all,interface}/accept_redirects are TRUE in the case
  1405. forwarding for the interface is enabled
  1406. or
  1407. - at least one of conf/{all,interface}/accept_redirects is TRUE in the
  1408. case forwarding for the interface is disabled
  1409. accept_redirects for the interface will be disabled otherwise
  1410. default:
  1411. - TRUE (host)
  1412. - FALSE (router)
  1413. forwarding - BOOLEAN
  1414. Enable IP forwarding on this interface. This controls whether packets
  1415. received _on_ this interface can be forwarded.
  1416. mc_forwarding - BOOLEAN
  1417. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  1418. and a multicast routing daemon is required.
  1419. conf/all/mc_forwarding must also be set to TRUE to enable multicast
  1420. routing for the interface
  1421. medium_id - INTEGER
  1422. Integer value used to differentiate the devices by the medium they
  1423. are attached to. Two devices can have different id values when
  1424. the broadcast packets are received only on one of them.
  1425. The default value 0 means that the device is the only interface
  1426. to its medium, value of -1 means that medium is not known.
  1427. Currently, it is used to change the proxy_arp behavior:
  1428. the proxy_arp feature is enabled for packets forwarded between
  1429. two devices attached to different media.
  1430. proxy_arp - BOOLEAN
  1431. Do proxy arp.
  1432. proxy_arp for the interface will be enabled if at least one of
  1433. conf/{all,interface}/proxy_arp is set to TRUE,
  1434. it will be disabled otherwise
  1435. proxy_arp_pvlan - BOOLEAN
  1436. Private VLAN proxy arp.
  1437. Basically allow proxy arp replies back to the same interface
  1438. (from which the ARP request/solicitation was received).
  1439. This is done to support (ethernet) switch features, like RFC
  1440. 3069, where the individual ports are NOT allowed to
  1441. communicate with each other, but they are allowed to talk to
  1442. the upstream router. As described in RFC 3069, it is possible
  1443. to allow these hosts to communicate through the upstream
  1444. router by proxy_arp'ing. Don't need to be used together with
  1445. proxy_arp.
  1446. This technology is known by different names:
  1447. - In RFC 3069 it is called VLAN Aggregation.
  1448. - Cisco and Allied Telesyn call it Private VLAN.
  1449. - Hewlett-Packard call it Source-Port filtering or port-isolation.
  1450. - Ericsson call it MAC-Forced Forwarding (RFC Draft).
  1451. proxy_delay - INTEGER
  1452. Delay proxy response.
  1453. Delay response to a neighbor solicitation when proxy_arp
  1454. or proxy_ndp is enabled. A random value between [0, proxy_delay)
  1455. will be chosen, setting to zero means reply with no delay.
  1456. Value in jiffies. Defaults to 80.
  1457. shared_media - BOOLEAN
  1458. Send(router) or accept(host) RFC1620 shared media redirects.
  1459. Overrides secure_redirects.
  1460. shared_media for the interface will be enabled if at least one of
  1461. conf/{all,interface}/shared_media is set to TRUE,
  1462. it will be disabled otherwise
  1463. default TRUE
  1464. secure_redirects - BOOLEAN
  1465. Accept ICMP redirect messages only to gateways listed in the
  1466. interface's current gateway list. Even if disabled, RFC1122 redirect
  1467. rules still apply.
  1468. Overridden by shared_media.
  1469. secure_redirects for the interface will be enabled if at least one of
  1470. conf/{all,interface}/secure_redirects is set to TRUE,
  1471. it will be disabled otherwise
  1472. default TRUE
  1473. send_redirects - BOOLEAN
  1474. Send redirects, if router.
  1475. send_redirects for the interface will be enabled if at least one of
  1476. conf/{all,interface}/send_redirects is set to TRUE,
  1477. it will be disabled otherwise
  1478. Default: TRUE
  1479. bootp_relay - BOOLEAN
  1480. Accept packets with source address 0.b.c.d destined
  1481. not to this host as local ones. It is supposed, that
  1482. BOOTP relay daemon will catch and forward such packets.
  1483. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  1484. for the interface
  1485. default FALSE
  1486. Not Implemented Yet.
  1487. accept_source_route - BOOLEAN
  1488. Accept packets with SRR option.
  1489. conf/all/accept_source_route must also be set to TRUE to accept packets
  1490. with SRR option on the interface
  1491. default
  1492. - TRUE (router)
  1493. - FALSE (host)
  1494. accept_local - BOOLEAN
  1495. Accept packets with local source addresses. In combination with
  1496. suitable routing, this can be used to direct packets between two
  1497. local interfaces over the wire and have them accepted properly.
  1498. default FALSE
  1499. route_localnet - BOOLEAN
  1500. Do not consider loopback addresses as martian source or destination
  1501. while routing. This enables the use of 127/8 for local routing purposes.
  1502. default FALSE
  1503. rp_filter - INTEGER
  1504. - 0 - No source validation.
  1505. - 1 - Strict mode as defined in RFC3704 Strict Reverse Path
  1506. Each incoming packet is tested against the FIB and if the interface
  1507. is not the best reverse path the packet check will fail.
  1508. By default failed packets are discarded.
  1509. - 2 - Loose mode as defined in RFC3704 Loose Reverse Path
  1510. Each incoming packet's source address is also tested against the FIB
  1511. and if the source address is not reachable via any interface
  1512. the packet check will fail.
  1513. Current recommended practice in RFC3704 is to enable strict mode
  1514. to prevent IP spoofing from DDos attacks. If using asymmetric routing
  1515. or other complicated routing, then loose mode is recommended.
  1516. The max value from conf/{all,interface}/rp_filter is used
  1517. when doing source validation on the {interface}.
  1518. Default value is 0. Note that some distributions enable it
  1519. in startup scripts.
  1520. src_valid_mark - BOOLEAN
  1521. - 0 - The fwmark of the packet is not included in reverse path
  1522. route lookup. This allows for asymmetric routing configurations
  1523. utilizing the fwmark in only one direction, e.g., transparent
  1524. proxying.
  1525. - 1 - The fwmark of the packet is included in reverse path route
  1526. lookup. This permits rp_filter to function when the fwmark is
  1527. used for routing traffic in both directions.
  1528. This setting also affects the utilization of fmwark when
  1529. performing source address selection for ICMP replies, or
  1530. determining addresses stored for the IPOPT_TS_TSANDADDR and
  1531. IPOPT_RR IP options.
  1532. The max value from conf/{all,interface}/src_valid_mark is used.
  1533. Default value is 0.
  1534. arp_filter - BOOLEAN
  1535. - 1 - Allows you to have multiple network interfaces on the same
  1536. subnet, and have the ARPs for each interface be answered
  1537. based on whether or not the kernel would route a packet from
  1538. the ARP'd IP out that interface (therefore you must use source
  1539. based routing for this to work). In other words it allows control
  1540. of which cards (usually 1) will respond to an arp request.
  1541. - 0 - (default) The kernel can respond to arp requests with addresses
  1542. from other interfaces. This may seem wrong but it usually makes
  1543. sense, because it increases the chance of successful communication.
  1544. IP addresses are owned by the complete host on Linux, not by
  1545. particular interfaces. Only for more complex setups like load-
  1546. balancing, does this behaviour cause problems.
  1547. arp_filter for the interface will be enabled if at least one of
  1548. conf/{all,interface}/arp_filter is set to TRUE,
  1549. it will be disabled otherwise
  1550. arp_announce - INTEGER
  1551. Define different restriction levels for announcing the local
  1552. source IP address from IP packets in ARP requests sent on
  1553. interface:
  1554. - 0 - (default) Use any local address, configured on any interface
  1555. - 1 - Try to avoid local addresses that are not in the target's
  1556. subnet for this interface. This mode is useful when target
  1557. hosts reachable via this interface require the source IP
  1558. address in ARP requests to be part of their logical network
  1559. configured on the receiving interface. When we generate the
  1560. request we will check all our subnets that include the
  1561. target IP and will preserve the source address if it is from
  1562. such subnet. If there is no such subnet we select source
  1563. address according to the rules for level 2.
  1564. - 2 - Always use the best local address for this target.
  1565. In this mode we ignore the source address in the IP packet
  1566. and try to select local address that we prefer for talks with
  1567. the target host. Such local address is selected by looking
  1568. for primary IP addresses on all our subnets on the outgoing
  1569. interface that include the target IP address. If no suitable
  1570. local address is found we select the first local address
  1571. we have on the outgoing interface or on all other interfaces,
  1572. with the hope we will receive reply for our request and
  1573. even sometimes no matter the source IP address we announce.
  1574. The max value from conf/{all,interface}/arp_announce is used.
  1575. Increasing the restriction level gives more chance for
  1576. receiving answer from the resolved target while decreasing
  1577. the level announces more valid sender's information.
  1578. arp_ignore - INTEGER
  1579. Define different modes for sending replies in response to
  1580. received ARP requests that resolve local target IP addresses:
  1581. - 0 - (default): reply for any local target IP address, configured
  1582. on any interface
  1583. - 1 - reply only if the target IP address is local address
  1584. configured on the incoming interface
  1585. - 2 - reply only if the target IP address is local address
  1586. configured on the incoming interface and both with the
  1587. sender's IP address are part from same subnet on this interface
  1588. - 3 - do not reply for local addresses configured with scope host,
  1589. only resolutions for global and link addresses are replied
  1590. - 4-7 - reserved
  1591. - 8 - do not reply for all local addresses
  1592. The max value from conf/{all,interface}/arp_ignore is used
  1593. when ARP request is received on the {interface}
  1594. arp_notify - BOOLEAN
  1595. Define mode for notification of address and device changes.
  1596. == ==========================================================
  1597. 0 (default): do nothing
  1598. 1 Generate gratuitous arp requests when device is brought up
  1599. or hardware address changes.
  1600. == ==========================================================
  1601. arp_accept - INTEGER
  1602. Define behavior for accepting gratuitous ARP (garp) frames from devices
  1603. that are not already present in the ARP table:
  1604. - 0 - don't create new entries in the ARP table
  1605. - 1 - create new entries in the ARP table
  1606. - 2 - create new entries only if the source IP address is in the same
  1607. subnet as an address configured on the interface that received the
  1608. garp message.
  1609. Both replies and requests type gratuitous arp will trigger the
  1610. ARP table to be updated, if this setting is on.
  1611. If the ARP table already contains the IP address of the
  1612. gratuitous arp frame, the arp table will be updated regardless
  1613. if this setting is on or off.
  1614. arp_evict_nocarrier - BOOLEAN
  1615. Clears the ARP cache on NOCARRIER events. This option is important for
  1616. wireless devices where the ARP cache should not be cleared when roaming
  1617. between access points on the same network. In most cases this should
  1618. remain as the default (1).
  1619. Possible values:
  1620. - 0 (disabled) - Do not clear ARP cache on NOCARRIER events
  1621. - 1 (enabled) - Clear the ARP cache on NOCARRIER events
  1622. Default: 1 (enabled)
  1623. mcast_solicit - INTEGER
  1624. The maximum number of multicast probes in INCOMPLETE state,
  1625. when the associated hardware address is unknown. Defaults
  1626. to 3.
  1627. ucast_solicit - INTEGER
  1628. The maximum number of unicast probes in PROBE state, when
  1629. the hardware address is being reconfirmed. Defaults to 3.
  1630. app_solicit - INTEGER
  1631. The maximum number of probes to send to the user space ARP daemon
  1632. via netlink before dropping back to multicast probes (see
  1633. mcast_resolicit). Defaults to 0.
  1634. mcast_resolicit - INTEGER
  1635. The maximum number of multicast probes after unicast and
  1636. app probes in PROBE state. Defaults to 0.
  1637. disable_policy - BOOLEAN
  1638. Disable IPSEC policy (SPD) for this interface
  1639. Possible values:
  1640. - 0 (disabled)
  1641. - 1 (enabled)
  1642. Default: 0 (disabled)
  1643. disable_xfrm - BOOLEAN
  1644. Disable IPSEC encryption on this interface, whatever the policy
  1645. Possible values:
  1646. - 0 (disabled)
  1647. - 1 (enabled)
  1648. Default: 0 (disabled)
  1649. igmpv2_unsolicited_report_interval - INTEGER
  1650. The interval in milliseconds in which the next unsolicited
  1651. IGMPv1 or IGMPv2 report retransmit will take place.
  1652. Default: 10000 (10 seconds)
  1653. igmpv3_unsolicited_report_interval - INTEGER
  1654. The interval in milliseconds in which the next unsolicited
  1655. IGMPv3 report retransmit will take place.
  1656. Default: 1000 (1 seconds)
  1657. ignore_routes_with_linkdown - BOOLEAN
  1658. Ignore routes whose link is down when performing a FIB lookup.
  1659. Possible values:
  1660. - 0 (disabled)
  1661. - 1 (enabled)
  1662. Default: 0 (disabled)
  1663. promote_secondaries - BOOLEAN
  1664. When a primary IP address is removed from this interface
  1665. promote a corresponding secondary IP address instead of
  1666. removing all the corresponding secondary IP addresses.
  1667. Possible values:
  1668. - 0 (disabled)
  1669. - 1 (enabled)
  1670. Default: 0 (disabled)
  1671. drop_unicast_in_l2_multicast - BOOLEAN
  1672. Drop any unicast IP packets that are received in link-layer
  1673. multicast (or broadcast) frames.
  1674. This behavior (for multicast) is actually a SHOULD in RFC
  1675. 1122, but is disabled by default for compatibility reasons.
  1676. Possible values:
  1677. - 0 (disabled)
  1678. - 1 (enabled)
  1679. Default: 0 (disabled)
  1680. drop_gratuitous_arp - BOOLEAN
  1681. Drop all gratuitous ARP frames, for example if there's a known
  1682. good ARP proxy on the network and such frames need not be used
  1683. (or in the case of 802.11, must not be used to prevent attacks.)
  1684. Possible values:
  1685. - 0 (disabled)
  1686. - 1 (enabled)
  1687. Default: 0 (disabled)
  1688. tag - INTEGER
  1689. Allows you to write a number, which can be used as required.
  1690. Default value is 0.
  1691. xfrm4_gc_thresh - INTEGER
  1692. (Obsolete since linux-4.14)
  1693. The threshold at which we will start garbage collecting for IPv4
  1694. destination cache entries. At twice this value the system will
  1695. refuse new allocations.
  1696. igmp_link_local_mcast_reports - BOOLEAN
  1697. Enable IGMP reports for link local multicast groups in the
  1698. 224.0.0.X range.
  1699. Default TRUE
  1700. Alexey Kuznetsov.
  1701. kuznet@ms2.inr.ac.ru
  1702. Updated by:
  1703. - Andi Kleen
  1704. ak@muc.de
  1705. - Nicolas Delon
  1706. delon.nicolas@wanadoo.fr
  1707. /proc/sys/net/ipv6/* Variables
  1708. ==============================
  1709. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  1710. apply to IPv6 [XXX?].
  1711. bindv6only - BOOLEAN
  1712. Default value for IPV6_V6ONLY socket option,
  1713. which restricts use of the IPv6 socket to IPv6 communication
  1714. only.
  1715. Possible values:
  1716. - 0 (disabled) - enable IPv4-mapped address feature
  1717. - 1 (enabled) - disable IPv4-mapped address feature
  1718. Default: 0 (disabled)
  1719. flowlabel_consistency - BOOLEAN
  1720. Protect the consistency (and unicity) of flow label.
  1721. You have to disable it to use IPV6_FL_F_REFLECT flag on the
  1722. flow label manager.
  1723. Possible values:
  1724. - 0 (disabled)
  1725. - 1 (enabled)
  1726. Default: 1 (enabled)
  1727. auto_flowlabels - INTEGER
  1728. Automatically generate flow labels based on a flow hash of the
  1729. packet. This allows intermediate devices, such as routers, to
  1730. identify packet flows for mechanisms like Equal Cost Multipath
  1731. Routing (see RFC 6438).
  1732. = ===========================================================
  1733. 0 automatic flow labels are completely disabled
  1734. 1 automatic flow labels are enabled by default, they can be
  1735. disabled on a per socket basis using the IPV6_AUTOFLOWLABEL
  1736. socket option
  1737. 2 automatic flow labels are allowed, they may be enabled on a
  1738. per socket basis using the IPV6_AUTOFLOWLABEL socket option
  1739. 3 automatic flow labels are enabled and enforced, they cannot
  1740. be disabled by the socket option
  1741. = ===========================================================
  1742. Default: 1
  1743. flowlabel_state_ranges - BOOLEAN
  1744. Split the flow label number space into two ranges. 0-0x7FFFF is
  1745. reserved for the IPv6 flow manager facility, 0x80000-0xFFFFF
  1746. is reserved for stateless flow labels as described in RFC6437.
  1747. Possible values:
  1748. - 0 (disabled)
  1749. - 1 (enabled)
  1750. Default: 1 (enabled)
  1751. flowlabel_reflect - INTEGER
  1752. Control flow label reflection. Needed for Path MTU
  1753. Discovery to work with Equal Cost Multipath Routing in anycast
  1754. environments. See RFC 7690 and:
  1755. https://tools.ietf.org/html/draft-wang-6man-flow-label-reflection-01
  1756. This is a bitmask.
  1757. - 1: enabled for established flows
  1758. Note that this prevents automatic flowlabel changes, as done
  1759. in "tcp: change IPv6 flow-label upon receiving spurious retransmission"
  1760. and "tcp: Change txhash on every SYN and RTO retransmit"
  1761. - 2: enabled for TCP RESET packets (no active listener)
  1762. If set, a RST packet sent in response to a SYN packet on a closed
  1763. port will reflect the incoming flow label.
  1764. - 4: enabled for ICMPv6 echo reply messages.
  1765. Default: 0
  1766. fib_multipath_hash_policy - INTEGER
  1767. Controls which hash policy to use for multipath routes.
  1768. Default: 0 (Layer 3)
  1769. Possible values:
  1770. - 0 - Layer 3 (source and destination addresses plus flow label)
  1771. - 1 - Layer 4 (standard 5-tuple)
  1772. - 2 - Layer 3 or inner Layer 3 if present
  1773. - 3 - Custom multipath hash. Fields used for multipath hash calculation
  1774. are determined by fib_multipath_hash_fields sysctl
  1775. fib_multipath_hash_fields - UNSIGNED INTEGER
  1776. When fib_multipath_hash_policy is set to 3 (custom multipath hash), the
  1777. fields used for multipath hash calculation are determined by this
  1778. sysctl.
  1779. This value is a bitmask which enables various fields for multipath hash
  1780. calculation.
  1781. Possible fields are:
  1782. ====== ============================
  1783. 0x0001 Source IP address
  1784. 0x0002 Destination IP address
  1785. 0x0004 IP protocol
  1786. 0x0008 Flow Label
  1787. 0x0010 Source port
  1788. 0x0020 Destination port
  1789. 0x0040 Inner source IP address
  1790. 0x0080 Inner destination IP address
  1791. 0x0100 Inner IP protocol
  1792. 0x0200 Inner Flow Label
  1793. 0x0400 Inner source port
  1794. 0x0800 Inner destination port
  1795. ====== ============================
  1796. Default: 0x0007 (source IP, destination IP and IP protocol)
  1797. anycast_src_echo_reply - BOOLEAN
  1798. Controls the use of anycast addresses as source addresses for ICMPv6
  1799. echo reply
  1800. Possible values:
  1801. - 0 (disabled)
  1802. - 1 (enabled)
  1803. Default: 0 (disabled)
  1804. idgen_delay - INTEGER
  1805. Controls the delay in seconds after which time to retry
  1806. privacy stable address generation if a DAD conflict is
  1807. detected.
  1808. Default: 1 (as specified in RFC7217)
  1809. idgen_retries - INTEGER
  1810. Controls the number of retries to generate a stable privacy
  1811. address if a DAD conflict is detected.
  1812. Default: 3 (as specified in RFC7217)
  1813. mld_qrv - INTEGER
  1814. Controls the MLD query robustness variable (see RFC3810 9.1).
  1815. Default: 2 (as specified by RFC3810 9.1)
  1816. Minimum: 1 (as specified by RFC6636 4.5)
  1817. max_dst_opts_number - INTEGER
  1818. Maximum number of non-padding TLVs allowed in a Destination
  1819. options extension header. If this value is less than zero
  1820. then unknown options are disallowed and the number of known
  1821. TLVs allowed is the absolute value of this number.
  1822. Default: 8
  1823. max_hbh_opts_number - INTEGER
  1824. Maximum number of non-padding TLVs allowed in a Hop-by-Hop
  1825. options extension header. If this value is less than zero
  1826. then unknown options are disallowed and the number of known
  1827. TLVs allowed is the absolute value of this number.
  1828. Default: 8
  1829. max_dst_opts_length - INTEGER
  1830. Maximum length allowed for a Destination options extension
  1831. header.
  1832. Default: INT_MAX (unlimited)
  1833. max_hbh_length - INTEGER
  1834. Maximum length allowed for a Hop-by-Hop options extension
  1835. header.
  1836. Default: INT_MAX (unlimited)
  1837. skip_notify_on_dev_down - BOOLEAN
  1838. Controls whether an RTM_DELROUTE message is generated for routes
  1839. removed when a device is taken down or deleted. IPv4 does not
  1840. generate this message; IPv6 does by default. Setting this sysctl
  1841. to true skips the message, making IPv4 and IPv6 on par in relying
  1842. on userspace caches to track link events and evict routes.
  1843. Possible values:
  1844. - 0 (disabled) - generate the message
  1845. - 1 (enabled) - skip generating the message
  1846. Default: 0 (disabled)
  1847. nexthop_compat_mode - BOOLEAN
  1848. New nexthop API provides a means for managing nexthops independent of
  1849. prefixes. Backwards compatibility with old route format is enabled by
  1850. default which means route dumps and notifications contain the new
  1851. nexthop attribute but also the full, expanded nexthop definition.
  1852. Further, updates or deletes of a nexthop configuration generate route
  1853. notifications for each fib entry using the nexthop. Once a system
  1854. understands the new API, this sysctl can be disabled to achieve full
  1855. performance benefits of the new API by disabling the nexthop expansion
  1856. and extraneous notifications.
  1857. Note that as a backward-compatible mode, dumping of modern features
  1858. might be incomplete or wrong. For example, resilient groups will not be
  1859. shown as such, but rather as just a list of next hops. Also weights that
  1860. do not fit into 8 bits will show incorrectly.
  1861. Default: true (backward compat mode)
  1862. fib_notify_on_flag_change - INTEGER
  1863. Whether to emit RTM_NEWROUTE notifications whenever RTM_F_OFFLOAD/
  1864. RTM_F_TRAP/RTM_F_OFFLOAD_FAILED flags are changed.
  1865. After installing a route to the kernel, user space receives an
  1866. acknowledgment, which means the route was installed in the kernel,
  1867. but not necessarily in hardware.
  1868. It is also possible for a route already installed in hardware to change
  1869. its action and therefore its flags. For example, a host route that is
  1870. trapping packets can be "promoted" to perform decapsulation following
  1871. the installation of an IPinIP/VXLAN tunnel.
  1872. The notifications will indicate to user-space the state of the route.
  1873. Default: 0 (Do not emit notifications.)
  1874. Possible values:
  1875. - 0 - Do not emit notifications.
  1876. - 1 - Emit notifications.
  1877. - 2 - Emit notifications only for RTM_F_OFFLOAD_FAILED flag change.
  1878. ioam6_id - INTEGER
  1879. Define the IOAM id of this node. Uses only 24 bits out of 32 in total.
  1880. Possible value range:
  1881. - Min: 0
  1882. - Max: 0xFFFFFF
  1883. Default: 0xFFFFFF
  1884. ioam6_id_wide - LONG INTEGER
  1885. Define the wide IOAM id of this node. Uses only 56 bits out of 64 in
  1886. total. Can be different from ioam6_id.
  1887. Possible value range:
  1888. - Min: 0
  1889. - Max: 0xFFFFFFFFFFFFFF
  1890. Default: 0xFFFFFFFFFFFFFF
  1891. IPv6 Fragmentation:
  1892. ip6frag_high_thresh - INTEGER
  1893. Maximum memory used to reassemble IPv6 fragments. When
  1894. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  1895. the fragment handler will toss packets until ip6frag_low_thresh
  1896. is reached.
  1897. ip6frag_low_thresh - INTEGER
  1898. See ip6frag_high_thresh
  1899. ip6frag_time - INTEGER
  1900. Time in seconds to keep an IPv6 fragment in memory.
  1901. ``conf/default/*``:
  1902. Change the interface-specific default settings.
  1903. These settings would be used during creating new interfaces.
  1904. ``conf/all/*``:
  1905. Change all the interface-specific settings.
  1906. [XXX: Other special features than forwarding?]
  1907. conf/all/disable_ipv6 - BOOLEAN
  1908. Changing this value is same as changing ``conf/default/disable_ipv6``
  1909. setting and also all per-interface ``disable_ipv6`` settings to the same
  1910. value.
  1911. Reading this value does not have any particular meaning. It does not say
  1912. whether IPv6 support is enabled or disabled. Returned value can be 1
  1913. also in the case when some interface has ``disable_ipv6`` set to 0 and
  1914. has configured IPv6 addresses.
  1915. conf/all/forwarding - BOOLEAN
  1916. Enable global IPv6 forwarding between all interfaces.
  1917. IPv4 and IPv6 work differently here; the ``force_forwarding`` flag must
  1918. be used to control which interfaces may forward packets.
  1919. This also sets all interfaces' Host/Router setting
  1920. 'forwarding' to the specified value. See below for details.
  1921. This referred to as global forwarding.
  1922. proxy_ndp - BOOLEAN
  1923. Do proxy ndp.
  1924. Possible values:
  1925. - 0 (disabled)
  1926. - 1 (enabled)
  1927. Default: 0 (disabled)
  1928. force_forwarding - BOOLEAN
  1929. Enable forwarding on this interface only -- regardless of the setting on
  1930. ``conf/all/forwarding``. When setting ``conf.all.forwarding`` to 0,
  1931. the ``force_forwarding`` flag will be reset on all interfaces.
  1932. fwmark_reflect - BOOLEAN
  1933. Controls the fwmark of kernel-generated IPv6 reply packets that are not
  1934. associated with a socket for example, TCP RSTs or ICMPv6 echo replies).
  1935. If disabled, these packets have a fwmark of zero. If enabled, they have the
  1936. fwmark of the packet they are replying to.
  1937. Possible values:
  1938. - 0 (disabled)
  1939. - 1 (enabled)
  1940. Default: 0 (disabled)
  1941. ``conf/interface/*``:
  1942. Change special settings per interface.
  1943. The functional behaviour for certain settings is different
  1944. depending on whether local forwarding is enabled or not.
  1945. accept_ra - INTEGER
  1946. Accept Router Advertisements; autoconfigure using them.
  1947. It also determines whether or not to transmit Router
  1948. Solicitations. If and only if the functional setting is to
  1949. accept Router Advertisements, Router Solicitations will be
  1950. transmitted.
  1951. Possible values are:
  1952. == ===========================================================
  1953. 0 Do not accept Router Advertisements.
  1954. 1 Accept Router Advertisements if forwarding is disabled.
  1955. 2 Overrule forwarding behaviour. Accept Router Advertisements
  1956. even if forwarding is enabled.
  1957. == ===========================================================
  1958. Functional default:
  1959. - enabled if local forwarding is disabled.
  1960. - disabled if local forwarding is enabled.
  1961. accept_ra_defrtr - BOOLEAN
  1962. Learn default router in Router Advertisement.
  1963. Functional default:
  1964. - enabled if accept_ra is enabled.
  1965. - disabled if accept_ra is disabled.
  1966. ra_defrtr_metric - UNSIGNED INTEGER
  1967. Route metric for default route learned in Router Advertisement. This value
  1968. will be assigned as metric for the default route learned via IPv6 Router
  1969. Advertisement. Takes affect only if accept_ra_defrtr is enabled.
  1970. Possible values:
  1971. 1 to 0xFFFFFFFF
  1972. Default: IP6_RT_PRIO_USER i.e. 1024.
  1973. accept_ra_from_local - BOOLEAN
  1974. Accept RA with source-address that is found on local machine
  1975. if the RA is otherwise proper and able to be accepted.
  1976. Default is to NOT accept these as it may be an un-intended
  1977. network loop.
  1978. Functional default:
  1979. - enabled if accept_ra_from_local is enabled
  1980. on a specific interface.
  1981. - disabled if accept_ra_from_local is disabled
  1982. on a specific interface.
  1983. accept_ra_min_hop_limit - INTEGER
  1984. Minimum hop limit Information in Router Advertisement.
  1985. Hop limit Information in Router Advertisement less than this
  1986. variable shall be ignored.
  1987. Default: 1
  1988. accept_ra_min_lft - INTEGER
  1989. Minimum acceptable lifetime value in Router Advertisement.
  1990. RA sections with a lifetime less than this value shall be
  1991. ignored. Zero lifetimes stay unaffected.
  1992. Default: 0
  1993. accept_ra_pinfo - BOOLEAN
  1994. Learn Prefix Information in Router Advertisement.
  1995. Functional default:
  1996. - enabled if accept_ra is enabled.
  1997. - disabled if accept_ra is disabled.
  1998. ra_honor_pio_life - BOOLEAN
  1999. Whether to use RFC4862 Section 5.5.3e to determine the valid
  2000. lifetime of an address matching a prefix sent in a Router
  2001. Advertisement Prefix Information Option.
  2002. Possible values:
  2003. - 0 (disabled) - RFC4862 section 5.5.3e is used to determine
  2004. the valid lifetime of the address.
  2005. - 1 (enabled) - the PIO valid lifetime will always be honored.
  2006. Default: 0 (disabled)
  2007. ra_honor_pio_pflag - BOOLEAN
  2008. The Prefix Information Option P-flag indicates the network can
  2009. allocate a unique IPv6 prefix per client using DHCPv6-PD.
  2010. This sysctl can be enabled when a userspace DHCPv6-PD client
  2011. is running to cause the P-flag to take effect: i.e. the
  2012. P-flag suppresses any effects of the A-flag within the same
  2013. PIO. For a given PIO, P=1 and A=1 is treated as A=0.
  2014. Possible values:
  2015. - 0 (disabled) - the P-flag is ignored.
  2016. - 1 (enabled) - the P-flag will disable SLAAC autoconfiguration
  2017. for the given Prefix Information Option.
  2018. Default: 0 (disabled)
  2019. accept_ra_rt_info_min_plen - INTEGER
  2020. Minimum prefix length of Route Information in RA.
  2021. Route Information w/ prefix smaller than this variable shall
  2022. be ignored.
  2023. Functional default:
  2024. * 0 if accept_ra_rtr_pref is enabled.
  2025. * -1 if accept_ra_rtr_pref is disabled.
  2026. accept_ra_rt_info_max_plen - INTEGER
  2027. Maximum prefix length of Route Information in RA.
  2028. Route Information w/ prefix larger than this variable shall
  2029. be ignored.
  2030. Functional default:
  2031. * 0 if accept_ra_rtr_pref is enabled.
  2032. * -1 if accept_ra_rtr_pref is disabled.
  2033. accept_ra_rtr_pref - BOOLEAN
  2034. Accept Router Preference in RA.
  2035. Functional default:
  2036. - enabled if accept_ra is enabled.
  2037. - disabled if accept_ra is disabled.
  2038. accept_ra_mtu - BOOLEAN
  2039. Apply the MTU value specified in RA option 5 (RFC4861). If
  2040. disabled, the MTU specified in the RA will be ignored.
  2041. Functional default:
  2042. - enabled if accept_ra is enabled.
  2043. - disabled if accept_ra is disabled.
  2044. accept_redirects - BOOLEAN
  2045. Accept Redirects.
  2046. Functional default:
  2047. - enabled if local forwarding is disabled.
  2048. - disabled if local forwarding is enabled.
  2049. accept_source_route - INTEGER
  2050. Accept source routing (routing extension header).
  2051. - >= 0: Accept only routing header type 2.
  2052. - < 0: Do not accept routing header.
  2053. Default: 0
  2054. autoconf - BOOLEAN
  2055. Autoconfigure addresses using Prefix Information in Router
  2056. Advertisements.
  2057. Functional default:
  2058. - enabled if accept_ra_pinfo is enabled.
  2059. - disabled if accept_ra_pinfo is disabled.
  2060. dad_transmits - INTEGER
  2061. The amount of Duplicate Address Detection probes to send.
  2062. Default: 1
  2063. forwarding - INTEGER
  2064. Configure interface-specific Host/Router behaviour.
  2065. .. note::
  2066. It is recommended to have the same setting on all
  2067. interfaces; mixed router/host scenarios are rather uncommon.
  2068. Possible values are:
  2069. - 0 Forwarding disabled
  2070. - 1 Forwarding enabled
  2071. **FALSE (0)**:
  2072. By default, Host behaviour is assumed. This means:
  2073. 1. IsRouter flag is not set in Neighbour Advertisements.
  2074. 2. If accept_ra is TRUE (default), transmit Router
  2075. Solicitations.
  2076. 3. If accept_ra is TRUE (default), accept Router
  2077. Advertisements (and do autoconfiguration).
  2078. 4. If accept_redirects is TRUE (default), accept Redirects.
  2079. **TRUE (1)**:
  2080. If local forwarding is enabled, Router behaviour is assumed.
  2081. This means exactly the reverse from the above:
  2082. 1. IsRouter flag is set in Neighbour Advertisements.
  2083. 2. Router Solicitations are not sent unless accept_ra is 2.
  2084. 3. Router Advertisements are ignored unless accept_ra is 2.
  2085. 4. Redirects are ignored.
  2086. Default: 0 (disabled) if global forwarding is disabled (default),
  2087. otherwise 1 (enabled).
  2088. hop_limit - INTEGER
  2089. Default Hop Limit to set.
  2090. Default: 64
  2091. mtu - INTEGER
  2092. Default Maximum Transfer Unit
  2093. Default: 1280 (IPv6 required minimum)
  2094. ip_nonlocal_bind - BOOLEAN
  2095. If enabled, allows processes to bind() to non-local IPv6 addresses,
  2096. which can be quite useful - but may break some applications.
  2097. Possible values:
  2098. - 0 (disabled)
  2099. - 1 (enabled)
  2100. Default: 0 (disabled)
  2101. router_probe_interval - INTEGER
  2102. Minimum interval (in seconds) between Router Probing described
  2103. in RFC4191.
  2104. Default: 60
  2105. router_solicitation_delay - INTEGER
  2106. Number of seconds to wait after interface is brought up
  2107. before sending Router Solicitations.
  2108. Default: 1
  2109. router_solicitation_interval - INTEGER
  2110. Number of seconds to wait between Router Solicitations.
  2111. Default: 4
  2112. router_solicitations - INTEGER
  2113. Number of Router Solicitations to send until assuming no
  2114. routers are present.
  2115. Default: 3
  2116. use_oif_addrs_only - BOOLEAN
  2117. When enabled, the candidate source addresses for destinations
  2118. routed via this interface are restricted to the set of addresses
  2119. configured on this interface (vis. RFC 6724, section 4).
  2120. Possible values:
  2121. - 0 (disabled)
  2122. - 1 (enabled)
  2123. Default: 0 (disabled)
  2124. use_tempaddr - INTEGER
  2125. Preference for Privacy Extensions (RFC3041).
  2126. * <= 0 : disable Privacy Extensions
  2127. * == 1 : enable Privacy Extensions, but prefer public
  2128. addresses over temporary addresses.
  2129. * > 1 : enable Privacy Extensions and prefer temporary
  2130. addresses over public addresses.
  2131. Default:
  2132. * 0 (for most devices)
  2133. * -1 (for point-to-point devices and loopback devices)
  2134. temp_valid_lft - INTEGER
  2135. valid lifetime (in seconds) for temporary addresses. If less than the
  2136. minimum required lifetime (typically 5-7 seconds), temporary addresses
  2137. will not be created.
  2138. Default: 172800 (2 days)
  2139. temp_prefered_lft - INTEGER
  2140. Preferred lifetime (in seconds) for temporary addresses. If
  2141. temp_prefered_lft is less than the minimum required lifetime (typically
  2142. 5-7 seconds), the preferred lifetime is the minimum required. If
  2143. temp_prefered_lft is greater than temp_valid_lft, the preferred lifetime
  2144. is temp_valid_lft.
  2145. Default: 86400 (1 day)
  2146. keep_addr_on_down - INTEGER
  2147. Keep all IPv6 addresses on an interface down event. If set static
  2148. global addresses with no expiration time are not flushed.
  2149. * >0 : enabled
  2150. * 0 : system default
  2151. * <0 : disabled
  2152. Default: 0 (addresses are removed)
  2153. max_desync_factor - INTEGER
  2154. Maximum value for DESYNC_FACTOR, which is a random value
  2155. that ensures that clients don't synchronize with each
  2156. other and generate new addresses at exactly the same time.
  2157. value is in seconds.
  2158. Default: 600
  2159. regen_min_advance - INTEGER
  2160. How far in advance (in seconds), at minimum, to create a new temporary
  2161. address before the current one is deprecated. This value is added to
  2162. the amount of time that may be required for duplicate address detection
  2163. to determine when to create a new address. Linux permits setting this
  2164. value to less than the default of 2 seconds, but a value less than 2
  2165. does not conform to RFC 8981.
  2166. Default: 2
  2167. regen_max_retry - INTEGER
  2168. Number of attempts before give up attempting to generate
  2169. valid temporary addresses.
  2170. Default: 5
  2171. max_addresses - INTEGER
  2172. Maximum number of autoconfigured addresses per interface. Setting
  2173. to zero disables the limitation. It is not recommended to set this
  2174. value too large (or to zero) because it would be an easy way to
  2175. crash the kernel by allowing too many addresses to be created.
  2176. Default: 16
  2177. disable_ipv6 - BOOLEAN
  2178. Disable IPv6 operation. If accept_dad is set to 2, this value
  2179. will be dynamically set to TRUE if DAD fails for the link-local
  2180. address.
  2181. Default: FALSE (enable IPv6 operation)
  2182. When this value is changed from 1 to 0 (IPv6 is being enabled),
  2183. it will dynamically create a link-local address on the given
  2184. interface and start Duplicate Address Detection, if necessary.
  2185. When this value is changed from 0 to 1 (IPv6 is being disabled),
  2186. it will dynamically delete all addresses and routes on the given
  2187. interface. From now on it will not possible to add addresses/routes
  2188. to the selected interface.
  2189. accept_dad - INTEGER
  2190. Whether to accept DAD (Duplicate Address Detection).
  2191. == ==============================================================
  2192. 0 Disable DAD
  2193. 1 Enable DAD (default)
  2194. 2 Enable DAD, and disable IPv6 operation if MAC-based duplicate
  2195. link-local address has been found.
  2196. == ==============================================================
  2197. DAD operation and mode on a given interface will be selected according
  2198. to the maximum value of conf/{all,interface}/accept_dad.
  2199. force_tllao - BOOLEAN
  2200. Enable sending the target link-layer address option even when
  2201. responding to a unicast neighbor solicitation.
  2202. Default: FALSE
  2203. Quoting from RFC 2461, section 4.4, Target link-layer address:
  2204. "The option MUST be included for multicast solicitations in order to
  2205. avoid infinite Neighbor Solicitation "recursion" when the peer node
  2206. does not have a cache entry to return a Neighbor Advertisements
  2207. message. When responding to unicast solicitations, the option can be
  2208. omitted since the sender of the solicitation has the correct link-
  2209. layer address; otherwise it would not have be able to send the unicast
  2210. solicitation in the first place. However, including the link-layer
  2211. address in this case adds little overhead and eliminates a potential
  2212. race condition where the sender deletes the cached link-layer address
  2213. prior to receiving a response to a previous solicitation."
  2214. ndisc_notify - BOOLEAN
  2215. Define mode for notification of address and device changes.
  2216. Possible values:
  2217. - 0 (disabled) - do nothing
  2218. - 1 (enabled) - Generate unsolicited neighbour advertisements when device is brought
  2219. up or hardware address changes.
  2220. Default: 0 (disabled)
  2221. ndisc_tclass - INTEGER
  2222. The IPv6 Traffic Class to use by default when sending IPv6 Neighbor
  2223. Discovery (Router Solicitation, Router Advertisement, Neighbor
  2224. Solicitation, Neighbor Advertisement, Redirect) messages.
  2225. These 8 bits can be interpreted as 6 high order bits holding the DSCP
  2226. value and 2 low order bits representing ECN (which you probably want
  2227. to leave cleared).
  2228. * 0 - (default)
  2229. ndisc_evict_nocarrier - BOOLEAN
  2230. Clears the neighbor discovery table on NOCARRIER events. This option is
  2231. important for wireless devices where the neighbor discovery cache should
  2232. not be cleared when roaming between access points on the same network.
  2233. In most cases this should remain as the default (1).
  2234. Possible values:
  2235. - 0 (disabled) - Do not clear neighbor discovery cache on NOCARRIER events.
  2236. - 1 (enabled) - Clear neighbor discover cache on NOCARRIER events.
  2237. Default: 1 (enabled)
  2238. mldv1_unsolicited_report_interval - INTEGER
  2239. The interval in milliseconds in which the next unsolicited
  2240. MLDv1 report retransmit will take place.
  2241. Default: 10000 (10 seconds)
  2242. mldv2_unsolicited_report_interval - INTEGER
  2243. The interval in milliseconds in which the next unsolicited
  2244. MLDv2 report retransmit will take place.
  2245. Default: 1000 (1 second)
  2246. force_mld_version - INTEGER
  2247. * 0 - (default) No enforcement of a MLD version, MLDv1 fallback allowed
  2248. * 1 - Enforce to use MLD version 1
  2249. * 2 - Enforce to use MLD version 2
  2250. suppress_frag_ndisc - INTEGER
  2251. Control RFC 6980 (Security Implications of IPv6 Fragmentation
  2252. with IPv6 Neighbor Discovery) behavior:
  2253. * 1 - (default) discard fragmented neighbor discovery packets
  2254. * 0 - allow fragmented neighbor discovery packets
  2255. optimistic_dad - BOOLEAN
  2256. Whether to perform Optimistic Duplicate Address Detection (RFC 4429).
  2257. Optimistic Duplicate Address Detection for the interface will be enabled
  2258. if at least one of conf/{all,interface}/optimistic_dad is set to 1,
  2259. it will be disabled otherwise.
  2260. Possible values:
  2261. - 0 (disabled)
  2262. - 1 (enabled)
  2263. Default: 0 (disabled)
  2264. use_optimistic - BOOLEAN
  2265. If enabled, do not classify optimistic addresses as deprecated during
  2266. source address selection. Preferred addresses will still be chosen
  2267. before optimistic addresses, subject to other ranking in the source
  2268. address selection algorithm.
  2269. This will be enabled if at least one of
  2270. conf/{all,interface}/use_optimistic is set to 1, disabled otherwise.
  2271. Possible values:
  2272. - 0 (disabled)
  2273. - 1 (enabled)
  2274. Default: 0 (disabled)
  2275. stable_secret - IPv6 address
  2276. This IPv6 address will be used as a secret to generate IPv6
  2277. addresses for link-local addresses and autoconfigured
  2278. ones. All addresses generated after setting this secret will
  2279. be stable privacy ones by default. This can be changed via the
  2280. addrgenmode ip-link. conf/default/stable_secret is used as the
  2281. secret for the namespace, the interface specific ones can
  2282. overwrite that. Writes to conf/all/stable_secret are refused.
  2283. It is recommended to generate this secret during installation
  2284. of a system and keep it stable after that.
  2285. By default the stable secret is unset.
  2286. addr_gen_mode - INTEGER
  2287. Defines how link-local and autoconf addresses are generated.
  2288. = =================================================================
  2289. 0 generate address based on EUI64 (default)
  2290. 1 do no generate a link-local address, use EUI64 for addresses
  2291. generated from autoconf
  2292. 2 generate stable privacy addresses, using the secret from
  2293. stable_secret (RFC7217)
  2294. 3 generate stable privacy addresses, using a random secret if unset
  2295. = =================================================================
  2296. drop_unicast_in_l2_multicast - BOOLEAN
  2297. Drop any unicast IPv6 packets that are received in link-layer
  2298. multicast (or broadcast) frames.
  2299. Possible values:
  2300. - 0 (disabled)
  2301. - 1 (enabled)
  2302. Default: 0 (disabled)
  2303. drop_unsolicited_na - BOOLEAN
  2304. Drop all unsolicited neighbor advertisements, for example if there's
  2305. a known good NA proxy on the network and such frames need not be used
  2306. (or in the case of 802.11, must not be used to prevent attacks.)
  2307. Possible values:
  2308. - 0 (disabled)
  2309. - 1 (enabled)
  2310. Default: 0 (disabled).
  2311. accept_untracked_na - INTEGER
  2312. Define behavior for accepting neighbor advertisements from devices that
  2313. are absent in the neighbor cache:
  2314. - 0 - (default) Do not accept unsolicited and untracked neighbor
  2315. advertisements.
  2316. - 1 - Add a new neighbor cache entry in STALE state for routers on
  2317. receiving a neighbor advertisement (either solicited or unsolicited)
  2318. with target link-layer address option specified if no neighbor entry
  2319. is already present for the advertised IPv6 address. Without this knob,
  2320. NAs received for untracked addresses (absent in neighbor cache) are
  2321. silently ignored.
  2322. This is as per router-side behavior documented in RFC9131.
  2323. This has lower precedence than drop_unsolicited_na.
  2324. This will optimize the return path for the initial off-link
  2325. communication that is initiated by a directly connected host, by
  2326. ensuring that the first-hop router which turns on this setting doesn't
  2327. have to buffer the initial return packets to do neighbor-solicitation.
  2328. The prerequisite is that the host is configured to send unsolicited
  2329. neighbor advertisements on interface bringup. This setting should be
  2330. used in conjunction with the ndisc_notify setting on the host to
  2331. satisfy this prerequisite.
  2332. - 2 - Extend option (1) to add a new neighbor cache entry only if the
  2333. source IP address is in the same subnet as an address configured on
  2334. the interface that received the neighbor advertisement.
  2335. enhanced_dad - BOOLEAN
  2336. Include a nonce option in the IPv6 neighbor solicitation messages used for
  2337. duplicate address detection per RFC7527. A received DAD NS will only signal
  2338. a duplicate address if the nonce is different. This avoids any false
  2339. detection of duplicates due to loopback of the NS messages that we send.
  2340. The nonce option will be sent on an interface unless both of
  2341. conf/{all,interface}/enhanced_dad are set to FALSE.
  2342. Possible values:
  2343. - 0 (disabled)
  2344. - 1 (enabled)
  2345. Default: 1 (enabled)
  2346. ``icmp/*``:
  2347. ===========
  2348. ratelimit - INTEGER
  2349. Limit the maximal rates for sending ICMPv6 messages to a particular
  2350. peer.
  2351. 0 to disable any limiting,
  2352. otherwise the space between responses in milliseconds.
  2353. Default: 100
  2354. ratemask - list of comma separated ranges
  2355. For ICMPv6 message types matching the ranges in the ratemask, limit
  2356. the sending of the message according to ratelimit parameter.
  2357. The format used for both input and output is a comma separated
  2358. list of ranges (e.g. "0-127,129" for ICMPv6 message type 0 to 127 and
  2359. 129). Writing to the file will clear all previous ranges of ICMPv6
  2360. message types and update the current list with the input.
  2361. Refer to: https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml
  2362. for numerical values of ICMPv6 message types, e.g. echo request is 128
  2363. and echo reply is 129.
  2364. Default: 0-1,3-127 (rate limit ICMPv6 errors except Packet Too Big)
  2365. echo_ignore_all - BOOLEAN
  2366. If enabled, then the kernel will ignore all ICMP ECHO
  2367. requests sent to it over the IPv6 protocol.
  2368. Possible values:
  2369. - 0 (disabled)
  2370. - 1 (enabled)
  2371. Default: 0 (disabled)
  2372. echo_ignore_multicast - BOOLEAN
  2373. If enabled, then the kernel will ignore all ICMP ECHO
  2374. requests sent to it over the IPv6 protocol via multicast.
  2375. Possible values:
  2376. - 0 (disabled)
  2377. - 1 (enabled)
  2378. Default: 0 (disabled)
  2379. echo_ignore_anycast - BOOLEAN
  2380. If enabled, then the kernel will ignore all ICMP ECHO
  2381. requests sent to it over the IPv6 protocol destined to anycast address.
  2382. Possible values:
  2383. - 0 (disabled)
  2384. - 1 (enabled)
  2385. Default: 0 (disabled)
  2386. error_anycast_as_unicast - BOOLEAN
  2387. If enabled, then the kernel will respond with ICMP Errors
  2388. resulting from requests sent to it over the IPv6 protocol destined
  2389. to anycast address essentially treating anycast as unicast.
  2390. Possible values:
  2391. - 0 (disabled)
  2392. - 1 (enabled)
  2393. Default: 0 (disabled)
  2394. errors_extension_mask - UNSIGNED INTEGER
  2395. Bitmask of ICMP extensions to append to ICMPv6 error messages
  2396. ("Destination Unreachable" and "Time Exceeded"). The original datagram
  2397. is trimmed / padded to 128 bytes in order to be compatible with
  2398. applications that do not comply with RFC 4884.
  2399. Possible extensions are:
  2400. ==== ==============================================================
  2401. 0x01 Incoming IP interface information according to RFC 5837.
  2402. Extension will include the index, IPv6 address (if present),
  2403. name and MTU of the IP interface that received the datagram
  2404. which elicited the ICMP error.
  2405. ==== ==============================================================
  2406. Default: 0x00 (no extensions)
  2407. xfrm6_gc_thresh - INTEGER
  2408. (Obsolete since linux-4.14)
  2409. The threshold at which we will start garbage collecting for IPv6
  2410. destination cache entries. At twice this value the system will
  2411. refuse new allocations.
  2412. IPv6 Update by:
  2413. Pekka Savola <pekkas@netcore.fi>
  2414. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  2415. /proc/sys/net/bridge/* Variables:
  2416. =================================
  2417. bridge-nf-call-arptables - BOOLEAN
  2418. Possible values:
  2419. - 0 (disabled) - disable this.
  2420. - 1 (enabled) - pass bridged ARP traffic to arptables' FORWARD chain.
  2421. Default: 1 (enabled)
  2422. bridge-nf-call-iptables - BOOLEAN
  2423. Possible values:
  2424. - 0 (disabled) - disable this.
  2425. - 1 (enabled) - pass bridged IPv4 traffic to iptables' chains.
  2426. Default: 1 (enabled)
  2427. bridge-nf-call-ip6tables - BOOLEAN
  2428. Possible values:
  2429. - 0 (disabled) - disable this.
  2430. - 1 (enabled) - pass bridged IPv6 traffic to ip6tables' chains.
  2431. Default: 1 (enabled)
  2432. bridge-nf-filter-vlan-tagged - BOOLEAN
  2433. Possible values:
  2434. - 0 (disabled) - disable this.
  2435. - 1 (enabled) - pass bridged vlan-tagged ARP/IP/IPv6 traffic to {arp,ip,ip6}tables
  2436. Default: 0 (disabled)
  2437. bridge-nf-filter-pppoe-tagged - BOOLEAN
  2438. Possible values:
  2439. - 0 (disabled) - disable this.
  2440. - 1 (enabled) - pass bridged pppoe-tagged IP/IPv6 traffic to {ip,ip6}tables.
  2441. Default: 0 (disabled)
  2442. bridge-nf-pass-vlan-input-dev - BOOLEAN
  2443. - 1: if bridge-nf-filter-vlan-tagged is enabled, try to find a vlan
  2444. interface on the bridge and set the netfilter input device to the
  2445. vlan. This allows use of e.g. "iptables -i br0.1" and makes the
  2446. REDIRECT target work with vlan-on-top-of-bridge interfaces. When no
  2447. matching vlan interface is found, or this switch is off, the input
  2448. device is set to the bridge interface.
  2449. - 0: disable bridge netfilter vlan interface lookup.
  2450. Default: 0
  2451. ``proc/sys/net/sctp/*`` Variables:
  2452. ==================================
  2453. addip_enable - BOOLEAN
  2454. Enable or disable extension of Dynamic Address Reconfiguration
  2455. (ADD-IP) functionality specified in RFC5061. This extension provides
  2456. the ability to dynamically add and remove new addresses for the SCTP
  2457. associations.
  2458. Possible values:
  2459. - 0 (disabled) - disable extension.
  2460. - 1 (enabled) - enable extension
  2461. Default: 0 (disabled)
  2462. pf_enable - INTEGER
  2463. Enable or disable pf (pf is short for potentially failed) state. A value
  2464. of pf_retrans > path_max_retrans also disables pf state. That is, one of
  2465. both pf_enable and pf_retrans > path_max_retrans can disable pf state.
  2466. Since pf_retrans and path_max_retrans can be changed by userspace
  2467. application, sometimes user expects to disable pf state by the value of
  2468. pf_retrans > path_max_retrans, but occasionally the value of pf_retrans
  2469. or path_max_retrans is changed by the user application, this pf state is
  2470. enabled. As such, it is necessary to add this to dynamically enable
  2471. and disable pf state. See:
  2472. https://datatracker.ietf.org/doc/draft-ietf-tsvwg-sctp-failover for
  2473. details.
  2474. Possible values:
  2475. - 1: Enable pf.
  2476. - 0: Disable pf.
  2477. Default: 1
  2478. pf_expose - INTEGER
  2479. Unset or enable/disable pf (pf is short for potentially failed) state
  2480. exposure. Applications can control the exposure of the PF path state
  2481. in the SCTP_PEER_ADDR_CHANGE event and access of SCTP_PF-state
  2482. transport info via SCTP_GET_PEER_ADDR_INFO sockopt.
  2483. Possible values:
  2484. - 0: Unset pf state exposure (compatible with old applications). No
  2485. event will be sent but the transport info can be queried.
  2486. - 1: Disable pf state exposure. No event will be sent and trying to
  2487. obtain transport info will return -EACCESS.
  2488. - 2: Enable pf state exposure. The event will be sent for a transport
  2489. becoming SCTP_PF state and transport info can be obtained.
  2490. Default: 0
  2491. addip_noauth_enable - BOOLEAN
  2492. Dynamic Address Reconfiguration (ADD-IP) requires the use of
  2493. authentication to protect the operations of adding or removing new
  2494. addresses. This requirement is mandated so that unauthorized hosts
  2495. would not be able to hijack associations. However, older
  2496. implementations may not have implemented this requirement while
  2497. allowing the ADD-IP extension. For reasons of interoperability,
  2498. we provide this variable to control the enforcement of the
  2499. authentication requirement.
  2500. == ===============================================================
  2501. 1 Allow ADD-IP extension to be used without authentication. This
  2502. should only be set in a closed environment for interoperability
  2503. with older implementations.
  2504. 0 Enforce the authentication requirement
  2505. == ===============================================================
  2506. Default: 0
  2507. auth_enable - BOOLEAN
  2508. Enable or disable Authenticated Chunks extension. This extension
  2509. provides the ability to send and receive authenticated chunks and is
  2510. required for secure operation of Dynamic Address Reconfiguration
  2511. (ADD-IP) extension.
  2512. Possible values:
  2513. - 0 (disabled) - disable extension.
  2514. - 1 (enabled) - enable extension
  2515. Default: 0 (disabled)
  2516. prsctp_enable - BOOLEAN
  2517. Enable or disable the Partial Reliability extension (RFC3758) which
  2518. is used to notify peers that a given DATA should no longer be expected.
  2519. Possible values:
  2520. - 0 (disabled) - disable extension.
  2521. - 1 (enabled) - enable extension
  2522. Default: 1 (enabled)
  2523. max_burst - INTEGER
  2524. The limit of the number of new packets that can be initially sent. It
  2525. controls how bursty the generated traffic can be.
  2526. Default: 4
  2527. association_max_retrans - INTEGER
  2528. Set the maximum number for retransmissions that an association can
  2529. attempt deciding that the remote end is unreachable. If this value
  2530. is exceeded, the association is terminated.
  2531. Default: 10
  2532. max_init_retransmits - INTEGER
  2533. The maximum number of retransmissions of INIT and COOKIE-ECHO chunks
  2534. that an association will attempt before declaring the destination
  2535. unreachable and terminating.
  2536. Default: 8
  2537. path_max_retrans - INTEGER
  2538. The maximum number of retransmissions that will be attempted on a given
  2539. path. Once this threshold is exceeded, the path is considered
  2540. unreachable, and new traffic will use a different path when the
  2541. association is multihomed.
  2542. Default: 5
  2543. pf_retrans - INTEGER
  2544. The number of retransmissions that will be attempted on a given path
  2545. before traffic is redirected to an alternate transport (should one
  2546. exist). Note this is distinct from path_max_retrans, as a path that
  2547. passes the pf_retrans threshold can still be used. Its only
  2548. deprioritized when a transmission path is selected by the stack. This
  2549. setting is primarily used to enable fast failover mechanisms without
  2550. having to reduce path_max_retrans to a very low value. See:
  2551. http://www.ietf.org/id/draft-nishida-tsvwg-sctp-failover-05.txt
  2552. for details. Note also that a value of pf_retrans > path_max_retrans
  2553. disables this feature. Since both pf_retrans and path_max_retrans can
  2554. be changed by userspace application, a variable pf_enable is used to
  2555. disable pf state.
  2556. Default: 0
  2557. ps_retrans - INTEGER
  2558. Primary.Switchover.Max.Retrans (PSMR), it's a tunable parameter coming
  2559. from section-5 "Primary Path Switchover" in rfc7829. The primary path
  2560. will be changed to another active path when the path error counter on
  2561. the old primary path exceeds PSMR, so that "the SCTP sender is allowed
  2562. to continue data transmission on a new working path even when the old
  2563. primary destination address becomes active again". Note this feature
  2564. is disabled by initializing 'ps_retrans' per netns as 0xffff by default,
  2565. and its value can't be less than 'pf_retrans' when changing by sysctl.
  2566. Default: 0xffff
  2567. rto_initial - INTEGER
  2568. The initial round trip timeout value in milliseconds that will be used
  2569. in calculating round trip times. This is the initial time interval
  2570. for retransmissions.
  2571. Default: 3000
  2572. rto_max - INTEGER
  2573. The maximum value (in milliseconds) of the round trip timeout. This
  2574. is the largest time interval that can elapse between retransmissions.
  2575. Default: 60000
  2576. rto_min - INTEGER
  2577. The minimum value (in milliseconds) of the round trip timeout. This
  2578. is the smallest time interval the can elapse between retransmissions.
  2579. Default: 1000
  2580. hb_interval - INTEGER
  2581. The interval (in milliseconds) between HEARTBEAT chunks. These chunks
  2582. are sent at the specified interval on idle paths to probe the state of
  2583. a given path between 2 associations.
  2584. Default: 30000
  2585. sack_timeout - INTEGER
  2586. The amount of time (in milliseconds) that the implementation will wait
  2587. to send a SACK.
  2588. Default: 200
  2589. valid_cookie_life - INTEGER
  2590. The default lifetime of the SCTP cookie (in milliseconds). The cookie
  2591. is used during association establishment.
  2592. Default: 60000
  2593. cookie_preserve_enable - BOOLEAN
  2594. Enable or disable the ability to extend the lifetime of the SCTP cookie
  2595. that is used during the establishment phase of SCTP association
  2596. Possible values:
  2597. - 0 (disabled) - disable.
  2598. - 1 (enabled) - enable cookie lifetime extension.
  2599. Default: 1 (enabled)
  2600. cookie_hmac_alg - STRING
  2601. Select the hmac algorithm used when generating the cookie value sent by
  2602. a listening sctp socket to a connecting client in the INIT-ACK chunk.
  2603. Valid values are:
  2604. * sha256
  2605. * none
  2606. Default: sha256
  2607. rcvbuf_policy - INTEGER
  2608. Determines if the receive buffer is attributed to the socket or to
  2609. association. SCTP supports the capability to create multiple
  2610. associations on a single socket. When using this capability, it is
  2611. possible that a single stalled association that's buffering a lot
  2612. of data may block other associations from delivering their data by
  2613. consuming all of the receive buffer space. To work around this,
  2614. the rcvbuf_policy could be set to attribute the receiver buffer space
  2615. to each association instead of the socket. This prevents the described
  2616. blocking.
  2617. - 1: rcvbuf space is per association
  2618. - 0: rcvbuf space is per socket
  2619. Default: 0
  2620. sndbuf_policy - INTEGER
  2621. Similar to rcvbuf_policy above, this applies to send buffer space.
  2622. - 1: Send buffer is tracked per association
  2623. - 0: Send buffer is tracked per socket.
  2624. Default: 0
  2625. sctp_mem - vector of 3 INTEGERs: min, pressure, max
  2626. Number of pages allowed for queueing by all SCTP sockets.
  2627. * min: Below this number of pages SCTP is not bothered about its
  2628. memory usage. When amount of memory allocated by SCTP exceeds
  2629. this number, SCTP starts to moderate memory usage.
  2630. * pressure: This value was introduced to follow format of tcp_mem.
  2631. * max: Maximum number of allowed pages.
  2632. Default is calculated at boot time from amount of available memory.
  2633. sctp_rmem - vector of 3 INTEGERs: min, default, max
  2634. Only the first value ("min") is used, "default" and "max" are
  2635. ignored.
  2636. * min: Minimal size of receive buffer used by SCTP socket.
  2637. It is guaranteed to each SCTP socket (but not association) even
  2638. under moderate memory pressure.
  2639. Default: 4K
  2640. sctp_wmem - vector of 3 INTEGERs: min, default, max
  2641. Only the first value ("min") is used, "default" and "max" are
  2642. ignored.
  2643. * min: Minimum size of send buffer that can be used by SCTP sockets.
  2644. It is guaranteed to each SCTP socket (but not association) even
  2645. under moderate memory pressure.
  2646. Default: 4K
  2647. addr_scope_policy - INTEGER
  2648. Control IPv4 address scoping (see
  2649. https://datatracker.ietf.org/doc/draft-stewart-tsvwg-sctp-ipv4/00/
  2650. for details).
  2651. - 0 - Disable IPv4 address scoping
  2652. - 1 - Enable IPv4 address scoping
  2653. - 2 - Follow draft but allow IPv4 private addresses
  2654. - 3 - Follow draft but allow IPv4 link local addresses
  2655. Default: 1
  2656. udp_port - INTEGER
  2657. The listening port for the local UDP tunneling sock. Normally it's
  2658. using the IANA-assigned UDP port number 9899 (sctp-tunneling).
  2659. This UDP sock is used for processing the incoming UDP-encapsulated
  2660. SCTP packets (from RFC6951), and shared by all applications in the
  2661. same net namespace. This UDP sock will be closed when the value is
  2662. set to 0.
  2663. The value will also be used to set the src port of the UDP header
  2664. for the outgoing UDP-encapsulated SCTP packets. For the dest port,
  2665. please refer to 'encap_port' below.
  2666. Default: 0
  2667. encap_port - INTEGER
  2668. The default remote UDP encapsulation port.
  2669. This value is used to set the dest port of the UDP header for the
  2670. outgoing UDP-encapsulated SCTP packets by default. Users can also
  2671. change the value for each sock/asoc/transport by using setsockopt.
  2672. For further information, please refer to RFC6951.
  2673. Note that when connecting to a remote server, the client should set
  2674. this to the port that the UDP tunneling sock on the peer server is
  2675. listening to and the local UDP tunneling sock on the client also
  2676. must be started. On the server, it would get the encap_port from
  2677. the incoming packet's source port.
  2678. Default: 0
  2679. plpmtud_probe_interval - INTEGER
  2680. The time interval (in milliseconds) for the PLPMTUD probe timer,
  2681. which is configured to expire after this period to receive an
  2682. acknowledgment to a probe packet. This is also the time interval
  2683. between the probes for the current pmtu when the probe search
  2684. is done.
  2685. PLPMTUD will be disabled when 0 is set, and other values for it
  2686. must be >= 5000.
  2687. Default: 0
  2688. reconf_enable - BOOLEAN
  2689. Enable or disable extension of Stream Reconfiguration functionality
  2690. specified in RFC6525. This extension provides the ability to "reset"
  2691. a stream, and it includes the Parameters of "Outgoing/Incoming SSN
  2692. Reset", "SSN/TSN Reset" and "Add Outgoing/Incoming Streams".
  2693. Possible values:
  2694. - 0 (disabled) - Disable extension.
  2695. - 1 (enabled) - Enable extension.
  2696. Default: 0 (disabled)
  2697. intl_enable - BOOLEAN
  2698. Enable or disable extension of User Message Interleaving functionality
  2699. specified in RFC8260. This extension allows the interleaving of user
  2700. messages sent on different streams. With this feature enabled, I-DATA
  2701. chunk will replace DATA chunk to carry user messages if also supported
  2702. by the peer. Note that to use this feature, one needs to set this option
  2703. to 1 and also needs to set socket options SCTP_FRAGMENT_INTERLEAVE to 2
  2704. and SCTP_INTERLEAVING_SUPPORTED to 1.
  2705. Possible values:
  2706. - 0 (disabled) - Disable extension.
  2707. - 1 (enabled) - Enable extension.
  2708. Default: 0 (disabled)
  2709. ecn_enable - BOOLEAN
  2710. Control use of Explicit Congestion Notification (ECN) by SCTP.
  2711. Like in TCP, ECN is used only when both ends of the SCTP connection
  2712. indicate support for it. This feature is useful in avoiding losses
  2713. due to congestion by allowing supporting routers to signal congestion
  2714. before having to drop packets.
  2715. Possible values:
  2716. - 0 (disabled) - Disable ecn.
  2717. - 1 (enabled) - Enable ecn.
  2718. Default: 1 (enabled)
  2719. l3mdev_accept - BOOLEAN
  2720. Enabling this option allows a "global" bound socket to work
  2721. across L3 master domains (e.g., VRFs) with packets capable of
  2722. being received regardless of the L3 domain in which they
  2723. originated. Only valid when the kernel was compiled with
  2724. CONFIG_NET_L3_MASTER_DEV.
  2725. Possible values:
  2726. - 0 (disabled)
  2727. - 1 (enabled)
  2728. Default: 1 (enabled)
  2729. ``/proc/sys/net/core/*``
  2730. ========================
  2731. Please see: Documentation/admin-guide/sysctl/net.rst for descriptions of these entries.
  2732. ``/proc/sys/net/unix/*``
  2733. ========================
  2734. max_dgram_qlen - INTEGER
  2735. The maximum length of dgram socket receive queue
  2736. Default: 10