ip-sysctl.txt 58 KB

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