ip-sysctl.txt 75 KB

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