ip-sysctl.txt 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602
  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 use sendmsg() or sendto() with MSG_FASTOPEN flag rather than
  393. connect() to perform a TCP handshake automatically.
  394. The values (bitmap) are
  395. 1: Enables sending data in the opening SYN on the client.
  396. 2: Enables TCP Fast Open on the server side, i.e., allowing data in
  397. a SYN packet to be accepted and passed to the application before
  398. 3-way hand shake finishes.
  399. 4: Send data in the opening SYN regardless of cookie availability and
  400. without a cookie option.
  401. 0x100: Accept SYN data w/o validating the cookie.
  402. 0x200: Accept data-in-SYN w/o any cookie option present.
  403. 0x400/0x800: Enable Fast Open on all listeners regardless of the
  404. TCP_FASTOPEN socket option. The two different flags designate two
  405. different ways of setting max_qlen without the TCP_FASTOPEN socket
  406. option.
  407. Default: 0
  408. Note that the client & server side Fast Open flags (1 and 2
  409. respectively) must be also enabled before the rest of flags can take
  410. effect.
  411. See include/net/tcp.h and the code for more details.
  412. tcp_syn_retries - INTEGER
  413. Number of times initial SYNs for an active TCP connection attempt
  414. will be retransmitted. Should not be higher than 255. Default value
  415. is 6, which corresponds to 63seconds till the last restransmission
  416. with the current initial RTO of 1second. With this the final timeout
  417. for an active TCP connection attempt will happen after 127seconds.
  418. tcp_timestamps - BOOLEAN
  419. Enable timestamps as defined in RFC1323.
  420. tcp_tso_win_divisor - INTEGER
  421. This allows control over what percentage of the congestion window
  422. can be consumed by a single TSO frame.
  423. The setting of this parameter is a choice between burstiness and
  424. building larger TSO frames.
  425. Default: 3
  426. tcp_tw_recycle - BOOLEAN
  427. Enable fast recycling TIME-WAIT sockets. Default value is 0.
  428. It should not be changed without advice/request of technical
  429. experts.
  430. tcp_tw_reuse - BOOLEAN
  431. Allow to reuse TIME-WAIT sockets for new connections when it is
  432. safe from protocol viewpoint. Default value is 0.
  433. It should not be changed without advice/request of technical
  434. experts.
  435. tcp_window_scaling - BOOLEAN
  436. Enable window scaling as defined in RFC1323.
  437. tcp_wmem - vector of 3 INTEGERs: min, default, max
  438. min: Amount of memory reserved for send buffers for TCP sockets.
  439. Each TCP socket has rights to use it due to fact of its birth.
  440. Default: 1 page
  441. default: initial size of send buffer used by TCP sockets. This
  442. value overrides net.core.wmem_default used by other protocols.
  443. It is usually lower than net.core.wmem_default.
  444. Default: 16K
  445. max: Maximal amount of memory allowed for automatically tuned
  446. send buffers for TCP sockets. This value does not override
  447. net.core.wmem_max. Calling setsockopt() with SO_SNDBUF disables
  448. automatic tuning of that socket's send buffer size, in which case
  449. this value is ignored.
  450. Default: between 64K and 4MB, depending on RAM size.
  451. tcp_workaround_signed_windows - BOOLEAN
  452. If set, assume no receipt of a window scaling option means the
  453. remote TCP is broken and treats the window as a signed quantity.
  454. If unset, assume the remote TCP is not broken even if we do
  455. not receive a window scaling option from them.
  456. Default: 0
  457. tcp_dma_copybreak - INTEGER
  458. Lower limit, in bytes, of the size of socket reads that will be
  459. offloaded to a DMA copy engine, if one is present in the system
  460. and CONFIG_NET_DMA is enabled.
  461. Default: 4096
  462. tcp_thin_linear_timeouts - BOOLEAN
  463. Enable dynamic triggering of linear timeouts for thin streams.
  464. If set, a check is performed upon retransmission by timeout to
  465. determine if the stream is thin (less than 4 packets in flight).
  466. As long as the stream is found to be thin, up to 6 linear
  467. timeouts may be performed before exponential backoff mode is
  468. initiated. This improves retransmission latency for
  469. non-aggressive thin streams, often found to be time-dependent.
  470. For more information on thin streams, see
  471. Documentation/networking/tcp-thin.txt
  472. Default: 0
  473. tcp_thin_dupack - BOOLEAN
  474. Enable dynamic triggering of retransmissions after one dupACK
  475. for thin streams. If set, a check is performed upon reception
  476. of a dupACK to determine if the stream is thin (less than 4
  477. packets in flight). As long as the stream is found to be thin,
  478. data is retransmitted on the first received dupACK. This
  479. improves retransmission latency for non-aggressive thin
  480. streams, often found to be time-dependent.
  481. For more information on thin streams, see
  482. Documentation/networking/tcp-thin.txt
  483. Default: 0
  484. tcp_limit_output_bytes - INTEGER
  485. Controls TCP Small Queue limit per tcp socket.
  486. TCP bulk sender tends to increase packets in flight until it
  487. gets losses notifications. With SNDBUF autotuning, this can
  488. result in a large amount of packets queued in qdisc/device
  489. on the local machine, hurting latency of other flows, for
  490. typical pfifo_fast qdiscs.
  491. tcp_limit_output_bytes limits the number of bytes on qdisc
  492. or device to reduce artificial RTT/cwnd and reduce bufferbloat.
  493. Note: For GSO/TSO enabled flows, we try to have at least two
  494. packets in flight. Reducing tcp_limit_output_bytes might also
  495. reduce the size of individual GSO packet (64KB being the max)
  496. Default: 131072
  497. tcp_challenge_ack_limit - INTEGER
  498. Limits number of Challenge ACK sent per second, as recommended
  499. in RFC 5961 (Improving TCP's Robustness to Blind In-Window Attacks)
  500. Default: 100
  501. UDP variables:
  502. udp_mem - vector of 3 INTEGERs: min, pressure, max
  503. Number of pages allowed for queueing by all UDP sockets.
  504. min: Below this number of pages UDP is not bothered about its
  505. memory appetite. When amount of memory allocated by UDP exceeds
  506. this number, UDP starts to moderate memory usage.
  507. pressure: This value was introduced to follow format of tcp_mem.
  508. max: Number of pages allowed for queueing by all UDP sockets.
  509. Default is calculated at boot time from amount of available memory.
  510. udp_rmem_min - INTEGER
  511. Minimal size of receive buffer used by UDP sockets in moderation.
  512. Each UDP socket is able to use the size for receiving data, even if
  513. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  514. Default: 1 page
  515. udp_wmem_min - INTEGER
  516. Minimal size of send buffer used by UDP sockets in moderation.
  517. Each UDP socket is able to use the size for sending data, even if
  518. total pages of UDP sockets exceed udp_mem pressure. The unit is byte.
  519. Default: 1 page
  520. CIPSOv4 Variables:
  521. cipso_cache_enable - BOOLEAN
  522. If set, enable additions to and lookups from the CIPSO label mapping
  523. cache. If unset, additions are ignored and lookups always result in a
  524. miss. However, regardless of the setting the cache is still
  525. invalidated when required when means you can safely toggle this on and
  526. off and the cache will always be "safe".
  527. Default: 1
  528. cipso_cache_bucket_size - INTEGER
  529. The CIPSO label cache consists of a fixed size hash table with each
  530. hash bucket containing a number of cache entries. This variable limits
  531. the number of entries in each hash bucket; the larger the value the
  532. more CIPSO label mappings that can be cached. When the number of
  533. entries in a given hash bucket reaches this limit adding new entries
  534. causes the oldest entry in the bucket to be removed to make room.
  535. Default: 10
  536. cipso_rbm_optfmt - BOOLEAN
  537. Enable the "Optimized Tag 1 Format" as defined in section 3.4.2.6 of
  538. the CIPSO draft specification (see Documentation/netlabel for details).
  539. This means that when set the CIPSO tag will be padded with empty
  540. categories in order to make the packet data 32-bit aligned.
  541. Default: 0
  542. cipso_rbm_structvalid - BOOLEAN
  543. If set, do a very strict check of the CIPSO option when
  544. ip_options_compile() is called. If unset, relax the checks done during
  545. ip_options_compile(). Either way is "safe" as errors are caught else
  546. where in the CIPSO processing code but setting this to 0 (False) should
  547. result in less work (i.e. it should be faster) but could cause problems
  548. with other implementations that require strict checking.
  549. Default: 0
  550. IP Variables:
  551. ip_local_port_range - 2 INTEGERS
  552. Defines the local port range that is used by TCP and UDP to
  553. choose the local port. The first number is the first, the
  554. second the last local port number. The default values are
  555. 32768 and 61000 respectively.
  556. ip_local_reserved_ports - list of comma separated ranges
  557. Specify the ports which are reserved for known third-party
  558. applications. These ports will not be used by automatic port
  559. assignments (e.g. when calling connect() or bind() with port
  560. number 0). Explicit port allocation behavior is unchanged.
  561. The format used for both input and output is a comma separated
  562. list of ranges (e.g. "1,2-4,10-10" for ports 1, 2, 3, 4 and
  563. 10). Writing to the file will clear all previously reserved
  564. ports and update the current list with the one given in the
  565. input.
  566. Note that ip_local_port_range and ip_local_reserved_ports
  567. settings are independent and both are considered by the kernel
  568. when determining which ports are available for automatic port
  569. assignments.
  570. You can reserve ports which are not in the current
  571. ip_local_port_range, e.g.:
  572. $ cat /proc/sys/net/ipv4/ip_local_port_range
  573. 32000 61000
  574. $ cat /proc/sys/net/ipv4/ip_local_reserved_ports
  575. 8080,9148
  576. although this is redundant. However such a setting is useful
  577. if later the port range is changed to a value that will
  578. include the reserved ports.
  579. Default: Empty
  580. ip_nonlocal_bind - BOOLEAN
  581. If set, allows processes to bind() to non-local IP addresses,
  582. which can be quite useful - but may break some applications.
  583. Default: 0
  584. ip_dynaddr - BOOLEAN
  585. If set non-zero, enables support for dynamic addresses.
  586. If set to a non-zero value larger than 1, a kernel log
  587. message will be printed when dynamic address rewriting
  588. occurs.
  589. Default: 0
  590. icmp_echo_ignore_all - BOOLEAN
  591. If set non-zero, then the kernel will ignore all ICMP ECHO
  592. requests sent to it.
  593. Default: 0
  594. icmp_echo_ignore_broadcasts - BOOLEAN
  595. If set non-zero, then the kernel will ignore all ICMP ECHO and
  596. TIMESTAMP requests sent to it via broadcast/multicast.
  597. Default: 1
  598. icmp_ratelimit - INTEGER
  599. Limit the maximal rates for sending ICMP packets whose type matches
  600. icmp_ratemask (see below) to specific targets.
  601. 0 to disable any limiting,
  602. otherwise the minimal space between responses in milliseconds.
  603. Default: 1000
  604. icmp_ratemask - INTEGER
  605. Mask made of ICMP types for which rates are being limited.
  606. Significant bits: IHGFEDCBA9876543210
  607. Default mask: 0000001100000011000 (6168)
  608. Bit definitions (see include/linux/icmp.h):
  609. 0 Echo Reply
  610. 3 Destination Unreachable *
  611. 4 Source Quench *
  612. 5 Redirect
  613. 8 Echo Request
  614. B Time Exceeded *
  615. C Parameter Problem *
  616. D Timestamp Request
  617. E Timestamp Reply
  618. F Info Request
  619. G Info Reply
  620. H Address Mask Request
  621. I Address Mask Reply
  622. * These are rate limited by default (see default mask above)
  623. icmp_ignore_bogus_error_responses - BOOLEAN
  624. Some routers violate RFC1122 by sending bogus responses to broadcast
  625. frames. Such violations are normally logged via a kernel warning.
  626. If this is set to TRUE, the kernel will not give such warnings, which
  627. will avoid log file clutter.
  628. Default: FALSE
  629. icmp_errors_use_inbound_ifaddr - BOOLEAN
  630. If zero, icmp error messages are sent with the primary address of
  631. the exiting interface.
  632. If non-zero, the message will be sent with the primary address of
  633. the interface that received the packet that caused the icmp error.
  634. This is the behaviour network many administrators will expect from
  635. a router. And it can make debugging complicated network layouts
  636. much easier.
  637. Note that if no primary address exists for the interface selected,
  638. then the primary address of the first non-loopback interface that
  639. has one will be used regardless of this setting.
  640. Default: 0
  641. igmp_max_memberships - INTEGER
  642. Change the maximum number of multicast groups we can subscribe to.
  643. Default: 20
  644. Theoretical maximum value is bounded by having to send a membership
  645. report in a single datagram (i.e. the report can't span multiple
  646. datagrams, or risk confusing the switch and leaving groups you don't
  647. intend to).
  648. The number of supported groups 'M' is bounded by the number of group
  649. report entries you can fit into a single datagram of 65535 bytes.
  650. M = 65536-sizeof (ip header)/(sizeof(Group record))
  651. Group records are variable length, with a minimum of 12 bytes.
  652. So net.ipv4.igmp_max_memberships should not be set higher than:
  653. (65536-24) / 12 = 5459
  654. The value 5459 assumes no IP header options, so in practice
  655. this number may be lower.
  656. conf/interface/* changes special settings per interface (where
  657. "interface" is the name of your network interface)
  658. conf/all/* is special, changes the settings for all interfaces
  659. log_martians - BOOLEAN
  660. Log packets with impossible addresses to kernel log.
  661. log_martians for the interface will be enabled if at least one of
  662. conf/{all,interface}/log_martians is set to TRUE,
  663. it will be disabled otherwise
  664. accept_redirects - BOOLEAN
  665. Accept ICMP redirect messages.
  666. accept_redirects for the interface will be enabled if:
  667. - both conf/{all,interface}/accept_redirects are TRUE in the case
  668. forwarding for the interface is enabled
  669. or
  670. - at least one of conf/{all,interface}/accept_redirects is TRUE in the
  671. case forwarding for the interface is disabled
  672. accept_redirects for the interface will be disabled otherwise
  673. default TRUE (host)
  674. FALSE (router)
  675. forwarding - BOOLEAN
  676. Enable IP forwarding on this interface.
  677. mc_forwarding - BOOLEAN
  678. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  679. and a multicast routing daemon is required.
  680. conf/all/mc_forwarding must also be set to TRUE to enable multicast
  681. routing for the interface
  682. medium_id - INTEGER
  683. Integer value used to differentiate the devices by the medium they
  684. are attached to. Two devices can have different id values when
  685. the broadcast packets are received only on one of them.
  686. The default value 0 means that the device is the only interface
  687. to its medium, value of -1 means that medium is not known.
  688. Currently, it is used to change the proxy_arp behavior:
  689. the proxy_arp feature is enabled for packets forwarded between
  690. two devices attached to different media.
  691. proxy_arp - BOOLEAN
  692. Do proxy arp.
  693. proxy_arp for the interface will be enabled if at least one of
  694. conf/{all,interface}/proxy_arp is set to TRUE,
  695. it will be disabled otherwise
  696. proxy_arp_pvlan - BOOLEAN
  697. Private VLAN proxy arp.
  698. Basically allow proxy arp replies back to the same interface
  699. (from which the ARP request/solicitation was received).
  700. This is done to support (ethernet) switch features, like RFC
  701. 3069, where the individual ports are NOT allowed to
  702. communicate with each other, but they are allowed to talk to
  703. the upstream router. As described in RFC 3069, it is possible
  704. to allow these hosts to communicate through the upstream
  705. router by proxy_arp'ing. Don't need to be used together with
  706. proxy_arp.
  707. This technology is known by different names:
  708. In RFC 3069 it is called VLAN Aggregation.
  709. Cisco and Allied Telesyn call it Private VLAN.
  710. Hewlett-Packard call it Source-Port filtering or port-isolation.
  711. Ericsson call it MAC-Forced Forwarding (RFC Draft).
  712. shared_media - BOOLEAN
  713. Send(router) or accept(host) RFC1620 shared media redirects.
  714. Overrides ip_secure_redirects.
  715. shared_media for the interface will be enabled if at least one of
  716. conf/{all,interface}/shared_media is set to TRUE,
  717. it will be disabled otherwise
  718. default TRUE
  719. secure_redirects - BOOLEAN
  720. Accept ICMP redirect messages only for gateways,
  721. listed in default gateway list.
  722. secure_redirects for the interface will be enabled if at least one of
  723. conf/{all,interface}/secure_redirects is set to TRUE,
  724. it will be disabled otherwise
  725. default TRUE
  726. send_redirects - BOOLEAN
  727. Send redirects, if router.
  728. send_redirects for the interface will be enabled if at least one of
  729. conf/{all,interface}/send_redirects is set to TRUE,
  730. it will be disabled otherwise
  731. Default: TRUE
  732. bootp_relay - BOOLEAN
  733. Accept packets with source address 0.b.c.d destined
  734. not to this host as local ones. It is supposed, that
  735. BOOTP relay daemon will catch and forward such packets.
  736. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  737. for the interface
  738. default FALSE
  739. Not Implemented Yet.
  740. accept_source_route - BOOLEAN
  741. Accept packets with SRR option.
  742. conf/all/accept_source_route must also be set to TRUE to accept packets
  743. with SRR option on the interface
  744. default TRUE (router)
  745. FALSE (host)
  746. accept_local - BOOLEAN
  747. Accept packets with local source addresses. In combination
  748. with suitable routing, this can be used to direct packets
  749. between two local interfaces over the wire and have them
  750. accepted properly.
  751. rp_filter must be set to a non-zero value in order for
  752. accept_local to have an effect.
  753. default FALSE
  754. route_localnet - BOOLEAN
  755. Do not consider loopback addresses as martian source or destination
  756. while routing. This enables the use of 127/8 for local routing purposes.
  757. default FALSE
  758. rp_filter - INTEGER
  759. 0 - No source validation.
  760. 1 - Strict mode as defined in RFC3704 Strict Reverse Path
  761. Each incoming packet is tested against the FIB and if the interface
  762. is not the best reverse path the packet check will fail.
  763. By default failed packets are discarded.
  764. 2 - Loose mode as defined in RFC3704 Loose Reverse Path
  765. Each incoming packet's source address is also tested against the FIB
  766. and if the source address is not reachable via any interface
  767. the packet check will fail.
  768. Current recommended practice in RFC3704 is to enable strict mode
  769. to prevent IP spoofing from DDos attacks. If using asymmetric routing
  770. or other complicated routing, then loose mode is recommended.
  771. The max value from conf/{all,interface}/rp_filter is used
  772. when doing source validation on the {interface}.
  773. Default value is 0. Note that some distributions enable it
  774. in startup scripts.
  775. arp_filter - BOOLEAN
  776. 1 - Allows you to have multiple network interfaces on the same
  777. subnet, and have the ARPs for each interface be answered
  778. based on whether or not the kernel would route a packet from
  779. the ARP'd IP out that interface (therefore you must use source
  780. based routing for this to work). In other words it allows control
  781. of which cards (usually 1) will respond to an arp request.
  782. 0 - (default) The kernel can respond to arp requests with addresses
  783. from other interfaces. This may seem wrong but it usually makes
  784. sense, because it increases the chance of successful communication.
  785. IP addresses are owned by the complete host on Linux, not by
  786. particular interfaces. Only for more complex setups like load-
  787. balancing, does this behaviour cause problems.
  788. arp_filter for the interface will be enabled if at least one of
  789. conf/{all,interface}/arp_filter is set to TRUE,
  790. it will be disabled otherwise
  791. arp_announce - INTEGER
  792. Define different restriction levels for announcing the local
  793. source IP address from IP packets in ARP requests sent on
  794. interface:
  795. 0 - (default) Use any local address, configured on any interface
  796. 1 - Try to avoid local addresses that are not in the target's
  797. subnet for this interface. This mode is useful when target
  798. hosts reachable via this interface require the source IP
  799. address in ARP requests to be part of their logical network
  800. configured on the receiving interface. When we generate the
  801. request we will check all our subnets that include the
  802. target IP and will preserve the source address if it is from
  803. such subnet. If there is no such subnet we select source
  804. address according to the rules for level 2.
  805. 2 - Always use the best local address for this target.
  806. In this mode we ignore the source address in the IP packet
  807. and try to select local address that we prefer for talks with
  808. the target host. Such local address is selected by looking
  809. for primary IP addresses on all our subnets on the outgoing
  810. interface that include the target IP address. If no suitable
  811. local address is found we select the first local address
  812. we have on the outgoing interface or on all other interfaces,
  813. with the hope we will receive reply for our request and
  814. even sometimes no matter the source IP address we announce.
  815. The max value from conf/{all,interface}/arp_announce is used.
  816. Increasing the restriction level gives more chance for
  817. receiving answer from the resolved target while decreasing
  818. the level announces more valid sender's information.
  819. arp_ignore - INTEGER
  820. Define different modes for sending replies in response to
  821. received ARP requests that resolve local target IP addresses:
  822. 0 - (default): reply for any local target IP address, configured
  823. on any interface
  824. 1 - reply only if the target IP address is local address
  825. configured on the incoming interface
  826. 2 - reply only if the target IP address is local address
  827. configured on the incoming interface and both with the
  828. sender's IP address are part from same subnet on this interface
  829. 3 - do not reply for local addresses configured with scope host,
  830. only resolutions for global and link addresses are replied
  831. 4-7 - reserved
  832. 8 - do not reply for all local addresses
  833. The max value from conf/{all,interface}/arp_ignore is used
  834. when ARP request is received on the {interface}
  835. arp_notify - BOOLEAN
  836. Define mode for notification of address and device changes.
  837. 0 - (default): do nothing
  838. 1 - Generate gratuitous arp requests when device is brought up
  839. or hardware address changes.
  840. arp_accept - BOOLEAN
  841. Define behavior for gratuitous ARP frames who's IP is not
  842. already present in the ARP table:
  843. 0 - don't create new entries in the ARP table
  844. 1 - create new entries in the ARP table
  845. Both replies and requests type gratuitous arp will trigger the
  846. ARP table to be updated, if this setting is on.
  847. If the ARP table already contains the IP address of the
  848. gratuitous arp frame, the arp table will be updated regardless
  849. if this setting is on or off.
  850. app_solicit - INTEGER
  851. The maximum number of probes to send to the user space ARP daemon
  852. via netlink before dropping back to multicast probes (see
  853. mcast_solicit). Defaults to 0.
  854. disable_policy - BOOLEAN
  855. Disable IPSEC policy (SPD) for this interface
  856. disable_xfrm - BOOLEAN
  857. Disable IPSEC encryption on this interface, whatever the policy
  858. tag - INTEGER
  859. Allows you to write a number, which can be used as required.
  860. Default value is 0.
  861. Alexey Kuznetsov.
  862. kuznet@ms2.inr.ac.ru
  863. Updated by:
  864. Andi Kleen
  865. ak@muc.de
  866. Nicolas Delon
  867. delon.nicolas@wanadoo.fr
  868. /proc/sys/net/ipv6/* Variables:
  869. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  870. apply to IPv6 [XXX?].
  871. bindv6only - BOOLEAN
  872. Default value for IPV6_V6ONLY socket option,
  873. which restricts use of the IPv6 socket to IPv6 communication
  874. only.
  875. TRUE: disable IPv4-mapped address feature
  876. FALSE: enable IPv4-mapped address feature
  877. Default: FALSE (as specified in RFC3493)
  878. IPv6 Fragmentation:
  879. ip6frag_high_thresh - INTEGER
  880. Maximum memory used to reassemble IPv6 fragments. When
  881. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  882. the fragment handler will toss packets until ip6frag_low_thresh
  883. is reached.
  884. ip6frag_low_thresh - INTEGER
  885. See ip6frag_high_thresh
  886. ip6frag_time - INTEGER
  887. Time in seconds to keep an IPv6 fragment in memory.
  888. ip6frag_secret_interval - INTEGER
  889. Regeneration interval (in seconds) of the hash secret (or lifetime
  890. for the hash secret) for IPv6 fragments.
  891. Default: 600
  892. conf/default/*:
  893. Change the interface-specific default settings.
  894. conf/all/*:
  895. Change all the interface-specific settings.
  896. [XXX: Other special features than forwarding?]
  897. conf/all/forwarding - BOOLEAN
  898. Enable global IPv6 forwarding between all interfaces.
  899. IPv4 and IPv6 work differently here; e.g. netfilter must be used
  900. to control which interfaces may forward packets and which not.
  901. This also sets all interfaces' Host/Router setting
  902. 'forwarding' to the specified value. See below for details.
  903. This referred to as global forwarding.
  904. proxy_ndp - BOOLEAN
  905. Do proxy ndp.
  906. conf/interface/*:
  907. Change special settings per interface.
  908. The functional behaviour for certain settings is different
  909. depending on whether local forwarding is enabled or not.
  910. accept_ra - INTEGER
  911. Accept Router Advertisements; autoconfigure using them.
  912. It also determines whether or not to transmit Router
  913. Solicitations. If and only if the functional setting is to
  914. accept Router Advertisements, Router Solicitations will be
  915. transmitted.
  916. Possible values are:
  917. 0 Do not accept Router Advertisements.
  918. 1 Accept Router Advertisements if forwarding is disabled.
  919. 2 Overrule forwarding behaviour. Accept Router Advertisements
  920. even if forwarding is enabled.
  921. Functional default: enabled if local forwarding is disabled.
  922. disabled if local forwarding is enabled.
  923. accept_ra_defrtr - BOOLEAN
  924. Learn default router in Router Advertisement.
  925. Functional default: enabled if accept_ra is enabled.
  926. disabled if accept_ra is disabled.
  927. accept_ra_pinfo - BOOLEAN
  928. Learn Prefix Information in Router Advertisement.
  929. Functional default: enabled if accept_ra is enabled.
  930. disabled if accept_ra is disabled.
  931. accept_ra_rt_info_max_plen - INTEGER
  932. Maximum prefix length of Route Information in RA.
  933. Route Information w/ prefix larger than or equal to this
  934. variable shall be ignored.
  935. Functional default: 0 if accept_ra_rtr_pref is enabled.
  936. -1 if accept_ra_rtr_pref is disabled.
  937. accept_ra_rtr_pref - BOOLEAN
  938. Accept Router Preference in RA.
  939. Functional default: enabled if accept_ra is enabled.
  940. disabled if accept_ra is disabled.
  941. accept_redirects - BOOLEAN
  942. Accept Redirects.
  943. Functional default: enabled if local forwarding is disabled.
  944. disabled if local forwarding is enabled.
  945. accept_source_route - INTEGER
  946. Accept source routing (routing extension header).
  947. >= 0: Accept only routing header type 2.
  948. < 0: Do not accept routing header.
  949. Default: 0
  950. autoconf - BOOLEAN
  951. Autoconfigure addresses using Prefix Information in Router
  952. Advertisements.
  953. Functional default: enabled if accept_ra_pinfo is enabled.
  954. disabled if accept_ra_pinfo is disabled.
  955. dad_transmits - INTEGER
  956. The amount of Duplicate Address Detection probes to send.
  957. Default: 1
  958. forwarding - INTEGER
  959. Configure interface-specific Host/Router behaviour.
  960. Note: It is recommended to have the same setting on all
  961. interfaces; mixed router/host scenarios are rather uncommon.
  962. Possible values are:
  963. 0 Forwarding disabled
  964. 1 Forwarding enabled
  965. FALSE (0):
  966. By default, Host behaviour is assumed. This means:
  967. 1. IsRouter flag is not set in Neighbour Advertisements.
  968. 2. If accept_ra is TRUE (default), transmit Router
  969. Solicitations.
  970. 3. If accept_ra is TRUE (default), accept Router
  971. Advertisements (and do autoconfiguration).
  972. 4. If accept_redirects is TRUE (default), accept Redirects.
  973. TRUE (1):
  974. If local forwarding is enabled, Router behaviour is assumed.
  975. This means exactly the reverse from the above:
  976. 1. IsRouter flag is set in Neighbour Advertisements.
  977. 2. Router Solicitations are not sent unless accept_ra is 2.
  978. 3. Router Advertisements are ignored unless accept_ra is 2.
  979. 4. Redirects are ignored.
  980. Default: 0 (disabled) if global forwarding is disabled (default),
  981. otherwise 1 (enabled).
  982. hop_limit - INTEGER
  983. Default Hop Limit to set.
  984. Default: 64
  985. mtu - INTEGER
  986. Default Maximum Transfer Unit
  987. Default: 1280 (IPv6 required minimum)
  988. router_probe_interval - INTEGER
  989. Minimum interval (in seconds) between Router Probing described
  990. in RFC4191.
  991. Default: 60
  992. router_solicitation_delay - INTEGER
  993. Number of seconds to wait after interface is brought up
  994. before sending Router Solicitations.
  995. Default: 1
  996. router_solicitation_interval - INTEGER
  997. Number of seconds to wait between Router Solicitations.
  998. Default: 4
  999. router_solicitations - INTEGER
  1000. Number of Router Solicitations to send until assuming no
  1001. routers are present.
  1002. Default: 3
  1003. use_tempaddr - INTEGER
  1004. Preference for Privacy Extensions (RFC3041).
  1005. <= 0 : disable Privacy Extensions
  1006. == 1 : enable Privacy Extensions, but prefer public
  1007. addresses over temporary addresses.
  1008. > 1 : enable Privacy Extensions and prefer temporary
  1009. addresses over public addresses.
  1010. Default: 0 (for most devices)
  1011. -1 (for point-to-point devices and loopback devices)
  1012. temp_valid_lft - INTEGER
  1013. valid lifetime (in seconds) for temporary addresses.
  1014. Default: 604800 (7 days)
  1015. temp_prefered_lft - INTEGER
  1016. Preferred lifetime (in seconds) for temporary addresses.
  1017. Default: 86400 (1 day)
  1018. max_desync_factor - INTEGER
  1019. Maximum value for DESYNC_FACTOR, which is a random value
  1020. that ensures that clients don't synchronize with each
  1021. other and generate new addresses at exactly the same time.
  1022. value is in seconds.
  1023. Default: 600
  1024. regen_max_retry - INTEGER
  1025. Number of attempts before give up attempting to generate
  1026. valid temporary addresses.
  1027. Default: 5
  1028. max_addresses - INTEGER
  1029. Maximum number of autoconfigured addresses per interface. Setting
  1030. to zero disables the limitation. It is not recommended to set this
  1031. value too large (or to zero) because it would be an easy way to
  1032. crash the kernel by allowing too many addresses to be created.
  1033. Default: 16
  1034. disable_ipv6 - BOOLEAN
  1035. Disable IPv6 operation. If accept_dad is set to 2, this value
  1036. will be dynamically set to TRUE if DAD fails for the link-local
  1037. address.
  1038. Default: FALSE (enable IPv6 operation)
  1039. When this value is changed from 1 to 0 (IPv6 is being enabled),
  1040. it will dynamically create a link-local address on the given
  1041. interface and start Duplicate Address Detection, if necessary.
  1042. When this value is changed from 0 to 1 (IPv6 is being disabled),
  1043. it will dynamically delete all address on the given interface.
  1044. accept_dad - INTEGER
  1045. Whether to accept DAD (Duplicate Address Detection).
  1046. 0: Disable DAD
  1047. 1: Enable DAD (default)
  1048. 2: Enable DAD, and disable IPv6 operation if MAC-based duplicate
  1049. link-local address has been found.
  1050. force_tllao - BOOLEAN
  1051. Enable sending the target link-layer address option even when
  1052. responding to a unicast neighbor solicitation.
  1053. Default: FALSE
  1054. Quoting from RFC 2461, section 4.4, Target link-layer address:
  1055. "The option MUST be included for multicast solicitations in order to
  1056. avoid infinite Neighbor Solicitation "recursion" when the peer node
  1057. does not have a cache entry to return a Neighbor Advertisements
  1058. message. When responding to unicast solicitations, the option can be
  1059. omitted since the sender of the solicitation has the correct link-
  1060. layer address; otherwise it would not have be able to send the unicast
  1061. solicitation in the first place. However, including the link-layer
  1062. address in this case adds little overhead and eliminates a potential
  1063. race condition where the sender deletes the cached link-layer address
  1064. prior to receiving a response to a previous solicitation."
  1065. icmp/*:
  1066. ratelimit - INTEGER
  1067. Limit the maximal rates for sending ICMPv6 packets.
  1068. 0 to disable any limiting,
  1069. otherwise the minimal space between responses in milliseconds.
  1070. Default: 1000
  1071. IPv6 Update by:
  1072. Pekka Savola <pekkas@netcore.fi>
  1073. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  1074. /proc/sys/net/bridge/* Variables:
  1075. bridge-nf-call-arptables - BOOLEAN
  1076. 1 : pass bridged ARP traffic to arptables' FORWARD chain.
  1077. 0 : disable this.
  1078. Default: 1
  1079. bridge-nf-call-iptables - BOOLEAN
  1080. 1 : pass bridged IPv4 traffic to iptables' chains.
  1081. 0 : disable this.
  1082. Default: 1
  1083. bridge-nf-call-ip6tables - BOOLEAN
  1084. 1 : pass bridged IPv6 traffic to ip6tables' chains.
  1085. 0 : disable this.
  1086. Default: 1
  1087. bridge-nf-filter-vlan-tagged - BOOLEAN
  1088. 1 : pass bridged vlan-tagged ARP/IP/IPv6 traffic to {arp,ip,ip6}tables.
  1089. 0 : disable this.
  1090. Default: 0
  1091. bridge-nf-filter-pppoe-tagged - BOOLEAN
  1092. 1 : pass bridged pppoe-tagged IP/IPv6 traffic to {ip,ip6}tables.
  1093. 0 : disable this.
  1094. Default: 0
  1095. bridge-nf-pass-vlan-input-dev - BOOLEAN
  1096. 1: if bridge-nf-filter-vlan-tagged is enabled, try to find a vlan
  1097. interface on the bridge and set the netfilter input device to the vlan.
  1098. This allows use of e.g. "iptables -i br0.1" and makes the REDIRECT
  1099. target work with vlan-on-top-of-bridge interfaces. When no matching
  1100. vlan interface is found, or this switch is off, the input device is
  1101. set to the bridge interface.
  1102. 0: disable bridge netfilter vlan interface lookup.
  1103. Default: 0
  1104. proc/sys/net/sctp/* Variables:
  1105. addip_enable - BOOLEAN
  1106. Enable or disable extension of Dynamic Address Reconfiguration
  1107. (ADD-IP) functionality specified in RFC5061. This extension provides
  1108. the ability to dynamically add and remove new addresses for the SCTP
  1109. associations.
  1110. 1: Enable extension.
  1111. 0: Disable extension.
  1112. Default: 0
  1113. addip_noauth_enable - BOOLEAN
  1114. Dynamic Address Reconfiguration (ADD-IP) requires the use of
  1115. authentication to protect the operations of adding or removing new
  1116. addresses. This requirement is mandated so that unauthorized hosts
  1117. would not be able to hijack associations. However, older
  1118. implementations may not have implemented this requirement while
  1119. allowing the ADD-IP extension. For reasons of interoperability,
  1120. we provide this variable to control the enforcement of the
  1121. authentication requirement.
  1122. 1: Allow ADD-IP extension to be used without authentication. This
  1123. should only be set in a closed environment for interoperability
  1124. with older implementations.
  1125. 0: Enforce the authentication requirement
  1126. Default: 0
  1127. auth_enable - BOOLEAN
  1128. Enable or disable Authenticated Chunks extension. This extension
  1129. provides the ability to send and receive authenticated chunks and is
  1130. required for secure operation of Dynamic Address Reconfiguration
  1131. (ADD-IP) extension.
  1132. 1: Enable this extension.
  1133. 0: Disable this extension.
  1134. Default: 0
  1135. prsctp_enable - BOOLEAN
  1136. Enable or disable the Partial Reliability extension (RFC3758) which
  1137. is used to notify peers that a given DATA should no longer be expected.
  1138. 1: Enable extension
  1139. 0: Disable
  1140. Default: 1
  1141. max_burst - INTEGER
  1142. The limit of the number of new packets that can be initially sent. It
  1143. controls how bursty the generated traffic can be.
  1144. Default: 4
  1145. association_max_retrans - INTEGER
  1146. Set the maximum number for retransmissions that an association can
  1147. attempt deciding that the remote end is unreachable. If this value
  1148. is exceeded, the association is terminated.
  1149. Default: 10
  1150. max_init_retransmits - INTEGER
  1151. The maximum number of retransmissions of INIT and COOKIE-ECHO chunks
  1152. that an association will attempt before declaring the destination
  1153. unreachable and terminating.
  1154. Default: 8
  1155. path_max_retrans - INTEGER
  1156. The maximum number of retransmissions that will be attempted on a given
  1157. path. Once this threshold is exceeded, the path is considered
  1158. unreachable, and new traffic will use a different path when the
  1159. association is multihomed.
  1160. Default: 5
  1161. pf_retrans - INTEGER
  1162. The number of retransmissions that will be attempted on a given path
  1163. before traffic is redirected to an alternate transport (should one
  1164. exist). Note this is distinct from path_max_retrans, as a path that
  1165. passes the pf_retrans threshold can still be used. Its only
  1166. deprioritized when a transmission path is selected by the stack. This
  1167. setting is primarily used to enable fast failover mechanisms without
  1168. having to reduce path_max_retrans to a very low value. See:
  1169. http://www.ietf.org/id/draft-nishida-tsvwg-sctp-failover-05.txt
  1170. for details. Note also that a value of pf_retrans > path_max_retrans
  1171. disables this feature
  1172. Default: 0
  1173. rto_initial - INTEGER
  1174. The initial round trip timeout value in milliseconds that will be used
  1175. in calculating round trip times. This is the initial time interval
  1176. for retransmissions.
  1177. Default: 3000
  1178. rto_max - INTEGER
  1179. The maximum value (in milliseconds) of the round trip timeout. This
  1180. is the largest time interval that can elapse between retransmissions.
  1181. Default: 60000
  1182. rto_min - INTEGER
  1183. The minimum value (in milliseconds) of the round trip timeout. This
  1184. is the smallest time interval the can elapse between retransmissions.
  1185. Default: 1000
  1186. hb_interval - INTEGER
  1187. The interval (in milliseconds) between HEARTBEAT chunks. These chunks
  1188. are sent at the specified interval on idle paths to probe the state of
  1189. a given path between 2 associations.
  1190. Default: 30000
  1191. sack_timeout - INTEGER
  1192. The amount of time (in milliseconds) that the implementation will wait
  1193. to send a SACK.
  1194. Default: 200
  1195. valid_cookie_life - INTEGER
  1196. The default lifetime of the SCTP cookie (in milliseconds). The cookie
  1197. is used during association establishment.
  1198. Default: 60000
  1199. cookie_preserve_enable - BOOLEAN
  1200. Enable or disable the ability to extend the lifetime of the SCTP cookie
  1201. that is used during the establishment phase of SCTP association
  1202. 1: Enable cookie lifetime extension.
  1203. 0: Disable
  1204. Default: 1
  1205. rcvbuf_policy - INTEGER
  1206. Determines if the receive buffer is attributed to the socket or to
  1207. association. SCTP supports the capability to create multiple
  1208. associations on a single socket. When using this capability, it is
  1209. possible that a single stalled association that's buffering a lot
  1210. of data may block other associations from delivering their data by
  1211. consuming all of the receive buffer space. To work around this,
  1212. the rcvbuf_policy could be set to attribute the receiver buffer space
  1213. to each association instead of the socket. This prevents the described
  1214. blocking.
  1215. 1: rcvbuf space is per association
  1216. 0: recbuf space is per socket
  1217. Default: 0
  1218. sndbuf_policy - INTEGER
  1219. Similar to rcvbuf_policy above, this applies to send buffer space.
  1220. 1: Send buffer is tracked per association
  1221. 0: Send buffer is tracked per socket.
  1222. Default: 0
  1223. sctp_mem - vector of 3 INTEGERs: min, pressure, max
  1224. Number of pages allowed for queueing by all SCTP sockets.
  1225. min: Below this number of pages SCTP is not bothered about its
  1226. memory appetite. When amount of memory allocated by SCTP exceeds
  1227. this number, SCTP starts to moderate memory usage.
  1228. pressure: This value was introduced to follow format of tcp_mem.
  1229. max: Number of pages allowed for queueing by all SCTP sockets.
  1230. Default is calculated at boot time from amount of available memory.
  1231. sctp_rmem - vector of 3 INTEGERs: min, default, max
  1232. Only the first value ("min") is used, "default" and "max" are
  1233. ignored.
  1234. min: Minimal size of receive buffer used by SCTP socket.
  1235. It is guaranteed to each SCTP socket (but not association) even
  1236. under moderate memory pressure.
  1237. Default: 1 page
  1238. sctp_wmem - vector of 3 INTEGERs: min, default, max
  1239. Currently this tunable has no effect.
  1240. addr_scope_policy - INTEGER
  1241. Control IPv4 address scoping - draft-stewart-tsvwg-sctp-ipv4-00
  1242. 0 - Disable IPv4 address scoping
  1243. 1 - Enable IPv4 address scoping
  1244. 2 - Follow draft but allow IPv4 private addresses
  1245. 3 - Follow draft but allow IPv4 link local addresses
  1246. Default: 1
  1247. /proc/sys/net/core/*
  1248. Please see: Documentation/sysctl/net.txt for descriptions of these entries.
  1249. /proc/sys/net/unix/*
  1250. max_dgram_qlen - INTEGER
  1251. The maximum length of dgram socket receive queue
  1252. Default: 10
  1253. UNDOCUMENTED:
  1254. /proc/sys/net/irda/*
  1255. fast_poll_increase FIXME
  1256. warn_noreply_time FIXME
  1257. discovery_slots FIXME
  1258. slot_timeout FIXME
  1259. max_baud_rate FIXME
  1260. discovery_timeout FIXME
  1261. lap_keepalive_time FIXME
  1262. max_noreply_time FIXME
  1263. max_tx_data_size FIXME
  1264. max_tx_window FIXME
  1265. min_tx_turn_time FIXME