ip-sysctl.txt 57 KB

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