ip-sysctl.txt 52 KB

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