ip-sysctl.txt 76 KB

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