ip-sysctl.txt 54 KB

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