ip-sysctl.txt 59 KB

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