ip-sysctl.txt 73 KB

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