ip-sysctl.txt 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195
  1. /proc/sys/net/ipv4/* Variables:
  2. ip_forward - BOOLEAN
  3. 0 - disabled (default)
  4. not 0 - enabled
  5. Forward Packets between interfaces.
  6. This variable is special, its change resets all configuration
  7. parameters to their default state (RFC1122 for hosts, RFC1812
  8. for routers)
  9. ip_default_ttl - INTEGER
  10. Default value of TTL field (Time To Live) for outgoing (but not
  11. forwarded) IP packets. Should be between 1 and 255 inclusive.
  12. Default: 64 (as recommended by RFC1700)
  13. ip_no_pmtu_disc - INTEGER
  14. Disable Path MTU Discovery. If enabled in mode 1 and a
  15. fragmentation-required ICMP is received, the PMTU to this
  16. destination will be set to min_pmtu (see below). You will need
  17. to raise min_pmtu to the smallest interface MTU on your system
  18. manually if you want to avoid locally generated fragments.
  19. In mode 2 incoming Path MTU Discovery messages will be
  20. discarded. Outgoing frames are handled the same as in mode 1,
  21. implicitly setting IP_PMTUDISC_DONT on every created socket.
  22. Mode 3 is a hardened pmtu discover mode. The kernel will only
  23. accept fragmentation-needed errors if the underlying protocol
  24. can verify them besides a plain socket lookup. Current
  25. protocols for which pmtu events will be honored are TCP, SCTP
  26. and DCCP as they verify e.g. the sequence number or the
  27. association. This mode should not be enabled globally but is
  28. only intended to secure e.g. name servers in namespaces where
  29. TCP path mtu must still work but path MTU information of other
  30. protocols should be discarded. If enabled globally this mode
  31. could break other protocols.
  32. Possible values: 0-3
  33. Default: FALSE
  34. min_pmtu - INTEGER
  35. default 552 - minimum discovered Path MTU
  36. ip_forward_use_pmtu - BOOLEAN
  37. By default we don't trust protocol path MTUs while forwarding
  38. because they could be easily forged and can lead to unwanted
  39. fragmentation by the router.
  40. You only need to enable this if you have user-space software
  41. which tries to discover path mtus by itself and depends on the
  42. kernel honoring this information. This is normally not the
  43. case.
  44. Default: 0 (disabled)
  45. Possible values:
  46. 0 - disabled
  47. 1 - enabled
  48. fwmark_reflect - BOOLEAN
  49. Controls the fwmark of kernel-generated IPv4 reply packets that are not
  50. associated with a socket for example, TCP RSTs or ICMP echo replies).
  51. If unset, these packets have a fwmark of zero. If set, they have the
  52. fwmark of the packet they are replying to.
  53. Default: 0
  54. fib_multipath_use_neigh - BOOLEAN
  55. Use status of existing neighbor entry when determining nexthop for
  56. multipath routes. If disabled, neighbor information is not used and
  57. packets could be directed to a failed nexthop. Only valid for kernels
  58. built with CONFIG_IP_ROUTE_MULTIPATH enabled.
  59. Default: 0 (disabled)
  60. Possible values:
  61. 0 - disabled
  62. 1 - enabled
  63. fib_multipath_hash_policy - INTEGER
  64. Controls which hash policy to use for multipath routes. Only valid
  65. for kernels built with CONFIG_IP_ROUTE_MULTIPATH enabled.
  66. Default: 0 (Layer 3)
  67. Possible values:
  68. 0 - Layer 3
  69. 1 - Layer 4
  70. ip_forward_update_priority - INTEGER
  71. Whether to update SKB priority from "TOS" field in IPv4 header after it
  72. is forwarded. The new SKB priority is mapped from TOS field value
  73. according to an rt_tos2priority table (see e.g. man tc-prio).
  74. Default: 1 (Update priority.)
  75. Possible values:
  76. 0 - Do not update priority.
  77. 1 - Update priority.
  78. route/max_size - INTEGER
  79. Maximum number of routes allowed in the kernel. Increase
  80. this when using large numbers of interfaces and/or routes.
  81. From linux kernel 3.6 onwards, this is deprecated for ipv4
  82. as route cache is no longer used.
  83. neigh/default/gc_thresh1 - INTEGER
  84. Minimum number of entries to keep. Garbage collector will not
  85. purge entries if there are fewer than this number.
  86. Default: 128
  87. neigh/default/gc_thresh2 - INTEGER
  88. Threshold when garbage collector becomes more aggressive about
  89. purging entries. Entries older than 5 seconds will be cleared
  90. when over this number.
  91. Default: 512
  92. neigh/default/gc_thresh3 - INTEGER
  93. Maximum number of neighbor entries allowed. Increase this
  94. when using large numbers of interfaces and when communicating
  95. with large numbers of directly-connected peers.
  96. Default: 1024
  97. neigh/default/unres_qlen_bytes - INTEGER
  98. The maximum number of bytes which may be used by packets
  99. queued for each unresolved address by other network layers.
  100. (added in linux 3.3)
  101. Setting negative value is meaningless and will return error.
  102. Default: SK_WMEM_MAX, (same as net.core.wmem_default).
  103. Exact value depends on architecture and kernel options,
  104. but should be enough to allow queuing 256 packets
  105. of medium size.
  106. neigh/default/unres_qlen - INTEGER
  107. The maximum number of packets which may be queued for each
  108. unresolved address by other network layers.
  109. (deprecated in linux 3.3) : use unres_qlen_bytes instead.
  110. Prior to linux 3.3, the default value is 3 which may cause
  111. unexpected packet loss. The current default value is calculated
  112. according to default value of unres_qlen_bytes and true size of
  113. packet.
  114. Default: 101
  115. mtu_expires - INTEGER
  116. Time, in seconds, that cached PMTU information is kept.
  117. min_adv_mss - INTEGER
  118. The advertised MSS depends on the first hop route MTU, but will
  119. never be lower than this setting.
  120. IP Fragmentation:
  121. ipfrag_high_thresh - LONG INTEGER
  122. Maximum memory used to reassemble IP fragments.
  123. ipfrag_low_thresh - LONG INTEGER
  124. (Obsolete since linux-4.17)
  125. Maximum memory used to reassemble IP fragments before the kernel
  126. begins to remove incomplete fragment queues to free up resources.
  127. The kernel still accepts new fragments for defragmentation.
  128. ipfrag_time - INTEGER
  129. Time in seconds to keep an IP fragment in memory.
  130. ipfrag_max_dist - INTEGER
  131. ipfrag_max_dist is a non-negative integer value which defines the
  132. maximum "disorder" which is allowed among fragments which share a
  133. common IP source address. Note that reordering of packets is
  134. not unusual, but if a large number of fragments arrive from a source
  135. IP address while a particular fragment queue remains incomplete, it
  136. probably indicates that one or more fragments belonging to that queue
  137. have been lost. When ipfrag_max_dist is positive, an additional check
  138. is done on fragments before they are added to a reassembly queue - if
  139. ipfrag_max_dist (or more) fragments have arrived from a particular IP
  140. address between additions to any IP fragment queue using that source
  141. address, it's presumed that one or more fragments in the queue are
  142. lost. The existing fragment queue will be dropped, and a new one
  143. started. An ipfrag_max_dist value of zero disables this check.
  144. Using a very small value, e.g. 1 or 2, for ipfrag_max_dist can
  145. result in unnecessarily dropping fragment queues when normal
  146. reordering of packets occurs, which could lead to poor application
  147. performance. Using a very large value, e.g. 50000, increases the
  148. likelihood of incorrectly reassembling IP fragments that originate
  149. from different IP datagrams, which could result in data corruption.
  150. Default: 64
  151. INET peer storage:
  152. inet_peer_threshold - INTEGER
  153. The approximate size of the storage. Starting from this threshold
  154. entries will be thrown aggressively. This threshold also determines
  155. entries' time-to-live and time intervals between garbage collection
  156. passes. More entries, less time-to-live, less GC interval.
  157. inet_peer_minttl - INTEGER
  158. Minimum time-to-live of entries. Should be enough to cover fragment
  159. time-to-live on the reassembling side. This minimum time-to-live is
  160. guaranteed if the pool size is less than inet_peer_threshold.
  161. Measured in seconds.
  162. inet_peer_maxttl - INTEGER
  163. Maximum time-to-live of entries. Unused entries will expire after
  164. this period of time if there is no memory pressure on the pool (i.e.
  165. when the number of entries in the pool is very small).
  166. Measured in seconds.
  167. TCP variables:
  168. somaxconn - INTEGER
  169. Limit of socket listen() backlog, known in userspace as SOMAXCONN.
  170. Defaults to 128. See also tcp_max_syn_backlog for additional tuning
  171. for TCP sockets.
  172. tcp_abort_on_overflow - BOOLEAN
  173. If listening service is too slow to accept new connections,
  174. reset them. Default state is FALSE. It means that if overflow
  175. occurred due to a burst, connection will recover. Enable this
  176. option _only_ if you are really sure that listening daemon
  177. cannot be tuned to accept connections faster. Enabling this
  178. option can harm clients of your server.
  179. tcp_adv_win_scale - INTEGER
  180. Count buffering overhead as bytes/2^tcp_adv_win_scale
  181. (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
  182. if it is <= 0.
  183. Possible values are [-31, 31], inclusive.
  184. Default: 1
  185. tcp_allowed_congestion_control - STRING
  186. Show/set the congestion control choices available to non-privileged
  187. processes. The list is a subset of those listed in
  188. tcp_available_congestion_control.
  189. Default is "reno" and the default setting (tcp_congestion_control).
  190. tcp_app_win - INTEGER
  191. Reserve max(window/2^tcp_app_win, mss) of window for application
  192. buffer. Value 0 is special, it means that nothing is reserved.
  193. Default: 31
  194. tcp_autocorking - BOOLEAN
  195. Enable TCP auto corking :
  196. When applications do consecutive small write()/sendmsg() system calls,
  197. we try to coalesce these small writes as much as possible, to lower
  198. total amount of sent packets. This is done if at least one prior
  199. packet for the flow is waiting in Qdisc queues or device transmit
  200. queue. Applications can still use TCP_CORK for optimal behavior
  201. when they know how/when to uncork their sockets.
  202. Default : 1
  203. tcp_available_congestion_control - STRING
  204. Shows the available congestion control choices that are registered.
  205. More congestion control algorithms may be available as modules,
  206. but not loaded.
  207. tcp_base_mss - INTEGER
  208. The initial value of search_low to be used by the packetization layer
  209. Path MTU discovery (MTU probing). If MTU probing is enabled,
  210. this is the initial MSS used by the connection.
  211. tcp_min_snd_mss - INTEGER
  212. TCP SYN and SYNACK messages usually advertise an ADVMSS option,
  213. as described in RFC 1122 and RFC 6691.
  214. If this ADVMSS option is smaller than tcp_min_snd_mss,
  215. it is silently capped to tcp_min_snd_mss.
  216. Default : 48 (at least 8 bytes of payload per segment)
  217. tcp_congestion_control - STRING
  218. Set the congestion control algorithm to be used for new
  219. connections. The algorithm "reno" is always available, but
  220. additional choices may be available based on kernel configuration.
  221. Default is set as part of kernel configuration.
  222. For passive connections, the listener congestion control choice
  223. is inherited.
  224. [see setsockopt(listenfd, SOL_TCP, TCP_CONGESTION, "name" ...) ]
  225. tcp_dsack - BOOLEAN
  226. Allows TCP to send "duplicate" SACKs.
  227. tcp_early_retrans - INTEGER
  228. Tail loss probe (TLP) converts RTOs occurring due to tail
  229. losses into fast recovery (draft-ietf-tcpm-rack). Note that
  230. TLP requires RACK to function properly (see tcp_recovery below)
  231. Possible values:
  232. 0 disables TLP
  233. 3 or 4 enables TLP
  234. Default: 3
  235. tcp_ecn - INTEGER
  236. Control use of Explicit Congestion Notification (ECN) by TCP.
  237. ECN is used only when both ends of the TCP connection indicate
  238. support for it. This feature is useful in avoiding losses due
  239. to congestion by allowing supporting routers to signal
  240. congestion before having to drop packets.
  241. Possible values are:
  242. 0 Disable ECN. Neither initiate nor accept ECN.
  243. 1 Enable ECN when requested by incoming connections and
  244. also request ECN on outgoing connection attempts.
  245. 2 Enable ECN when requested by incoming connections
  246. but do not request ECN on outgoing connections.
  247. Default: 2
  248. tcp_ecn_fallback - BOOLEAN
  249. If the kernel detects that ECN connection misbehaves, enable fall
  250. back to non-ECN. Currently, this knob implements the fallback
  251. from RFC3168, section 6.1.1.1., but we reserve that in future,
  252. additional detection mechanisms could be implemented under this
  253. knob. The value is not used, if tcp_ecn or per route (or congestion
  254. control) ECN settings are disabled.
  255. Default: 1 (fallback enabled)
  256. tcp_fack - BOOLEAN
  257. This is a legacy option, it has no effect anymore.
  258. tcp_fin_timeout - INTEGER
  259. The length of time an orphaned (no longer referenced by any
  260. application) connection will remain in the FIN_WAIT_2 state
  261. before it is aborted at the local end. While a perfectly
  262. valid "receive only" state for an un-orphaned connection, an
  263. orphaned connection in FIN_WAIT_2 state could otherwise wait
  264. forever for the remote to close its end of the connection.
  265. Cf. tcp_max_orphans
  266. Default: 60 seconds
  267. tcp_frto - INTEGER
  268. Enables Forward RTO-Recovery (F-RTO) defined in RFC5682.
  269. F-RTO is an enhanced recovery algorithm for TCP retransmission
  270. timeouts. It is particularly beneficial in networks where the
  271. RTT fluctuates (e.g., wireless). F-RTO is sender-side only
  272. modification. It does not require any support from the peer.
  273. By default it's enabled with a non-zero value. 0 disables F-RTO.
  274. tcp_invalid_ratelimit - INTEGER
  275. Limit the maximal rate for sending duplicate acknowledgments
  276. in response to incoming TCP packets that are for an existing
  277. connection but that are invalid due to any of these reasons:
  278. (a) out-of-window sequence number,
  279. (b) out-of-window acknowledgment number, or
  280. (c) PAWS (Protection Against Wrapped Sequence numbers) check failure
  281. This can help mitigate simple "ack loop" DoS attacks, wherein
  282. a buggy or malicious middlebox or man-in-the-middle can
  283. rewrite TCP header fields in manner that causes each endpoint
  284. to think that the other is sending invalid TCP segments, thus
  285. causing each side to send an unterminating stream of duplicate
  286. acknowledgments for invalid segments.
  287. Using 0 disables rate-limiting of dupacks in response to
  288. invalid segments; otherwise this value specifies the minimal
  289. space between sending such dupacks, in milliseconds.
  290. Default: 500 (milliseconds).
  291. tcp_keepalive_time - INTEGER
  292. How often TCP sends out keepalive messages when keepalive is enabled.
  293. Default: 2hours.
  294. tcp_keepalive_probes - INTEGER
  295. How many keepalive probes TCP sends out, until it decides that the
  296. connection is broken. Default value: 9.
  297. tcp_keepalive_intvl - INTEGER
  298. How frequently the probes are send out. Multiplied by
  299. tcp_keepalive_probes it is time to kill not responding connection,
  300. after probes started. Default value: 75sec i.e. connection
  301. will be aborted after ~11 minutes of retries.
  302. tcp_l3mdev_accept - BOOLEAN
  303. Enables child sockets to inherit the L3 master device index.
  304. Enabling this option allows a "global" listen socket to work
  305. across L3 master domains (e.g., VRFs) with connected sockets
  306. derived from the listen socket to be bound to the L3 domain in
  307. which the packets originated. Only valid when the kernel was
  308. compiled with CONFIG_NET_L3_MASTER_DEV.
  309. tcp_low_latency - BOOLEAN
  310. This is a legacy option, it has no effect anymore.
  311. tcp_max_orphans - INTEGER
  312. Maximal number of TCP sockets not attached to any user file handle,
  313. held by system. If this number is exceeded orphaned connections are
  314. reset immediately and warning is printed. This limit exists
  315. only to prevent simple DoS attacks, you _must_ not rely on this
  316. or lower the limit artificially, but rather increase it
  317. (probably, after increasing installed memory),
  318. if network conditions require more than default value,
  319. and tune network services to linger and kill such states
  320. more aggressively. Let me to remind again: each orphan eats
  321. up to ~64K of unswappable memory.
  322. tcp_max_syn_backlog - INTEGER
  323. Maximal number of remembered connection requests, which have not
  324. received an acknowledgment from connecting client.
  325. The minimal value is 128 for low memory machines, and it will
  326. increase in proportion to the memory of machine.
  327. If server suffers from overload, try increasing this number.
  328. tcp_max_tw_buckets - INTEGER
  329. Maximal number of timewait sockets held by system simultaneously.
  330. If this number is exceeded time-wait socket is immediately destroyed
  331. and warning is printed. This limit exists only to prevent
  332. simple DoS attacks, you _must_ not lower the limit artificially,
  333. but rather increase it (probably, after increasing installed memory),
  334. if network conditions require more than default value.
  335. tcp_mem - vector of 3 INTEGERs: min, pressure, max
  336. min: below this number of pages TCP is not bothered about its
  337. memory appetite.
  338. pressure: when amount of memory allocated by TCP exceeds this number
  339. of pages, TCP moderates its memory consumption and enters memory
  340. pressure mode, which is exited when memory consumption falls
  341. under "min".
  342. max: number of pages allowed for queueing by all TCP sockets.
  343. Defaults are calculated at boot time from amount of available
  344. memory.
  345. tcp_min_rtt_wlen - INTEGER
  346. The window length of the windowed min filter to track the minimum RTT.
  347. A shorter window lets a flow more quickly pick up new (higher)
  348. minimum RTT when it is moved to a longer path (e.g., due to traffic
  349. engineering). A longer window makes the filter more resistant to RTT
  350. inflations such as transient congestion. The unit is seconds.
  351. Possible values: 0 - 86400 (1 day)
  352. Default: 300
  353. tcp_moderate_rcvbuf - BOOLEAN
  354. If set, TCP performs receive buffer auto-tuning, attempting to
  355. automatically size the buffer (no greater than tcp_rmem[2]) to
  356. match the size required by the path for full throughput. Enabled by
  357. default.
  358. tcp_mtu_probing - INTEGER
  359. Controls TCP Packetization-Layer Path MTU Discovery. Takes three
  360. values:
  361. 0 - Disabled
  362. 1 - Disabled by default, enabled when an ICMP black hole detected
  363. 2 - Always enabled, use initial MSS of tcp_base_mss.
  364. tcp_probe_interval - UNSIGNED INTEGER
  365. Controls how often to start TCP Packetization-Layer Path MTU
  366. Discovery reprobe. The default is reprobing every 10 minutes as
  367. per RFC4821.
  368. tcp_probe_threshold - INTEGER
  369. Controls when TCP Packetization-Layer Path MTU Discovery probing
  370. will stop in respect to the width of search range in bytes. Default
  371. is 8 bytes.
  372. tcp_no_metrics_save - BOOLEAN
  373. By default, TCP saves various connection metrics in the route cache
  374. when the connection closes, so that connections established in the
  375. near future can use these to set initial conditions. Usually, this
  376. increases overall performance, but may sometimes cause performance
  377. degradation. If set, TCP will not cache metrics on closing
  378. connections.
  379. tcp_orphan_retries - INTEGER
  380. This value influences the timeout of a locally closed TCP connection,
  381. when RTO retransmissions remain unacknowledged.
  382. See tcp_retries2 for more details.
  383. The default value is 8.
  384. If your machine is a loaded WEB server,
  385. you should think about lowering this value, such sockets
  386. may consume significant resources. Cf. tcp_max_orphans.
  387. tcp_recovery - INTEGER
  388. This value is a bitmap to enable various experimental loss recovery
  389. features.
  390. RACK: 0x1 enables the RACK loss detection for fast detection of lost
  391. retransmissions and tail drops. It also subsumes and disables
  392. RFC6675 recovery for SACK connections.
  393. RACK: 0x2 makes RACK's reordering window static (min_rtt/4).
  394. RACK: 0x4 disables RACK's DUPACK threshold heuristic
  395. Default: 0x1
  396. tcp_reordering - INTEGER
  397. Initial reordering level of packets in a TCP stream.
  398. TCP stack can then dynamically adjust flow reordering level
  399. between this initial value and tcp_max_reordering
  400. Default: 3
  401. tcp_max_reordering - INTEGER
  402. Maximal reordering level of packets in a TCP stream.
  403. 300 is a fairly conservative value, but you might increase it
  404. if paths are using per packet load balancing (like bonding rr mode)
  405. Default: 300
  406. tcp_retrans_collapse - BOOLEAN
  407. Bug-to-bug compatibility with some broken printers.
  408. On retransmit try to send bigger packets to work around bugs in
  409. certain TCP stacks.
  410. tcp_retries1 - INTEGER
  411. This value influences the time, after which TCP decides, that
  412. something is wrong due to unacknowledged RTO retransmissions,
  413. and reports this suspicion to the network layer.
  414. See tcp_retries2 for more details.
  415. RFC 1122 recommends at least 3 retransmissions, which is the
  416. default.
  417. tcp_retries2 - INTEGER
  418. This value influences the timeout of an alive TCP connection,
  419. when RTO retransmissions remain unacknowledged.
  420. Given a value of N, a hypothetical TCP connection following
  421. exponential backoff with an initial RTO of TCP_RTO_MIN would
  422. retransmit N times before killing the connection at the (N+1)th RTO.
  423. The default value of 15 yields a hypothetical timeout of 924.6
  424. seconds and is a lower bound for the effective timeout.
  425. TCP will effectively time out at the first RTO which exceeds the
  426. hypothetical timeout.
  427. RFC 1122 recommends at least 100 seconds for the timeout,
  428. which corresponds to a value of at least 8.
  429. tcp_rfc1337 - BOOLEAN
  430. If set, the TCP stack behaves conforming to RFC1337. If unset,
  431. we are not conforming to RFC, but prevent TCP TIME_WAIT
  432. assassination.
  433. Default: 0
  434. tcp_rmem - vector of 3 INTEGERs: min, default, max
  435. min: Minimal size of receive buffer used by TCP sockets.
  436. It is guaranteed to each TCP socket, even under moderate memory
  437. pressure.
  438. Default: 4K
  439. default: initial size of receive buffer used by TCP sockets.
  440. This value overrides net.core.rmem_default used by other protocols.
  441. Default: 87380 bytes. This value results in window of 65535 with
  442. default setting of tcp_adv_win_scale and tcp_app_win:0 and a bit
  443. less for default tcp_app_win. See below about these variables.
  444. max: maximal size of receive buffer allowed for automatically
  445. selected receiver buffers for TCP socket. This value does not override
  446. net.core.rmem_max. Calling setsockopt() with SO_RCVBUF disables
  447. automatic tuning of that socket's receive buffer size, in which
  448. case this value is ignored.
  449. Default: between 87380B and 6MB, depending on RAM size.
  450. tcp_sack - BOOLEAN
  451. Enable select acknowledgments (SACKS).
  452. tcp_comp_sack_delay_ns - LONG INTEGER
  453. TCP tries to reduce number of SACK sent, using a timer
  454. based on 5% of SRTT, capped by this sysctl, in nano seconds.
  455. The default is 1ms, based on TSO autosizing period.
  456. Default : 1,000,000 ns (1 ms)
  457. tcp_comp_sack_nr - INTEGER
  458. Max numer of SACK that can be compressed.
  459. Using 0 disables SACK compression.
  460. Detault : 44
  461. tcp_slow_start_after_idle - BOOLEAN
  462. If set, provide RFC2861 behavior and time out the congestion
  463. window after an idle period. An idle period is defined at
  464. the current RTO. If unset, the congestion window will not
  465. be timed out after an idle period.
  466. Default: 1
  467. tcp_stdurg - BOOLEAN
  468. Use the Host requirements interpretation of the TCP urgent pointer field.
  469. Most hosts use the older BSD interpretation, so if you turn this on
  470. Linux might not communicate correctly with them.
  471. Default: FALSE
  472. tcp_synack_retries - INTEGER
  473. Number of times SYNACKs for a passive TCP connection attempt will
  474. be retransmitted. Should not be higher than 255. Default value
  475. is 5, which corresponds to 31seconds till the last retransmission
  476. with the current initial RTO of 1second. With this the final timeout
  477. for a passive TCP connection will happen after 63seconds.
  478. tcp_syncookies - BOOLEAN
  479. Only valid when the kernel was compiled with CONFIG_SYN_COOKIES
  480. Send out syncookies when the syn backlog queue of a socket
  481. overflows. This is to prevent against the common 'SYN flood attack'
  482. Default: 1
  483. Note, that syncookies is fallback facility.
  484. It MUST NOT be used to help highly loaded servers to stand
  485. against legal connection rate. If you see SYN flood warnings
  486. in your logs, but investigation shows that they occur
  487. because of overload with legal connections, you should tune
  488. another parameters until this warning disappear.
  489. See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
  490. syncookies seriously violate TCP protocol, do not allow
  491. to use TCP extensions, can result in serious degradation
  492. of some services (f.e. SMTP relaying), visible not by you,
  493. but your clients and relays, contacting you. While you see
  494. SYN flood warnings in logs not being really flooded, your server
  495. is seriously misconfigured.
  496. If you want to test which effects syncookies have to your
  497. network connections you can set this knob to 2 to enable
  498. unconditionally generation of syncookies.
  499. tcp_fastopen - INTEGER
  500. Enable TCP Fast Open (RFC7413) to send and accept data in the opening
  501. SYN packet.
  502. The client support is enabled by flag 0x1 (on by default). The client
  503. then must use sendmsg() or sendto() with the MSG_FASTOPEN flag,
  504. rather than connect() to send data in SYN.
  505. The server support is enabled by flag 0x2 (off by default). Then
  506. either enable for all listeners with another flag (0x400) or
  507. enable individual listeners via TCP_FASTOPEN socket option with
  508. the option value being the length of the syn-data backlog.
  509. The values (bitmap) are
  510. 0x1: (client) enables sending data in the opening SYN on the client.
  511. 0x2: (server) enables the server support, i.e., allowing data in
  512. a SYN packet to be accepted and passed to the
  513. application before 3-way handshake finishes.
  514. 0x4: (client) send data in the opening SYN regardless of cookie
  515. availability and without a cookie option.
  516. 0x200: (server) accept data-in-SYN w/o any cookie option present.
  517. 0x400: (server) enable all listeners to support Fast Open by
  518. default without explicit TCP_FASTOPEN socket option.
  519. Default: 0x1
  520. Note that that additional client or server features are only
  521. effective if the basic support (0x1 and 0x2) are enabled respectively.
  522. tcp_fastopen_blackhole_timeout_sec - INTEGER
  523. Initial time period in second to disable Fastopen on active TCP sockets
  524. when a TFO firewall blackhole issue happens.
  525. This time period will grow exponentially when more blackhole issues
  526. get detected right after Fastopen is re-enabled and will reset to
  527. initial value when the blackhole issue goes away.
  528. 0 to disable the blackhole detection.
  529. By default, it is set to 1hr.
  530. tcp_syn_retries - INTEGER
  531. Number of times initial SYNs for an active TCP connection attempt
  532. will be retransmitted. Should not be higher than 127. Default value
  533. is 6, which corresponds to 63seconds till the last retransmission
  534. with the current initial RTO of 1second. With this the final timeout
  535. for an active TCP connection attempt will happen after 127seconds.
  536. tcp_timestamps - INTEGER
  537. Enable timestamps as defined in RFC1323.
  538. 0: Disabled.
  539. 1: Enable timestamps as defined in RFC1323 and use random offset for
  540. each connection rather than only using the current time.
  541. 2: Like 1, but without random offsets.
  542. Default: 1
  543. tcp_min_tso_segs - INTEGER
  544. Minimal number of segments per TSO frame.
  545. Since linux-3.12, TCP does an automatic sizing of TSO frames,
  546. depending on flow rate, instead of filling 64Kbytes packets.
  547. For specific usages, it's possible to force TCP to build big
  548. TSO frames. Note that TCP stack might split too big TSO packets
  549. if available window is too small.
  550. Default: 2
  551. tcp_pacing_ss_ratio - INTEGER
  552. sk->sk_pacing_rate is set by TCP stack using a ratio applied
  553. to current rate. (current_rate = cwnd * mss / srtt)
  554. If TCP is in slow start, tcp_pacing_ss_ratio is applied
  555. to let TCP probe for bigger speeds, assuming cwnd can be
  556. doubled every other RTT.
  557. Default: 200
  558. tcp_pacing_ca_ratio - INTEGER
  559. sk->sk_pacing_rate is set by TCP stack using a ratio applied
  560. to current rate. (current_rate = cwnd * mss / srtt)
  561. If TCP is in congestion avoidance phase, tcp_pacing_ca_ratio
  562. is applied to conservatively probe for bigger throughput.
  563. Default: 120
  564. tcp_tso_win_divisor - INTEGER
  565. This allows control over what percentage of the congestion window
  566. can be consumed by a single TSO frame.
  567. The setting of this parameter is a choice between burstiness and
  568. building larger TSO frames.
  569. Default: 3
  570. tcp_tw_reuse - INTEGER
  571. Enable reuse of TIME-WAIT sockets for new connections when it is
  572. safe from protocol viewpoint.
  573. 0 - disable
  574. 1 - global enable
  575. 2 - enable for loopback traffic only
  576. It should not be changed without advice/request of technical
  577. experts.
  578. Default: 2
  579. tcp_window_scaling - BOOLEAN
  580. Enable window scaling as defined in RFC1323.
  581. tcp_wmem - vector of 3 INTEGERs: min, default, max
  582. min: Amount of memory reserved for send buffers for TCP sockets.
  583. Each TCP socket has rights to use it due to fact of its birth.
  584. Default: 4K
  585. default: initial size of send buffer used by TCP sockets. This
  586. value overrides net.core.wmem_default used by other protocols.
  587. It is usually lower than net.core.wmem_default.
  588. Default: 16K
  589. max: Maximal amount of memory allowed for automatically tuned
  590. send buffers for TCP sockets. This value does not override
  591. net.core.wmem_max. Calling setsockopt() with SO_SNDBUF disables
  592. automatic tuning of that socket's send buffer size, in which case
  593. this value is ignored.
  594. Default: between 64K and 4MB, depending on RAM size.
  595. tcp_notsent_lowat - UNSIGNED INTEGER
  596. A TCP socket can control the amount of unsent bytes in its write queue,
  597. thanks to TCP_NOTSENT_LOWAT socket option. poll()/select()/epoll()
  598. reports POLLOUT events if the amount of unsent bytes is below a per
  599. socket value, and if the write queue is not full. sendmsg() will
  600. also not add new buffers if the limit is hit.
  601. This global variable controls the amount of unsent data for
  602. sockets not using TCP_NOTSENT_LOWAT. For these sockets, a change
  603. to the global variable has immediate effect.
  604. Default: UINT_MAX (0xFFFFFFFF)
  605. tcp_workaround_signed_windows - BOOLEAN
  606. If set, assume no receipt of a window scaling option means the
  607. remote TCP is broken and treats the window as a signed quantity.
  608. If unset, assume the remote TCP is not broken even if we do
  609. not receive a window scaling option from them.
  610. Default: 0
  611. tcp_thin_linear_timeouts - BOOLEAN
  612. Enable dynamic triggering of linear timeouts for thin streams.
  613. If set, a check is performed upon retransmission by timeout to
  614. determine if the stream is thin (less than 4 packets in flight).
  615. As long as the stream is found to be thin, up to 6 linear
  616. timeouts may be performed before exponential backoff mode is
  617. initiated. This improves retransmission latency for
  618. non-aggressive thin streams, often found to be time-dependent.
  619. For more information on thin streams, see
  620. Documentation/networking/tcp-thin.txt
  621. Default: 0
  622. tcp_limit_output_bytes - INTEGER
  623. Controls TCP Small Queue limit per tcp socket.
  624. TCP bulk sender tends to increase packets in flight until it
  625. gets losses notifications. With SNDBUF autotuning, this can
  626. result in a large amount of packets queued on the local machine
  627. (e.g.: qdiscs, CPU backlog, or device) hurting latency of other
  628. flows, for typical pfifo_fast qdiscs. tcp_limit_output_bytes
  629. limits the number of bytes on qdisc or device to reduce artificial
  630. RTT/cwnd and reduce bufferbloat.
  631. Default: 262144
  632. tcp_challenge_ack_limit - INTEGER
  633. Limits number of Challenge ACK sent per second, as recommended
  634. in RFC 5961 (Improving TCP's Robustness to Blind In-Window Attacks)
  635. Default: 100
  636. UDP variables:
  637. udp_l3mdev_accept - BOOLEAN
  638. Enabling this option allows a "global" bound socket to work
  639. across L3 master domains (e.g., VRFs) with packets capable of
  640. being received regardless of the L3 domain in which they
  641. originated. Only valid when the kernel was compiled with
  642. CONFIG_NET_L3_MASTER_DEV.
  643. udp_mem - vector of 3 INTEGERs: min, pressure, max
  644. Number of pages allowed for queueing by all UDP sockets.
  645. min: Below this number of pages UDP is not bothered about its
  646. memory appetite. When amount of memory allocated by UDP exceeds
  647. this number, UDP starts to moderate memory usage.
  648. pressure: This value was introduced to follow format of tcp_mem.
  649. max: Number of pages allowed for queueing by all UDP sockets.
  650. Default is calculated at boot time from amount of available memory.
  651. udp_rmem_min - INTEGER
  652. Minimal size of receive buffer used by UDP sockets in moderation.
  653. Each UDP socket is able to use the size for receiving data, even if
  654. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  655. Default: 4K
  656. udp_wmem_min - INTEGER
  657. Minimal size of send buffer used by UDP sockets in moderation.
  658. Each UDP socket is able to use the size for sending data, even if
  659. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  660. Default: 4K
  661. CIPSOv4 Variables:
  662. cipso_cache_enable - BOOLEAN
  663. If set, enable additions to and lookups from the CIPSO label mapping
  664. cache. If unset, additions are ignored and lookups always result in a
  665. miss. However, regardless of the setting the cache is still
  666. invalidated when required when means you can safely toggle this on and
  667. off and the cache will always be "safe".
  668. Default: 1
  669. cipso_cache_bucket_size - INTEGER
  670. The CIPSO label cache consists of a fixed size hash table with each
  671. hash bucket containing a number of cache entries. This variable limits
  672. the number of entries in each hash bucket; the larger the value the
  673. more CIPSO label mappings that can be cached. When the number of
  674. entries in a given hash bucket reaches this limit adding new entries
  675. causes the oldest entry in the bucket to be removed to make room.
  676. Default: 10
  677. cipso_rbm_optfmt - BOOLEAN
  678. Enable the "Optimized Tag 1 Format" as defined in section 3.4.2.6 of
  679. the CIPSO draft specification (see Documentation/netlabel for details).
  680. This means that when set the CIPSO tag will be padded with empty
  681. categories in order to make the packet data 32-bit aligned.
  682. Default: 0
  683. cipso_rbm_structvalid - BOOLEAN
  684. If set, do a very strict check of the CIPSO option when
  685. ip_options_compile() is called. If unset, relax the checks done during
  686. ip_options_compile(). Either way is "safe" as errors are caught else
  687. where in the CIPSO processing code but setting this to 0 (False) should
  688. result in less work (i.e. it should be faster) but could cause problems
  689. with other implementations that require strict checking.
  690. Default: 0
  691. IP Variables:
  692. ip_local_port_range - 2 INTEGERS
  693. Defines the local port range that is used by TCP and UDP to
  694. choose the local port. The first number is the first, the
  695. second the last local port number.
  696. If possible, it is better these numbers have different parity.
  697. (one even and one odd values)
  698. The default values are 32768 and 60999 respectively.
  699. ip_local_reserved_ports - list of comma separated ranges
  700. Specify the ports which are reserved for known third-party
  701. applications. These ports will not be used by automatic port
  702. assignments (e.g. when calling connect() or bind() with port
  703. number 0). Explicit port allocation behavior is unchanged.
  704. The format used for both input and output is a comma separated
  705. list of ranges (e.g. "1,2-4,10-10" for ports 1, 2, 3, 4 and
  706. 10). Writing to the file will clear all previously reserved
  707. ports and update the current list with the one given in the
  708. input.
  709. Note that ip_local_port_range and ip_local_reserved_ports
  710. settings are independent and both are considered by the kernel
  711. when determining which ports are available for automatic port
  712. assignments.
  713. You can reserve ports which are not in the current
  714. ip_local_port_range, e.g.:
  715. $ cat /proc/sys/net/ipv4/ip_local_port_range
  716. 32000 60999
  717. $ cat /proc/sys/net/ipv4/ip_local_reserved_ports
  718. 8080,9148
  719. although this is redundant. However such a setting is useful
  720. if later the port range is changed to a value that will
  721. include the reserved ports.
  722. Default: Empty
  723. ip_unprivileged_port_start - INTEGER
  724. This is a per-namespace sysctl. It defines the first
  725. unprivileged port in the network namespace. Privileged ports
  726. require root or CAP_NET_BIND_SERVICE in order to bind to them.
  727. To disable all privileged ports, set this to 0. It may not
  728. overlap with the ip_local_reserved_ports range.
  729. Default: 1024
  730. ip_nonlocal_bind - BOOLEAN
  731. If set, allows processes to bind() to non-local IP addresses,
  732. which can be quite useful - but may break some applications.
  733. Default: 0
  734. ip_dynaddr - BOOLEAN
  735. If set non-zero, enables support for dynamic addresses.
  736. If set to a non-zero value larger than 1, a kernel log
  737. message will be printed when dynamic address rewriting
  738. occurs.
  739. Default: 0
  740. ip_early_demux - BOOLEAN
  741. Optimize input packet processing down to one demux for
  742. certain kinds of local sockets. Currently we only do this
  743. for established TCP and connected UDP sockets.
  744. It may add an additional cost for pure routing workloads that
  745. reduces overall throughput, in such case you should disable it.
  746. Default: 1
  747. tcp_early_demux - BOOLEAN
  748. Enable early demux for established TCP sockets.
  749. Default: 1
  750. udp_early_demux - BOOLEAN
  751. Enable early demux for connected UDP sockets. Disable this if
  752. your system could experience more unconnected load.
  753. Default: 1
  754. icmp_echo_ignore_all - BOOLEAN
  755. If set non-zero, then the kernel will ignore all ICMP ECHO
  756. requests sent to it.
  757. Default: 0
  758. icmp_echo_ignore_broadcasts - BOOLEAN
  759. If set non-zero, then the kernel will ignore all ICMP ECHO and
  760. TIMESTAMP requests sent to it via broadcast/multicast.
  761. Default: 1
  762. icmp_ratelimit - INTEGER
  763. Limit the maximal rates for sending ICMP packets whose type matches
  764. icmp_ratemask (see below) to specific targets.
  765. 0 to disable any limiting,
  766. otherwise the minimal space between responses in milliseconds.
  767. Note that another sysctl, icmp_msgs_per_sec limits the number
  768. of ICMP packets sent on all targets.
  769. Default: 1000
  770. icmp_msgs_per_sec - INTEGER
  771. Limit maximal number of ICMP packets sent per second from this host.
  772. Only messages whose type matches icmp_ratemask (see below) are
  773. controlled by this limit. For security reasons, the precise count
  774. of messages per second is randomized.
  775. Default: 1000
  776. icmp_msgs_burst - INTEGER
  777. icmp_msgs_per_sec controls number of ICMP packets sent per second,
  778. while icmp_msgs_burst controls the burst size of these packets.
  779. For security reasons, the precise burst size is randomized.
  780. Default: 50
  781. icmp_ratemask - INTEGER
  782. Mask made of ICMP types for which rates are being limited.
  783. Significant bits: IHGFEDCBA9876543210
  784. Default mask: 0000001100000011000 (6168)
  785. Bit definitions (see include/linux/icmp.h):
  786. 0 Echo Reply
  787. 3 Destination Unreachable *
  788. 4 Source Quench *
  789. 5 Redirect
  790. 8 Echo Request
  791. B Time Exceeded *
  792. C Parameter Problem *
  793. D Timestamp Request
  794. E Timestamp Reply
  795. F Info Request
  796. G Info Reply
  797. H Address Mask Request
  798. I Address Mask Reply
  799. * These are rate limited by default (see default mask above)
  800. icmp_ignore_bogus_error_responses - BOOLEAN
  801. Some routers violate RFC1122 by sending bogus responses to broadcast
  802. frames. Such violations are normally logged via a kernel warning.
  803. If this is set to TRUE, the kernel will not give such warnings, which
  804. will avoid log file clutter.
  805. Default: 1
  806. icmp_errors_use_inbound_ifaddr - BOOLEAN
  807. If zero, icmp error messages are sent with the primary address of
  808. the exiting interface.
  809. If non-zero, the message will be sent with the primary address of
  810. the interface that received the packet that caused the icmp error.
  811. This is the behaviour network many administrators will expect from
  812. a router. And it can make debugging complicated network layouts
  813. much easier.
  814. Note that if no primary address exists for the interface selected,
  815. then the primary address of the first non-loopback interface that
  816. has one will be used regardless of this setting.
  817. Default: 0
  818. igmp_max_memberships - INTEGER
  819. Change the maximum number of multicast groups we can subscribe to.
  820. Default: 20
  821. Theoretical maximum value is bounded by having to send a membership
  822. report in a single datagram (i.e. the report can't span multiple
  823. datagrams, or risk confusing the switch and leaving groups you don't
  824. intend to).
  825. The number of supported groups 'M' is bounded by the number of group
  826. report entries you can fit into a single datagram of 65535 bytes.
  827. M = 65536-sizeof (ip header)/(sizeof(Group record))
  828. Group records are variable length, with a minimum of 12 bytes.
  829. So net.ipv4.igmp_max_memberships should not be set higher than:
  830. (65536-24) / 12 = 5459
  831. The value 5459 assumes no IP header options, so in practice
  832. this number may be lower.
  833. igmp_max_msf - INTEGER
  834. Maximum number of addresses allowed in the source filter list for a
  835. multicast group.
  836. Default: 10
  837. igmp_qrv - INTEGER
  838. Controls the IGMP query robustness variable (see RFC2236 8.1).
  839. Default: 2 (as specified by RFC2236 8.1)
  840. Minimum: 1 (as specified by RFC6636 4.5)
  841. force_igmp_version - INTEGER
  842. 0 - (default) No enforcement of a IGMP version, IGMPv1/v2 fallback
  843. allowed. Will back to IGMPv3 mode again if all IGMPv1/v2 Querier
  844. Present timer expires.
  845. 1 - Enforce to use IGMP version 1. Will also reply IGMPv1 report if
  846. receive IGMPv2/v3 query.
  847. 2 - Enforce to use IGMP version 2. Will fallback to IGMPv1 if receive
  848. IGMPv1 query message. Will reply report if receive IGMPv3 query.
  849. 3 - Enforce to use IGMP version 3. The same react with default 0.
  850. Note: this is not the same with force_mld_version because IGMPv3 RFC3376
  851. Security Considerations does not have clear description that we could
  852. ignore other version messages completely as MLDv2 RFC3810. So make
  853. this value as default 0 is recommended.
  854. conf/interface/* changes special settings per interface (where
  855. "interface" is the name of your network interface)
  856. conf/all/* is special, changes the settings for all interfaces
  857. log_martians - BOOLEAN
  858. Log packets with impossible addresses to kernel log.
  859. log_martians for the interface will be enabled if at least one of
  860. conf/{all,interface}/log_martians is set to TRUE,
  861. it will be disabled otherwise
  862. accept_redirects - BOOLEAN
  863. Accept ICMP redirect messages.
  864. accept_redirects for the interface will be enabled if:
  865. - both conf/{all,interface}/accept_redirects are TRUE in the case
  866. forwarding for the interface is enabled
  867. or
  868. - at least one of conf/{all,interface}/accept_redirects is TRUE in the
  869. case forwarding for the interface is disabled
  870. accept_redirects for the interface will be disabled otherwise
  871. default TRUE (host)
  872. FALSE (router)
  873. forwarding - BOOLEAN
  874. Enable IP forwarding on this interface. This controls whether packets
  875. received _on_ this interface can be forwarded.
  876. mc_forwarding - BOOLEAN
  877. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  878. and a multicast routing daemon is required.
  879. conf/all/mc_forwarding must also be set to TRUE to enable multicast
  880. routing for the interface
  881. medium_id - INTEGER
  882. Integer value used to differentiate the devices by the medium they
  883. are attached to. Two devices can have different id values when
  884. the broadcast packets are received only on one of them.
  885. The default value 0 means that the device is the only interface
  886. to its medium, value of -1 means that medium is not known.
  887. Currently, it is used to change the proxy_arp behavior:
  888. the proxy_arp feature is enabled for packets forwarded between
  889. two devices attached to different media.
  890. proxy_arp - BOOLEAN
  891. Do proxy arp.
  892. proxy_arp for the interface will be enabled if at least one of
  893. conf/{all,interface}/proxy_arp is set to TRUE,
  894. it will be disabled otherwise
  895. proxy_arp_pvlan - BOOLEAN
  896. Private VLAN proxy arp.
  897. Basically allow proxy arp replies back to the same interface
  898. (from which the ARP request/solicitation was received).
  899. This is done to support (ethernet) switch features, like RFC
  900. 3069, where the individual ports are NOT allowed to
  901. communicate with each other, but they are allowed to talk to
  902. the upstream router. As described in RFC 3069, it is possible
  903. to allow these hosts to communicate through the upstream
  904. router by proxy_arp'ing. Don't need to be used together with
  905. proxy_arp.
  906. This technology is known by different names:
  907. In RFC 3069 it is called VLAN Aggregation.
  908. Cisco and Allied Telesyn call it Private VLAN.
  909. Hewlett-Packard call it Source-Port filtering or port-isolation.
  910. Ericsson call it MAC-Forced Forwarding (RFC Draft).
  911. shared_media - BOOLEAN
  912. Send(router) or accept(host) RFC1620 shared media redirects.
  913. Overrides secure_redirects.
  914. shared_media for the interface will be enabled if at least one of
  915. conf/{all,interface}/shared_media is set to TRUE,
  916. it will be disabled otherwise
  917. default TRUE
  918. secure_redirects - BOOLEAN
  919. Accept ICMP redirect messages only to gateways listed in the
  920. interface's current gateway list. Even if disabled, RFC1122 redirect
  921. rules still apply.
  922. Overridden by shared_media.
  923. secure_redirects for the interface will be enabled if at least one of
  924. conf/{all,interface}/secure_redirects is set to TRUE,
  925. it will be disabled otherwise
  926. default TRUE
  927. send_redirects - BOOLEAN
  928. Send redirects, if router.
  929. send_redirects for the interface will be enabled if at least one of
  930. conf/{all,interface}/send_redirects is set to TRUE,
  931. it will be disabled otherwise
  932. Default: TRUE
  933. bootp_relay - BOOLEAN
  934. Accept packets with source address 0.b.c.d destined
  935. not to this host as local ones. It is supposed, that
  936. BOOTP relay daemon will catch and forward such packets.
  937. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  938. for the interface
  939. default FALSE
  940. Not Implemented Yet.
  941. accept_source_route - BOOLEAN
  942. Accept packets with SRR option.
  943. conf/all/accept_source_route must also be set to TRUE to accept packets
  944. with SRR option on the interface
  945. default TRUE (router)
  946. FALSE (host)
  947. accept_local - BOOLEAN
  948. Accept packets with local source addresses. In combination with
  949. suitable routing, this can be used to direct packets between two
  950. local interfaces over the wire and have them accepted properly.
  951. default FALSE
  952. route_localnet - BOOLEAN
  953. Do not consider loopback addresses as martian source or destination
  954. while routing. This enables the use of 127/8 for local routing purposes.
  955. default FALSE
  956. rp_filter - INTEGER
  957. 0 - No source validation.
  958. 1 - Strict mode as defined in RFC3704 Strict Reverse Path
  959. Each incoming packet is tested against the FIB and if the interface
  960. is not the best reverse path the packet check will fail.
  961. By default failed packets are discarded.
  962. 2 - Loose mode as defined in RFC3704 Loose Reverse Path
  963. Each incoming packet's source address is also tested against the FIB
  964. and if the source address is not reachable via any interface
  965. the packet check will fail.
  966. Current recommended practice in RFC3704 is to enable strict mode
  967. to prevent IP spoofing from DDos attacks. If using asymmetric routing
  968. or other complicated routing, then loose mode is recommended.
  969. The max value from conf/{all,interface}/rp_filter is used
  970. when doing source validation on the {interface}.
  971. Default value is 0. Note that some distributions enable it
  972. in startup scripts.
  973. arp_filter - BOOLEAN
  974. 1 - Allows you to have multiple network interfaces on the same
  975. subnet, and have the ARPs for each interface be answered
  976. based on whether or not the kernel would route a packet from
  977. the ARP'd IP out that interface (therefore you must use source
  978. based routing for this to work). In other words it allows control
  979. of which cards (usually 1) will respond to an arp request.
  980. 0 - (default) The kernel can respond to arp requests with addresses
  981. from other interfaces. This may seem wrong but it usually makes
  982. sense, because it increases the chance of successful communication.
  983. IP addresses are owned by the complete host on Linux, not by
  984. particular interfaces. Only for more complex setups like load-
  985. balancing, does this behaviour cause problems.
  986. arp_filter for the interface will be enabled if at least one of
  987. conf/{all,interface}/arp_filter is set to TRUE,
  988. it will be disabled otherwise
  989. arp_announce - INTEGER
  990. Define different restriction levels for announcing the local
  991. source IP address from IP packets in ARP requests sent on
  992. interface:
  993. 0 - (default) Use any local address, configured on any interface
  994. 1 - Try to avoid local addresses that are not in the target's
  995. subnet for this interface. This mode is useful when target
  996. hosts reachable via this interface require the source IP
  997. address in ARP requests to be part of their logical network
  998. configured on the receiving interface. When we generate the
  999. request we will check all our subnets that include the
  1000. target IP and will preserve the source address if it is from
  1001. such subnet. If there is no such subnet we select source
  1002. address according to the rules for level 2.
  1003. 2 - Always use the best local address for this target.
  1004. In this mode we ignore the source address in the IP packet
  1005. and try to select local address that we prefer for talks with
  1006. the target host. Such local address is selected by looking
  1007. for primary IP addresses on all our subnets on the outgoing
  1008. interface that include the target IP address. If no suitable
  1009. local address is found we select the first local address
  1010. we have on the outgoing interface or on all other interfaces,
  1011. with the hope we will receive reply for our request and
  1012. even sometimes no matter the source IP address we announce.
  1013. The max value from conf/{all,interface}/arp_announce is used.
  1014. Increasing the restriction level gives more chance for
  1015. receiving answer from the resolved target while decreasing
  1016. the level announces more valid sender's information.
  1017. arp_ignore - INTEGER
  1018. Define different modes for sending replies in response to
  1019. received ARP requests that resolve local target IP addresses:
  1020. 0 - (default): reply for any local target IP address, configured
  1021. on any interface
  1022. 1 - reply only if the target IP address is local address
  1023. configured on the incoming interface
  1024. 2 - reply only if the target IP address is local address
  1025. configured on the incoming interface and both with the
  1026. sender's IP address are part from same subnet on this interface
  1027. 3 - do not reply for local addresses configured with scope host,
  1028. only resolutions for global and link addresses are replied
  1029. 4-7 - reserved
  1030. 8 - do not reply for all local addresses
  1031. The max value from conf/{all,interface}/arp_ignore is used
  1032. when ARP request is received on the {interface}
  1033. arp_notify - BOOLEAN
  1034. Define mode for notification of address and device changes.
  1035. 0 - (default): do nothing
  1036. 1 - Generate gratuitous arp requests when device is brought up
  1037. or hardware address changes.
  1038. arp_accept - BOOLEAN
  1039. Define behavior for gratuitous ARP frames who's IP is not
  1040. already present in the ARP table:
  1041. 0 - don't create new entries in the ARP table
  1042. 1 - create new entries in the ARP table
  1043. Both replies and requests type gratuitous arp will trigger the
  1044. ARP table to be updated, if this setting is on.
  1045. If the ARP table already contains the IP address of the
  1046. gratuitous arp frame, the arp table will be updated regardless
  1047. if this setting is on or off.
  1048. mcast_solicit - INTEGER
  1049. The maximum number of multicast probes in INCOMPLETE state,
  1050. when the associated hardware address is unknown. Defaults
  1051. to 3.
  1052. ucast_solicit - INTEGER
  1053. The maximum number of unicast probes in PROBE state, when
  1054. the hardware address is being reconfirmed. Defaults to 3.
  1055. app_solicit - INTEGER
  1056. The maximum number of probes to send to the user space ARP daemon
  1057. via netlink before dropping back to multicast probes (see
  1058. mcast_resolicit). Defaults to 0.
  1059. mcast_resolicit - INTEGER
  1060. The maximum number of multicast probes after unicast and
  1061. app probes in PROBE state. Defaults to 0.
  1062. disable_policy - BOOLEAN
  1063. Disable IPSEC policy (SPD) for this interface
  1064. disable_xfrm - BOOLEAN
  1065. Disable IPSEC encryption on this interface, whatever the policy
  1066. igmpv2_unsolicited_report_interval - INTEGER
  1067. The interval in milliseconds in which the next unsolicited
  1068. IGMPv1 or IGMPv2 report retransmit will take place.
  1069. Default: 10000 (10 seconds)
  1070. igmpv3_unsolicited_report_interval - INTEGER
  1071. The interval in milliseconds in which the next unsolicited
  1072. IGMPv3 report retransmit will take place.
  1073. Default: 1000 (1 seconds)
  1074. promote_secondaries - BOOLEAN
  1075. When a primary IP address is removed from this interface
  1076. promote a corresponding secondary IP address instead of
  1077. removing all the corresponding secondary IP addresses.
  1078. drop_unicast_in_l2_multicast - BOOLEAN
  1079. Drop any unicast IP packets that are received in link-layer
  1080. multicast (or broadcast) frames.
  1081. This behavior (for multicast) is actually a SHOULD in RFC
  1082. 1122, but is disabled by default for compatibility reasons.
  1083. Default: off (0)
  1084. drop_gratuitous_arp - BOOLEAN
  1085. Drop all gratuitous ARP frames, for example if there's a known
  1086. good ARP proxy on the network and such frames need not be used
  1087. (or in the case of 802.11, must not be used to prevent attacks.)
  1088. Default: off (0)
  1089. tag - INTEGER
  1090. Allows you to write a number, which can be used as required.
  1091. Default value is 0.
  1092. xfrm4_gc_thresh - INTEGER
  1093. The threshold at which we will start garbage collecting for IPv4
  1094. destination cache entries. At twice this value the system will
  1095. refuse new allocations.
  1096. igmp_link_local_mcast_reports - BOOLEAN
  1097. Enable IGMP reports for link local multicast groups in the
  1098. 224.0.0.X range.
  1099. Default TRUE
  1100. Alexey Kuznetsov.
  1101. kuznet@ms2.inr.ac.ru
  1102. Updated by:
  1103. Andi Kleen
  1104. ak@muc.de
  1105. Nicolas Delon
  1106. delon.nicolas@wanadoo.fr
  1107. /proc/sys/net/ipv6/* Variables:
  1108. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  1109. apply to IPv6 [XXX?].
  1110. bindv6only - BOOLEAN
  1111. Default value for IPV6_V6ONLY socket option,
  1112. which restricts use of the IPv6 socket to IPv6 communication
  1113. only.
  1114. TRUE: disable IPv4-mapped address feature
  1115. FALSE: enable IPv4-mapped address feature
  1116. Default: FALSE (as specified in RFC3493)
  1117. flowlabel_consistency - BOOLEAN
  1118. Protect the consistency (and unicity) of flow label.
  1119. You have to disable it to use IPV6_FL_F_REFLECT flag on the
  1120. flow label manager.
  1121. TRUE: enabled
  1122. FALSE: disabled
  1123. Default: TRUE
  1124. auto_flowlabels - INTEGER
  1125. Automatically generate flow labels based on a flow hash of the
  1126. packet. This allows intermediate devices, such as routers, to
  1127. identify packet flows for mechanisms like Equal Cost Multipath
  1128. Routing (see RFC 6438).
  1129. 0: automatic flow labels are completely disabled
  1130. 1: automatic flow labels are enabled by default, they can be
  1131. disabled on a per socket basis using the IPV6_AUTOFLOWLABEL
  1132. socket option
  1133. 2: automatic flow labels are allowed, they may be enabled on a
  1134. per socket basis using the IPV6_AUTOFLOWLABEL socket option
  1135. 3: automatic flow labels are enabled and enforced, they cannot
  1136. be disabled by the socket option
  1137. Default: 1
  1138. flowlabel_state_ranges - BOOLEAN
  1139. Split the flow label number space into two ranges. 0-0x7FFFF is
  1140. reserved for the IPv6 flow manager facility, 0x80000-0xFFFFF
  1141. is reserved for stateless flow labels as described in RFC6437.
  1142. TRUE: enabled
  1143. FALSE: disabled
  1144. Default: true
  1145. flowlabel_reflect - BOOLEAN
  1146. Automatically reflect the flow label. Needed for Path MTU
  1147. Discovery to work with Equal Cost Multipath Routing in anycast
  1148. environments. See RFC 7690 and:
  1149. https://tools.ietf.org/html/draft-wang-6man-flow-label-reflection-01
  1150. TRUE: enabled
  1151. FALSE: disabled
  1152. Default: FALSE
  1153. fib_multipath_hash_policy - INTEGER
  1154. Controls which hash policy to use for multipath routes.
  1155. Default: 0 (Layer 3)
  1156. Possible values:
  1157. 0 - Layer 3 (source and destination addresses plus flow label)
  1158. 1 - Layer 4 (standard 5-tuple)
  1159. anycast_src_echo_reply - BOOLEAN
  1160. Controls the use of anycast addresses as source addresses for ICMPv6
  1161. echo reply
  1162. TRUE: enabled
  1163. FALSE: disabled
  1164. Default: FALSE
  1165. idgen_delay - INTEGER
  1166. Controls the delay in seconds after which time to retry
  1167. privacy stable address generation if a DAD conflict is
  1168. detected.
  1169. Default: 1 (as specified in RFC7217)
  1170. idgen_retries - INTEGER
  1171. Controls the number of retries to generate a stable privacy
  1172. address if a DAD conflict is detected.
  1173. Default: 3 (as specified in RFC7217)
  1174. mld_qrv - INTEGER
  1175. Controls the MLD query robustness variable (see RFC3810 9.1).
  1176. Default: 2 (as specified by RFC3810 9.1)
  1177. Minimum: 1 (as specified by RFC6636 4.5)
  1178. max_dst_opts_number - INTEGER
  1179. Maximum number of non-padding TLVs allowed in a Destination
  1180. options extension header. If this value is less than zero
  1181. then unknown options are disallowed and the number of known
  1182. TLVs allowed is the absolute value of this number.
  1183. Default: 8
  1184. max_hbh_opts_number - INTEGER
  1185. Maximum number of non-padding TLVs allowed in a Hop-by-Hop
  1186. options extension header. If this value is less than zero
  1187. then unknown options are disallowed and the number of known
  1188. TLVs allowed is the absolute value of this number.
  1189. Default: 8
  1190. max_dst_opts_length - INTEGER
  1191. Maximum length allowed for a Destination options extension
  1192. header.
  1193. Default: INT_MAX (unlimited)
  1194. max_hbh_length - INTEGER
  1195. Maximum length allowed for a Hop-by-Hop options extension
  1196. header.
  1197. Default: INT_MAX (unlimited)
  1198. IPv6 Fragmentation:
  1199. ip6frag_high_thresh - INTEGER
  1200. Maximum memory used to reassemble IPv6 fragments. When
  1201. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  1202. the fragment handler will toss packets until ip6frag_low_thresh
  1203. is reached.
  1204. ip6frag_low_thresh - INTEGER
  1205. See ip6frag_high_thresh
  1206. ip6frag_time - INTEGER
  1207. Time in seconds to keep an IPv6 fragment in memory.
  1208. IPv6 Segment Routing:
  1209. seg6_flowlabel - INTEGER
  1210. Controls the behaviour of computing the flowlabel of outer
  1211. IPv6 header in case of SR T.encaps
  1212. -1 set flowlabel to zero.
  1213. 0 copy flowlabel from Inner packet in case of Inner IPv6
  1214. (Set flowlabel to 0 in case IPv4/L2)
  1215. 1 Compute the flowlabel using seg6_make_flowlabel()
  1216. Default is 0.
  1217. conf/default/*:
  1218. Change the interface-specific default settings.
  1219. conf/all/*:
  1220. Change all the interface-specific settings.
  1221. [XXX: Other special features than forwarding?]
  1222. conf/all/forwarding - BOOLEAN
  1223. Enable global IPv6 forwarding between all interfaces.
  1224. IPv4 and IPv6 work differently here; e.g. netfilter must be used
  1225. to control which interfaces may forward packets and which not.
  1226. This also sets all interfaces' Host/Router setting
  1227. 'forwarding' to the specified value. See below for details.
  1228. This referred to as global forwarding.
  1229. proxy_ndp - BOOLEAN
  1230. Do proxy ndp.
  1231. fwmark_reflect - BOOLEAN
  1232. Controls the fwmark of kernel-generated IPv6 reply packets that are not
  1233. associated with a socket for example, TCP RSTs or ICMPv6 echo replies).
  1234. If unset, these packets have a fwmark of zero. If set, they have the
  1235. fwmark of the packet they are replying to.
  1236. Default: 0
  1237. conf/interface/*:
  1238. Change special settings per interface.
  1239. The functional behaviour for certain settings is different
  1240. depending on whether local forwarding is enabled or not.
  1241. accept_ra - INTEGER
  1242. Accept Router Advertisements; autoconfigure using them.
  1243. It also determines whether or not to transmit Router
  1244. Solicitations. If and only if the functional setting is to
  1245. accept Router Advertisements, Router Solicitations will be
  1246. transmitted.
  1247. Possible values are:
  1248. 0 Do not accept Router Advertisements.
  1249. 1 Accept Router Advertisements if forwarding is disabled.
  1250. 2 Overrule forwarding behaviour. Accept Router Advertisements
  1251. even if forwarding is enabled.
  1252. Functional default: enabled if local forwarding is disabled.
  1253. disabled if local forwarding is enabled.
  1254. accept_ra_defrtr - BOOLEAN
  1255. Learn default router in Router Advertisement.
  1256. Functional default: enabled if accept_ra is enabled.
  1257. disabled if accept_ra is disabled.
  1258. accept_ra_from_local - BOOLEAN
  1259. Accept RA with source-address that is found on local machine
  1260. if the RA is otherwise proper and able to be accepted.
  1261. Default is to NOT accept these as it may be an un-intended
  1262. network loop.
  1263. Functional default:
  1264. enabled if accept_ra_from_local is enabled
  1265. on a specific interface.
  1266. disabled if accept_ra_from_local is disabled
  1267. on a specific interface.
  1268. accept_ra_min_hop_limit - INTEGER
  1269. Minimum hop limit Information in Router Advertisement.
  1270. Hop limit Information in Router Advertisement less than this
  1271. variable shall be ignored.
  1272. Default: 1
  1273. accept_ra_pinfo - BOOLEAN
  1274. Learn Prefix Information in Router Advertisement.
  1275. Functional default: enabled if accept_ra is enabled.
  1276. disabled if accept_ra is disabled.
  1277. accept_ra_rt_info_min_plen - INTEGER
  1278. Minimum prefix length of Route Information in RA.
  1279. Route Information w/ prefix smaller than this variable shall
  1280. be ignored.
  1281. Functional default: 0 if accept_ra_rtr_pref is enabled.
  1282. -1 if accept_ra_rtr_pref is disabled.
  1283. accept_ra_rt_info_max_plen - INTEGER
  1284. Maximum prefix length of Route Information in RA.
  1285. Route Information w/ prefix larger than this variable shall
  1286. be ignored.
  1287. Functional default: 0 if accept_ra_rtr_pref is enabled.
  1288. -1 if accept_ra_rtr_pref is disabled.
  1289. accept_ra_rtr_pref - BOOLEAN
  1290. Accept Router Preference in RA.
  1291. Functional default: enabled if accept_ra is enabled.
  1292. disabled if accept_ra is disabled.
  1293. accept_ra_mtu - BOOLEAN
  1294. Apply the MTU value specified in RA option 5 (RFC4861). If
  1295. disabled, the MTU specified in the RA will be ignored.
  1296. Functional default: enabled if accept_ra is enabled.
  1297. disabled if accept_ra is disabled.
  1298. accept_redirects - BOOLEAN
  1299. Accept Redirects.
  1300. Functional default: enabled if local forwarding is disabled.
  1301. disabled if local forwarding is enabled.
  1302. accept_source_route - INTEGER
  1303. Accept source routing (routing extension header).
  1304. >= 0: Accept only routing header type 2.
  1305. < 0: Do not accept routing header.
  1306. Default: 0
  1307. autoconf - BOOLEAN
  1308. Autoconfigure addresses using Prefix Information in Router
  1309. Advertisements.
  1310. Functional default: enabled if accept_ra_pinfo is enabled.
  1311. disabled if accept_ra_pinfo is disabled.
  1312. dad_transmits - INTEGER
  1313. The amount of Duplicate Address Detection probes to send.
  1314. Default: 1
  1315. forwarding - INTEGER
  1316. Configure interface-specific Host/Router behaviour.
  1317. Note: It is recommended to have the same setting on all
  1318. interfaces; mixed router/host scenarios are rather uncommon.
  1319. Possible values are:
  1320. 0 Forwarding disabled
  1321. 1 Forwarding enabled
  1322. FALSE (0):
  1323. By default, Host behaviour is assumed. This means:
  1324. 1. IsRouter flag is not set in Neighbour Advertisements.
  1325. 2. If accept_ra is TRUE (default), transmit Router
  1326. Solicitations.
  1327. 3. If accept_ra is TRUE (default), accept Router
  1328. Advertisements (and do autoconfiguration).
  1329. 4. If accept_redirects is TRUE (default), accept Redirects.
  1330. TRUE (1):
  1331. If local forwarding is enabled, Router behaviour is assumed.
  1332. This means exactly the reverse from the above:
  1333. 1. IsRouter flag is set in Neighbour Advertisements.
  1334. 2. Router Solicitations are not sent unless accept_ra is 2.
  1335. 3. Router Advertisements are ignored unless accept_ra is 2.
  1336. 4. Redirects are ignored.
  1337. Default: 0 (disabled) if global forwarding is disabled (default),
  1338. otherwise 1 (enabled).
  1339. hop_limit - INTEGER
  1340. Default Hop Limit to set.
  1341. Default: 64
  1342. mtu - INTEGER
  1343. Default Maximum Transfer Unit
  1344. Default: 1280 (IPv6 required minimum)
  1345. ip_nonlocal_bind - BOOLEAN
  1346. If set, allows processes to bind() to non-local IPv6 addresses,
  1347. which can be quite useful - but may break some applications.
  1348. Default: 0
  1349. router_probe_interval - INTEGER
  1350. Minimum interval (in seconds) between Router Probing described
  1351. in RFC4191.
  1352. Default: 60
  1353. router_solicitation_delay - INTEGER
  1354. Number of seconds to wait after interface is brought up
  1355. before sending Router Solicitations.
  1356. Default: 1
  1357. router_solicitation_interval - INTEGER
  1358. Number of seconds to wait between Router Solicitations.
  1359. Default: 4
  1360. router_solicitations - INTEGER
  1361. Number of Router Solicitations to send until assuming no
  1362. routers are present.
  1363. Default: 3
  1364. use_oif_addrs_only - BOOLEAN
  1365. When enabled, the candidate source addresses for destinations
  1366. routed via this interface are restricted to the set of addresses
  1367. configured on this interface (vis. RFC 6724, section 4).
  1368. Default: false
  1369. use_tempaddr - INTEGER
  1370. Preference for Privacy Extensions (RFC3041).
  1371. <= 0 : disable Privacy Extensions
  1372. == 1 : enable Privacy Extensions, but prefer public
  1373. addresses over temporary addresses.
  1374. > 1 : enable Privacy Extensions and prefer temporary
  1375. addresses over public addresses.
  1376. Default: 0 (for most devices)
  1377. -1 (for point-to-point devices and loopback devices)
  1378. temp_valid_lft - INTEGER
  1379. valid lifetime (in seconds) for temporary addresses.
  1380. Default: 604800 (7 days)
  1381. temp_prefered_lft - INTEGER
  1382. Preferred lifetime (in seconds) for temporary addresses.
  1383. Default: 86400 (1 day)
  1384. keep_addr_on_down - INTEGER
  1385. Keep all IPv6 addresses on an interface down event. If set static
  1386. global addresses with no expiration time are not flushed.
  1387. >0 : enabled
  1388. 0 : system default
  1389. <0 : disabled
  1390. Default: 0 (addresses are removed)
  1391. max_desync_factor - INTEGER
  1392. Maximum value for DESYNC_FACTOR, which is a random value
  1393. that ensures that clients don't synchronize with each
  1394. other and generate new addresses at exactly the same time.
  1395. value is in seconds.
  1396. Default: 600
  1397. regen_max_retry - INTEGER
  1398. Number of attempts before give up attempting to generate
  1399. valid temporary addresses.
  1400. Default: 5
  1401. max_addresses - INTEGER
  1402. Maximum number of autoconfigured addresses per interface. Setting
  1403. to zero disables the limitation. It is not recommended to set this
  1404. value too large (or to zero) because it would be an easy way to
  1405. crash the kernel by allowing too many addresses to be created.
  1406. Default: 16
  1407. disable_ipv6 - BOOLEAN
  1408. Disable IPv6 operation. If accept_dad is set to 2, this value
  1409. will be dynamically set to TRUE if DAD fails for the link-local
  1410. address.
  1411. Default: FALSE (enable IPv6 operation)
  1412. When this value is changed from 1 to 0 (IPv6 is being enabled),
  1413. it will dynamically create a link-local address on the given
  1414. interface and start Duplicate Address Detection, if necessary.
  1415. When this value is changed from 0 to 1 (IPv6 is being disabled),
  1416. it will dynamically delete all addresses and routes on the given
  1417. interface. From now on it will not possible to add addresses/routes
  1418. to the selected interface.
  1419. accept_dad - INTEGER
  1420. Whether to accept DAD (Duplicate Address Detection).
  1421. 0: Disable DAD
  1422. 1: Enable DAD (default)
  1423. 2: Enable DAD, and disable IPv6 operation if MAC-based duplicate
  1424. link-local address has been found.
  1425. DAD operation and mode on a given interface will be selected according
  1426. to the maximum value of conf/{all,interface}/accept_dad.
  1427. force_tllao - BOOLEAN
  1428. Enable sending the target link-layer address option even when
  1429. responding to a unicast neighbor solicitation.
  1430. Default: FALSE
  1431. Quoting from RFC 2461, section 4.4, Target link-layer address:
  1432. "The option MUST be included for multicast solicitations in order to
  1433. avoid infinite Neighbor Solicitation "recursion" when the peer node
  1434. does not have a cache entry to return a Neighbor Advertisements
  1435. message. When responding to unicast solicitations, the option can be
  1436. omitted since the sender of the solicitation has the correct link-
  1437. layer address; otherwise it would not have be able to send the unicast
  1438. solicitation in the first place. However, including the link-layer
  1439. address in this case adds little overhead and eliminates a potential
  1440. race condition where the sender deletes the cached link-layer address
  1441. prior to receiving a response to a previous solicitation."
  1442. ndisc_notify - BOOLEAN
  1443. Define mode for notification of address and device changes.
  1444. 0 - (default): do nothing
  1445. 1 - Generate unsolicited neighbour advertisements when device is brought
  1446. up or hardware address changes.
  1447. ndisc_tclass - INTEGER
  1448. The IPv6 Traffic Class to use by default when sending IPv6 Neighbor
  1449. Discovery (Router Solicitation, Router Advertisement, Neighbor
  1450. Solicitation, Neighbor Advertisement, Redirect) messages.
  1451. These 8 bits can be interpreted as 6 high order bits holding the DSCP
  1452. value and 2 low order bits representing ECN (which you probably want
  1453. to leave cleared).
  1454. 0 - (default)
  1455. mldv1_unsolicited_report_interval - INTEGER
  1456. The interval in milliseconds in which the next unsolicited
  1457. MLDv1 report retransmit will take place.
  1458. Default: 10000 (10 seconds)
  1459. mldv2_unsolicited_report_interval - INTEGER
  1460. The interval in milliseconds in which the next unsolicited
  1461. MLDv2 report retransmit will take place.
  1462. Default: 1000 (1 second)
  1463. force_mld_version - INTEGER
  1464. 0 - (default) No enforcement of a MLD version, MLDv1 fallback allowed
  1465. 1 - Enforce to use MLD version 1
  1466. 2 - Enforce to use MLD version 2
  1467. suppress_frag_ndisc - INTEGER
  1468. Control RFC 6980 (Security Implications of IPv6 Fragmentation
  1469. with IPv6 Neighbor Discovery) behavior:
  1470. 1 - (default) discard fragmented neighbor discovery packets
  1471. 0 - allow fragmented neighbor discovery packets
  1472. optimistic_dad - BOOLEAN
  1473. Whether to perform Optimistic Duplicate Address Detection (RFC 4429).
  1474. 0: disabled (default)
  1475. 1: enabled
  1476. Optimistic Duplicate Address Detection for the interface will be enabled
  1477. if at least one of conf/{all,interface}/optimistic_dad is set to 1,
  1478. it will be disabled otherwise.
  1479. use_optimistic - BOOLEAN
  1480. If enabled, do not classify optimistic addresses as deprecated during
  1481. source address selection. Preferred addresses will still be chosen
  1482. before optimistic addresses, subject to other ranking in the source
  1483. address selection algorithm.
  1484. 0: disabled (default)
  1485. 1: enabled
  1486. This will be enabled if at least one of
  1487. conf/{all,interface}/use_optimistic is set to 1, disabled otherwise.
  1488. stable_secret - IPv6 address
  1489. This IPv6 address will be used as a secret to generate IPv6
  1490. addresses for link-local addresses and autoconfigured
  1491. ones. All addresses generated after setting this secret will
  1492. be stable privacy ones by default. This can be changed via the
  1493. addrgenmode ip-link. conf/default/stable_secret is used as the
  1494. secret for the namespace, the interface specific ones can
  1495. overwrite that. Writes to conf/all/stable_secret are refused.
  1496. It is recommended to generate this secret during installation
  1497. of a system and keep it stable after that.
  1498. By default the stable secret is unset.
  1499. addr_gen_mode - INTEGER
  1500. Defines how link-local and autoconf addresses are generated.
  1501. 0: generate address based on EUI64 (default)
  1502. 1: do no generate a link-local address, use EUI64 for addresses generated
  1503. from autoconf
  1504. 2: generate stable privacy addresses, using the secret from
  1505. stable_secret (RFC7217)
  1506. 3: generate stable privacy addresses, using a random secret if unset
  1507. drop_unicast_in_l2_multicast - BOOLEAN
  1508. Drop any unicast IPv6 packets that are received in link-layer
  1509. multicast (or broadcast) frames.
  1510. By default this is turned off.
  1511. drop_unsolicited_na - BOOLEAN
  1512. Drop all unsolicited neighbor advertisements, for example if there's
  1513. a known good NA proxy on the network and such frames need not be used
  1514. (or in the case of 802.11, must not be used to prevent attacks.)
  1515. By default this is turned off.
  1516. enhanced_dad - BOOLEAN
  1517. Include a nonce option in the IPv6 neighbor solicitation messages used for
  1518. duplicate address detection per RFC7527. A received DAD NS will only signal
  1519. a duplicate address if the nonce is different. This avoids any false
  1520. detection of duplicates due to loopback of the NS messages that we send.
  1521. The nonce option will be sent on an interface unless both of
  1522. conf/{all,interface}/enhanced_dad are set to FALSE.
  1523. Default: TRUE
  1524. icmp/*:
  1525. ratelimit - INTEGER
  1526. Limit the maximal rates for sending ICMPv6 packets.
  1527. 0 to disable any limiting,
  1528. otherwise the minimal space between responses in milliseconds.
  1529. Default: 1000
  1530. echo_ignore_all - BOOLEAN
  1531. If set non-zero, then the kernel will ignore all ICMP ECHO
  1532. requests sent to it over the IPv6 protocol.
  1533. Default: 0
  1534. xfrm6_gc_thresh - INTEGER
  1535. The threshold at which we will start garbage collecting for IPv6
  1536. destination cache entries. At twice this value the system will
  1537. refuse new allocations.
  1538. IPv6 Update by:
  1539. Pekka Savola <pekkas@netcore.fi>
  1540. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  1541. /proc/sys/net/bridge/* Variables:
  1542. bridge-nf-call-arptables - BOOLEAN
  1543. 1 : pass bridged ARP traffic to arptables' FORWARD chain.
  1544. 0 : disable this.
  1545. Default: 1
  1546. bridge-nf-call-iptables - BOOLEAN
  1547. 1 : pass bridged IPv4 traffic to iptables' chains.
  1548. 0 : disable this.
  1549. Default: 1
  1550. bridge-nf-call-ip6tables - BOOLEAN
  1551. 1 : pass bridged IPv6 traffic to ip6tables' chains.
  1552. 0 : disable this.
  1553. Default: 1
  1554. bridge-nf-filter-vlan-tagged - BOOLEAN
  1555. 1 : pass bridged vlan-tagged ARP/IP/IPv6 traffic to {arp,ip,ip6}tables.
  1556. 0 : disable this.
  1557. Default: 0
  1558. bridge-nf-filter-pppoe-tagged - BOOLEAN
  1559. 1 : pass bridged pppoe-tagged IP/IPv6 traffic to {ip,ip6}tables.
  1560. 0 : disable this.
  1561. Default: 0
  1562. bridge-nf-pass-vlan-input-dev - BOOLEAN
  1563. 1: if bridge-nf-filter-vlan-tagged is enabled, try to find a vlan
  1564. interface on the bridge and set the netfilter input device to the vlan.
  1565. This allows use of e.g. "iptables -i br0.1" and makes the REDIRECT
  1566. target work with vlan-on-top-of-bridge interfaces. When no matching
  1567. vlan interface is found, or this switch is off, the input device is
  1568. set to the bridge interface.
  1569. 0: disable bridge netfilter vlan interface lookup.
  1570. Default: 0
  1571. proc/sys/net/sctp/* Variables:
  1572. addip_enable - BOOLEAN
  1573. Enable or disable extension of Dynamic Address Reconfiguration
  1574. (ADD-IP) functionality specified in RFC5061. This extension provides
  1575. the ability to dynamically add and remove new addresses for the SCTP
  1576. associations.
  1577. 1: Enable extension.
  1578. 0: Disable extension.
  1579. Default: 0
  1580. pf_enable - INTEGER
  1581. Enable or disable pf (pf is short for potentially failed) state. A value
  1582. of pf_retrans > path_max_retrans also disables pf state. That is, one of
  1583. both pf_enable and pf_retrans > path_max_retrans can disable pf state.
  1584. Since pf_retrans and path_max_retrans can be changed by userspace
  1585. application, sometimes user expects to disable pf state by the value of
  1586. pf_retrans > path_max_retrans, but occasionally the value of pf_retrans
  1587. or path_max_retrans is changed by the user application, this pf state is
  1588. enabled. As such, it is necessary to add this to dynamically enable
  1589. and disable pf state. See:
  1590. https://datatracker.ietf.org/doc/draft-ietf-tsvwg-sctp-failover for
  1591. details.
  1592. 1: Enable pf.
  1593. 0: Disable pf.
  1594. Default: 1
  1595. addip_noauth_enable - BOOLEAN
  1596. Dynamic Address Reconfiguration (ADD-IP) requires the use of
  1597. authentication to protect the operations of adding or removing new
  1598. addresses. This requirement is mandated so that unauthorized hosts
  1599. would not be able to hijack associations. However, older
  1600. implementations may not have implemented this requirement while
  1601. allowing the ADD-IP extension. For reasons of interoperability,
  1602. we provide this variable to control the enforcement of the
  1603. authentication requirement.
  1604. 1: Allow ADD-IP extension to be used without authentication. This
  1605. should only be set in a closed environment for interoperability
  1606. with older implementations.
  1607. 0: Enforce the authentication requirement
  1608. Default: 0
  1609. auth_enable - BOOLEAN
  1610. Enable or disable Authenticated Chunks extension. This extension
  1611. provides the ability to send and receive authenticated chunks and is
  1612. required for secure operation of Dynamic Address Reconfiguration
  1613. (ADD-IP) extension.
  1614. 1: Enable this extension.
  1615. 0: Disable this extension.
  1616. Default: 0
  1617. prsctp_enable - BOOLEAN
  1618. Enable or disable the Partial Reliability extension (RFC3758) which
  1619. is used to notify peers that a given DATA should no longer be expected.
  1620. 1: Enable extension
  1621. 0: Disable
  1622. Default: 1
  1623. max_burst - INTEGER
  1624. The limit of the number of new packets that can be initially sent. It
  1625. controls how bursty the generated traffic can be.
  1626. Default: 4
  1627. association_max_retrans - INTEGER
  1628. Set the maximum number for retransmissions that an association can
  1629. attempt deciding that the remote end is unreachable. If this value
  1630. is exceeded, the association is terminated.
  1631. Default: 10
  1632. max_init_retransmits - INTEGER
  1633. The maximum number of retransmissions of INIT and COOKIE-ECHO chunks
  1634. that an association will attempt before declaring the destination
  1635. unreachable and terminating.
  1636. Default: 8
  1637. path_max_retrans - INTEGER
  1638. The maximum number of retransmissions that will be attempted on a given
  1639. path. Once this threshold is exceeded, the path is considered
  1640. unreachable, and new traffic will use a different path when the
  1641. association is multihomed.
  1642. Default: 5
  1643. pf_retrans - INTEGER
  1644. The number of retransmissions that will be attempted on a given path
  1645. before traffic is redirected to an alternate transport (should one
  1646. exist). Note this is distinct from path_max_retrans, as a path that
  1647. passes the pf_retrans threshold can still be used. Its only
  1648. deprioritized when a transmission path is selected by the stack. This
  1649. setting is primarily used to enable fast failover mechanisms without
  1650. having to reduce path_max_retrans to a very low value. See:
  1651. http://www.ietf.org/id/draft-nishida-tsvwg-sctp-failover-05.txt
  1652. for details. Note also that a value of pf_retrans > path_max_retrans
  1653. disables this feature. Since both pf_retrans and path_max_retrans can
  1654. be changed by userspace application, a variable pf_enable is used to
  1655. disable pf state.
  1656. Default: 0
  1657. rto_initial - INTEGER
  1658. The initial round trip timeout value in milliseconds that will be used
  1659. in calculating round trip times. This is the initial time interval
  1660. for retransmissions.
  1661. Default: 3000
  1662. rto_max - INTEGER
  1663. The maximum value (in milliseconds) of the round trip timeout. This
  1664. is the largest time interval that can elapse between retransmissions.
  1665. Default: 60000
  1666. rto_min - INTEGER
  1667. The minimum value (in milliseconds) of the round trip timeout. This
  1668. is the smallest time interval the can elapse between retransmissions.
  1669. Default: 1000
  1670. hb_interval - INTEGER
  1671. The interval (in milliseconds) between HEARTBEAT chunks. These chunks
  1672. are sent at the specified interval on idle paths to probe the state of
  1673. a given path between 2 associations.
  1674. Default: 30000
  1675. sack_timeout - INTEGER
  1676. The amount of time (in milliseconds) that the implementation will wait
  1677. to send a SACK.
  1678. Default: 200
  1679. valid_cookie_life - INTEGER
  1680. The default lifetime of the SCTP cookie (in milliseconds). The cookie
  1681. is used during association establishment.
  1682. Default: 60000
  1683. cookie_preserve_enable - BOOLEAN
  1684. Enable or disable the ability to extend the lifetime of the SCTP cookie
  1685. that is used during the establishment phase of SCTP association
  1686. 1: Enable cookie lifetime extension.
  1687. 0: Disable
  1688. Default: 1
  1689. cookie_hmac_alg - STRING
  1690. Select the hmac algorithm used when generating the cookie value sent by
  1691. a listening sctp socket to a connecting client in the INIT-ACK chunk.
  1692. Valid values are:
  1693. * md5
  1694. * sha1
  1695. * none
  1696. Ability to assign md5 or sha1 as the selected alg is predicated on the
  1697. configuration of those algorithms at build time (CONFIG_CRYPTO_MD5 and
  1698. CONFIG_CRYPTO_SHA1).
  1699. Default: Dependent on configuration. MD5 if available, else SHA1 if
  1700. available, else none.
  1701. rcvbuf_policy - INTEGER
  1702. Determines if the receive buffer is attributed to the socket or to
  1703. association. SCTP supports the capability to create multiple
  1704. associations on a single socket. When using this capability, it is
  1705. possible that a single stalled association that's buffering a lot
  1706. of data may block other associations from delivering their data by
  1707. consuming all of the receive buffer space. To work around this,
  1708. the rcvbuf_policy could be set to attribute the receiver buffer space
  1709. to each association instead of the socket. This prevents the described
  1710. blocking.
  1711. 1: rcvbuf space is per association
  1712. 0: rcvbuf space is per socket
  1713. Default: 0
  1714. sndbuf_policy - INTEGER
  1715. Similar to rcvbuf_policy above, this applies to send buffer space.
  1716. 1: Send buffer is tracked per association
  1717. 0: Send buffer is tracked per socket.
  1718. Default: 0
  1719. sctp_mem - vector of 3 INTEGERs: min, pressure, max
  1720. Number of pages allowed for queueing by all SCTP sockets.
  1721. min: Below this number of pages SCTP is not bothered about its
  1722. memory appetite. When amount of memory allocated by SCTP exceeds
  1723. this number, SCTP starts to moderate memory usage.
  1724. pressure: This value was introduced to follow format of tcp_mem.
  1725. max: Number of pages allowed for queueing by all SCTP sockets.
  1726. Default is calculated at boot time from amount of available memory.
  1727. sctp_rmem - vector of 3 INTEGERs: min, default, max
  1728. Only the first value ("min") is used, "default" and "max" are
  1729. ignored.
  1730. min: Minimal size of receive buffer used by SCTP socket.
  1731. It is guaranteed to each SCTP socket (but not association) even
  1732. under moderate memory pressure.
  1733. Default: 4K
  1734. sctp_wmem - vector of 3 INTEGERs: min, default, max
  1735. Currently this tunable has no effect.
  1736. addr_scope_policy - INTEGER
  1737. Control IPv4 address scoping - draft-stewart-tsvwg-sctp-ipv4-00
  1738. 0 - Disable IPv4 address scoping
  1739. 1 - Enable IPv4 address scoping
  1740. 2 - Follow draft but allow IPv4 private addresses
  1741. 3 - Follow draft but allow IPv4 link local addresses
  1742. Default: 1
  1743. /proc/sys/net/core/*
  1744. Please see: Documentation/sysctl/net.txt for descriptions of these entries.
  1745. /proc/sys/net/unix/*
  1746. max_dgram_qlen - INTEGER
  1747. The maximum length of dgram socket receive queue
  1748. Default: 10