ip-sysctl.txt 56 KB

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