ip-sysctl.rst 113 KB

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