ip-sysctl.txt 58 KB

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