ip-sysctl.txt 72 KB

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