ip-sysctl.txt 61 KB

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