ip-sysctl.txt 58 KB

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