ip-sysctl.txt 52 KB

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