ip-sysctl.txt 56 KB

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