ip-sysctl.txt 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  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 64
  11. ip_no_pmtu_disc - BOOLEAN
  12. Disable Path MTU Discovery.
  13. default FALSE
  14. min_pmtu - INTEGER
  15. default 562 - minimum discovered Path MTU
  16. mtu_expires - INTEGER
  17. Time, in seconds, that cached PMTU information is kept.
  18. min_adv_mss - INTEGER
  19. The advertised MSS depends on the first hop route MTU, but will
  20. never be lower than this setting.
  21. IP Fragmentation:
  22. ipfrag_high_thresh - INTEGER
  23. Maximum memory used to reassemble IP fragments. When
  24. ipfrag_high_thresh bytes of memory is allocated for this purpose,
  25. the fragment handler will toss packets until ipfrag_low_thresh
  26. is reached.
  27. ipfrag_low_thresh - INTEGER
  28. See ipfrag_high_thresh
  29. ipfrag_time - INTEGER
  30. Time in seconds to keep an IP fragment in memory.
  31. ipfrag_secret_interval - INTEGER
  32. Regeneration interval (in seconds) of the hash secret (or lifetime
  33. for the hash secret) for IP fragments.
  34. Default: 600
  35. ipfrag_max_dist - INTEGER
  36. ipfrag_max_dist is a non-negative integer value which defines the
  37. maximum "disorder" which is allowed among fragments which share a
  38. common IP source address. Note that reordering of packets is
  39. not unusual, but if a large number of fragments arrive from a source
  40. IP address while a particular fragment queue remains incomplete, it
  41. probably indicates that one or more fragments belonging to that queue
  42. have been lost. When ipfrag_max_dist is positive, an additional check
  43. is done on fragments before they are added to a reassembly queue - if
  44. ipfrag_max_dist (or more) fragments have arrived from a particular IP
  45. address between additions to any IP fragment queue using that source
  46. address, it's presumed that one or more fragments in the queue are
  47. lost. The existing fragment queue will be dropped, and a new one
  48. started. An ipfrag_max_dist value of zero disables this check.
  49. Using a very small value, e.g. 1 or 2, for ipfrag_max_dist can
  50. result in unnecessarily dropping fragment queues when normal
  51. reordering of packets occurs, which could lead to poor application
  52. performance. Using a very large value, e.g. 50000, increases the
  53. likelihood of incorrectly reassembling IP fragments that originate
  54. from different IP datagrams, which could result in data corruption.
  55. Default: 64
  56. INET peer storage:
  57. inet_peer_threshold - INTEGER
  58. The approximate size of the storage. Starting from this threshold
  59. entries will be thrown aggressively. This threshold also determines
  60. entries' time-to-live and time intervals between garbage collection
  61. passes. More entries, less time-to-live, less GC interval.
  62. inet_peer_minttl - INTEGER
  63. Minimum time-to-live of entries. Should be enough to cover fragment
  64. time-to-live on the reassembling side. This minimum time-to-live is
  65. guaranteed if the pool size is less than inet_peer_threshold.
  66. Measured in jiffies(1).
  67. inet_peer_maxttl - INTEGER
  68. Maximum time-to-live of entries. Unused entries will expire after
  69. this period of time if there is no memory pressure on the pool (i.e.
  70. when the number of entries in the pool is very small).
  71. Measured in jiffies(1).
  72. inet_peer_gc_mintime - INTEGER
  73. Minimum interval between garbage collection passes. This interval is
  74. in effect under high memory pressure on the pool.
  75. Measured in jiffies(1).
  76. inet_peer_gc_maxtime - INTEGER
  77. Minimum interval between garbage collection passes. This interval is
  78. in effect under low (or absent) memory pressure on the pool.
  79. Measured in jiffies(1).
  80. TCP variables:
  81. somaxconn - INTEGER
  82. Limit of socket listen() backlog, known in userspace as SOMAXCONN.
  83. Defaults to 128. See also tcp_max_syn_backlog for additional tuning
  84. for TCP sockets.
  85. tcp_abc - INTEGER
  86. Controls Appropriate Byte Count (ABC) defined in RFC3465.
  87. ABC is a way of increasing congestion window (cwnd) more slowly
  88. in response to partial acknowledgments.
  89. Possible values are:
  90. 0 increase cwnd once per acknowledgment (no ABC)
  91. 1 increase cwnd once per acknowledgment of full sized segment
  92. 2 allow increase cwnd by two if acknowledgment is
  93. of two segments to compensate for delayed acknowledgments.
  94. Default: 0 (off)
  95. tcp_abort_on_overflow - BOOLEAN
  96. If listening service is too slow to accept new connections,
  97. reset them. Default state is FALSE. It means that if overflow
  98. occurred due to a burst, connection will recover. Enable this
  99. option _only_ if you are really sure that listening daemon
  100. cannot be tuned to accept connections faster. Enabling this
  101. option can harm clients of your server.
  102. tcp_adv_win_scale - INTEGER
  103. Count buffering overhead as bytes/2^tcp_adv_win_scale
  104. (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
  105. if it is <= 0.
  106. Default: 2
  107. tcp_allowed_congestion_control - STRING
  108. Show/set the congestion control choices available to non-privileged
  109. processes. The list is a subset of those listed in
  110. tcp_available_congestion_control.
  111. Default is "reno" and the default setting (tcp_congestion_control).
  112. tcp_app_win - INTEGER
  113. Reserve max(window/2^tcp_app_win, mss) of window for application
  114. buffer. Value 0 is special, it means that nothing is reserved.
  115. Default: 31
  116. tcp_available_congestion_control - STRING
  117. Shows the available congestion control choices that are registered.
  118. More congestion control algorithms may be available as modules,
  119. but not loaded.
  120. tcp_base_mss - INTEGER
  121. The initial value of search_low to be used by Packetization Layer
  122. Path MTU Discovery (MTU probing). If MTU probing is enabled,
  123. this is the inital MSS used by the connection.
  124. tcp_congestion_control - STRING
  125. Set the congestion control algorithm to be used for new
  126. connections. The algorithm "reno" is always available, but
  127. additional choices may be available based on kernel configuration.
  128. Default is set as part of kernel configuration.
  129. tcp_dsack - BOOLEAN
  130. Allows TCP to send "duplicate" SACKs.
  131. tcp_ecn - BOOLEAN
  132. Enable Explicit Congestion Notification in TCP.
  133. tcp_fack - BOOLEAN
  134. Enable FACK congestion avoidance and fast retransmission.
  135. The value is not used, if tcp_sack is not enabled.
  136. tcp_fin_timeout - INTEGER
  137. Time to hold socket in state FIN-WAIT-2, if it was closed
  138. by our side. Peer can be broken and never close its side,
  139. or even died unexpectedly. Default value is 60sec.
  140. Usual value used in 2.2 was 180 seconds, you may restore
  141. it, but remember that if your machine is even underloaded WEB server,
  142. you risk to overflow memory with kilotons of dead sockets,
  143. FIN-WAIT-2 sockets are less dangerous than FIN-WAIT-1,
  144. because they eat maximum 1.5K of memory, but they tend
  145. to live longer. Cf. tcp_max_orphans.
  146. tcp_frto - INTEGER
  147. Enables F-RTO, an enhanced recovery algorithm for TCP retransmission
  148. timeouts. It is particularly beneficial in wireless environments
  149. where packet loss is typically due to random radio interference
  150. rather than intermediate router congestion. If set to 1, basic
  151. version is enabled. 2 enables SACK enhanced F-RTO, which is
  152. EXPERIMENTAL. The basic version can be used also when SACK is
  153. enabled for a flow through tcp_sack sysctl.
  154. tcp_frto_response - INTEGER
  155. When F-RTO has detected that a TCP retransmission timeout was
  156. spurious (i.e, the timeout would have been avoided had TCP set a
  157. longer retransmission timeout), TCP has several options what to do
  158. next. Possible values are:
  159. 0 Rate halving based; a smooth and conservative response,
  160. results in halved cwnd and ssthresh after one RTT
  161. 1 Very conservative response; not recommended because even
  162. though being valid, it interacts poorly with the rest of
  163. Linux TCP, halves cwnd and ssthresh immediately
  164. 2 Aggressive response; undoes congestion control measures
  165. that are now known to be unnecessary (ignoring the
  166. possibility of a lost retransmission that would require
  167. TCP to be more cautious), cwnd and ssthresh are restored
  168. to the values prior timeout
  169. Default: 0 (rate halving based)
  170. tcp_keepalive_time - INTEGER
  171. How often TCP sends out keepalive messages when keepalive is enabled.
  172. Default: 2hours.
  173. tcp_keepalive_probes - INTEGER
  174. How many keepalive probes TCP sends out, until it decides that the
  175. connection is broken. Default value: 9.
  176. tcp_keepalive_intvl - INTEGER
  177. How frequently the probes are send out. Multiplied by
  178. tcp_keepalive_probes it is time to kill not responding connection,
  179. after probes started. Default value: 75sec i.e. connection
  180. will be aborted after ~11 minutes of retries.
  181. tcp_low_latency - BOOLEAN
  182. If set, the TCP stack makes decisions that prefer lower
  183. latency as opposed to higher throughput. By default, this
  184. option is not set meaning that higher throughput is preferred.
  185. An example of an application where this default should be
  186. changed would be a Beowulf compute cluster.
  187. Default: 0
  188. tcp_max_orphans - INTEGER
  189. Maximal number of TCP sockets not attached to any user file handle,
  190. held by system. If this number is exceeded orphaned connections are
  191. reset immediately and warning is printed. This limit exists
  192. only to prevent simple DoS attacks, you _must_ not rely on this
  193. or lower the limit artificially, but rather increase it
  194. (probably, after increasing installed memory),
  195. if network conditions require more than default value,
  196. and tune network services to linger and kill such states
  197. more aggressively. Let me to remind again: each orphan eats
  198. up to ~64K of unswappable memory.
  199. tcp_max_syn_backlog - INTEGER
  200. Maximal number of remembered connection requests, which are
  201. still did not receive an acknowledgment from connecting client.
  202. Default value is 1024 for systems with more than 128Mb of memory,
  203. and 128 for low memory machines. If server suffers of overload,
  204. try to increase this number.
  205. tcp_max_tw_buckets - INTEGER
  206. Maximal number of timewait sockets held by system simultaneously.
  207. If this number is exceeded time-wait socket is immediately destroyed
  208. and warning is printed. This limit exists only to prevent
  209. simple DoS attacks, you _must_ not lower the limit artificially,
  210. but rather increase it (probably, after increasing installed memory),
  211. if network conditions require more than default value.
  212. tcp_mem - vector of 3 INTEGERs: min, pressure, max
  213. min: below this number of pages TCP is not bothered about its
  214. memory appetite.
  215. pressure: when amount of memory allocated by TCP exceeds this number
  216. of pages, TCP moderates its memory consumption and enters memory
  217. pressure mode, which is exited when memory consumption falls
  218. under "min".
  219. max: number of pages allowed for queueing by all TCP sockets.
  220. Defaults are calculated at boot time from amount of available
  221. memory.
  222. tcp_moderate_rcvbuf - BOOLEAN
  223. If set, TCP performs receive buffer autotuning, attempting to
  224. automatically size the buffer (no greater than tcp_rmem[2]) to
  225. match the size required by the path for full throughput. Enabled by
  226. default.
  227. tcp_mtu_probing - INTEGER
  228. Controls TCP Packetization-Layer Path MTU Discovery. Takes three
  229. values:
  230. 0 - Disabled
  231. 1 - Disabled by default, enabled when an ICMP black hole detected
  232. 2 - Always enabled, use initial MSS of tcp_base_mss.
  233. tcp_no_metrics_save - BOOLEAN
  234. By default, TCP saves various connection metrics in the route cache
  235. when the connection closes, so that connections established in the
  236. near future can use these to set initial conditions. Usually, this
  237. increases overall performance, but may sometimes cause performance
  238. degredation. If set, TCP will not cache metrics on closing
  239. connections.
  240. tcp_orphan_retries - INTEGER
  241. How may times to retry before killing TCP connection, closed
  242. by our side. Default value 7 corresponds to ~50sec-16min
  243. depending on RTO. If you machine is loaded WEB server,
  244. you should think about lowering this value, such sockets
  245. may consume significant resources. Cf. tcp_max_orphans.
  246. tcp_reordering - INTEGER
  247. Maximal reordering of packets in a TCP stream.
  248. Default: 3
  249. tcp_retrans_collapse - BOOLEAN
  250. Bug-to-bug compatibility with some broken printers.
  251. On retransmit try to send bigger packets to work around bugs in
  252. certain TCP stacks.
  253. tcp_retries1 - INTEGER
  254. How many times to retry before deciding that something is wrong
  255. and it is necessary to report this suspicion to network layer.
  256. Minimal RFC value is 3, it is default, which corresponds
  257. to ~3sec-8min depending on RTO.
  258. tcp_retries2 - INTEGER
  259. How may times to retry before killing alive TCP connection.
  260. RFC1122 says that the limit should be longer than 100 sec.
  261. It is too small number. Default value 15 corresponds to ~13-30min
  262. depending on RTO.
  263. tcp_rfc1337 - BOOLEAN
  264. If set, the TCP stack behaves conforming to RFC1337. If unset,
  265. we are not conforming to RFC, but prevent TCP TIME_WAIT
  266. assassination.
  267. Default: 0
  268. tcp_rmem - vector of 3 INTEGERs: min, default, max
  269. min: Minimal size of receive buffer used by TCP sockets.
  270. It is guaranteed to each TCP socket, even under moderate memory
  271. pressure.
  272. Default: 8K
  273. default: default size of receive buffer used by TCP sockets.
  274. This value overrides net.core.rmem_default used by other protocols.
  275. Default: 87380 bytes. This value results in window of 65535 with
  276. default setting of tcp_adv_win_scale and tcp_app_win:0 and a bit
  277. less for default tcp_app_win. See below about these variables.
  278. max: maximal size of receive buffer allowed for automatically
  279. selected receiver buffers for TCP socket. This value does not override
  280. net.core.rmem_max, "static" selection via SO_RCVBUF does not use this.
  281. Default: 87380*2 bytes.
  282. tcp_sack - BOOLEAN
  283. Enable select acknowledgments (SACKS).
  284. tcp_slow_start_after_idle - BOOLEAN
  285. If set, provide RFC2861 behavior and time out the congestion
  286. window after an idle period. An idle period is defined at
  287. the current RTO. If unset, the congestion window will not
  288. be timed out after an idle period.
  289. Default: 1
  290. tcp_stdurg - BOOLEAN
  291. Use the Host requirements interpretation of the TCP urg pointer field.
  292. Most hosts use the older BSD interpretation, so if you turn this on
  293. Linux might not communicate correctly with them.
  294. Default: FALSE
  295. tcp_synack_retries - INTEGER
  296. Number of times SYNACKs for a passive TCP connection attempt will
  297. be retransmitted. Should not be higher than 255. Default value
  298. is 5, which corresponds to ~180seconds.
  299. tcp_syncookies - BOOLEAN
  300. Only valid when the kernel was compiled with CONFIG_SYNCOOKIES
  301. Send out syncookies when the syn backlog queue of a socket
  302. overflows. This is to prevent against the common 'syn flood attack'
  303. Default: FALSE
  304. Note, that syncookies is fallback facility.
  305. It MUST NOT be used to help highly loaded servers to stand
  306. against legal connection rate. If you see synflood warnings
  307. in your logs, but investigation shows that they occur
  308. because of overload with legal connections, you should tune
  309. another parameters until this warning disappear.
  310. See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
  311. syncookies seriously violate TCP protocol, do not allow
  312. to use TCP extensions, can result in serious degradation
  313. of some services (f.e. SMTP relaying), visible not by you,
  314. but your clients and relays, contacting you. While you see
  315. synflood warnings in logs not being really flooded, your server
  316. is seriously misconfigured.
  317. tcp_syn_retries - INTEGER
  318. Number of times initial SYNs for an active TCP connection attempt
  319. will be retransmitted. Should not be higher than 255. Default value
  320. is 5, which corresponds to ~180seconds.
  321. tcp_timestamps - BOOLEAN
  322. Enable timestamps as defined in RFC1323.
  323. tcp_tso_win_divisor - INTEGER
  324. This allows control over what percentage of the congestion window
  325. can be consumed by a single TSO frame.
  326. The setting of this parameter is a choice between burstiness and
  327. building larger TSO frames.
  328. Default: 3
  329. tcp_tw_recycle - BOOLEAN
  330. Enable fast recycling TIME-WAIT sockets. Default value is 0.
  331. It should not be changed without advice/request of technical
  332. experts.
  333. tcp_tw_reuse - BOOLEAN
  334. Allow to reuse TIME-WAIT sockets for new connections when it is
  335. safe from protocol viewpoint. Default value is 0.
  336. It should not be changed without advice/request of technical
  337. experts.
  338. tcp_window_scaling - BOOLEAN
  339. Enable window scaling as defined in RFC1323.
  340. tcp_wmem - vector of 3 INTEGERs: min, default, max
  341. min: Amount of memory reserved for send buffers for TCP socket.
  342. Each TCP socket has rights to use it due to fact of its birth.
  343. Default: 4K
  344. default: Amount of memory allowed for send buffers for TCP socket
  345. by default. This value overrides net.core.wmem_default used
  346. by other protocols, it is usually lower than net.core.wmem_default.
  347. Default: 16K
  348. max: Maximal amount of memory allowed for automatically selected
  349. send buffers for TCP socket. This value does not override
  350. net.core.wmem_max, "static" selection via SO_SNDBUF does not use this.
  351. Default: 128K
  352. tcp_workaround_signed_windows - BOOLEAN
  353. If set, assume no receipt of a window scaling option means the
  354. remote TCP is broken and treats the window as a signed quantity.
  355. If unset, assume the remote TCP is not broken even if we do
  356. not receive a window scaling option from them.
  357. Default: 0
  358. CIPSOv4 Variables:
  359. cipso_cache_enable - BOOLEAN
  360. If set, enable additions to and lookups from the CIPSO label mapping
  361. cache. If unset, additions are ignored and lookups always result in a
  362. miss. However, regardless of the setting the cache is still
  363. invalidated when required when means you can safely toggle this on and
  364. off and the cache will always be "safe".
  365. Default: 1
  366. cipso_cache_bucket_size - INTEGER
  367. The CIPSO label cache consists of a fixed size hash table with each
  368. hash bucket containing a number of cache entries. This variable limits
  369. the number of entries in each hash bucket; the larger the value the
  370. more CIPSO label mappings that can be cached. When the number of
  371. entries in a given hash bucket reaches this limit adding new entries
  372. causes the oldest entry in the bucket to be removed to make room.
  373. Default: 10
  374. cipso_rbm_optfmt - BOOLEAN
  375. Enable the "Optimized Tag 1 Format" as defined in section 3.4.2.6 of
  376. the CIPSO draft specification (see Documentation/netlabel for details).
  377. This means that when set the CIPSO tag will be padded with empty
  378. categories in order to make the packet data 32-bit aligned.
  379. Default: 0
  380. cipso_rbm_structvalid - BOOLEAN
  381. If set, do a very strict check of the CIPSO option when
  382. ip_options_compile() is called. If unset, relax the checks done during
  383. ip_options_compile(). Either way is "safe" as errors are caught else
  384. where in the CIPSO processing code but setting this to 0 (False) should
  385. result in less work (i.e. it should be faster) but could cause problems
  386. with other implementations that require strict checking.
  387. Default: 0
  388. IP Variables:
  389. ip_local_port_range - 2 INTEGERS
  390. Defines the local port range that is used by TCP and UDP to
  391. choose the local port. The first number is the first, the
  392. second the last local port number. Default value depends on
  393. amount of memory available on the system:
  394. > 128Mb 32768-61000
  395. < 128Mb 1024-4999 or even less.
  396. This number defines number of active connections, which this
  397. system can issue simultaneously to systems not supporting
  398. TCP extensions (timestamps). With tcp_tw_recycle enabled
  399. (i.e. by default) range 1024-4999 is enough to issue up to
  400. 2000 connections per second to systems supporting timestamps.
  401. ip_nonlocal_bind - BOOLEAN
  402. If set, allows processes to bind() to non-local IP addresses,
  403. which can be quite useful - but may break some applications.
  404. Default: 0
  405. ip_dynaddr - BOOLEAN
  406. If set non-zero, enables support for dynamic addresses.
  407. If set to a non-zero value larger than 1, a kernel log
  408. message will be printed when dynamic address rewriting
  409. occurs.
  410. Default: 0
  411. icmp_echo_ignore_all - BOOLEAN
  412. If set non-zero, then the kernel will ignore all ICMP ECHO
  413. requests sent to it.
  414. Default: 0
  415. icmp_echo_ignore_broadcasts - BOOLEAN
  416. If set non-zero, then the kernel will ignore all ICMP ECHO and
  417. TIMESTAMP requests sent to it via broadcast/multicast.
  418. Default: 1
  419. icmp_ratelimit - INTEGER
  420. Limit the maximal rates for sending ICMP packets whose type matches
  421. icmp_ratemask (see below) to specific targets.
  422. 0 to disable any limiting, otherwise the maximal rate in jiffies(1)
  423. Default: 100
  424. icmp_ratemask - INTEGER
  425. Mask made of ICMP types for which rates are being limited.
  426. Significant bits: IHGFEDCBA9876543210
  427. Default mask: 0000001100000011000 (6168)
  428. Bit definitions (see include/linux/icmp.h):
  429. 0 Echo Reply
  430. 3 Destination Unreachable *
  431. 4 Source Quench *
  432. 5 Redirect
  433. 8 Echo Request
  434. B Time Exceeded *
  435. C Parameter Problem *
  436. D Timestamp Request
  437. E Timestamp Reply
  438. F Info Request
  439. G Info Reply
  440. H Address Mask Request
  441. I Address Mask Reply
  442. * These are rate limited by default (see default mask above)
  443. icmp_ignore_bogus_error_responses - BOOLEAN
  444. Some routers violate RFC1122 by sending bogus responses to broadcast
  445. frames. Such violations are normally logged via a kernel warning.
  446. If this is set to TRUE, the kernel will not give such warnings, which
  447. will avoid log file clutter.
  448. Default: FALSE
  449. icmp_errors_use_inbound_ifaddr - BOOLEAN
  450. If zero, icmp error messages are sent with the primary address of
  451. the exiting interface.
  452. If non-zero, the message will be sent with the primary address of
  453. the interface that received the packet that caused the icmp error.
  454. This is the behaviour network many administrators will expect from
  455. a router. And it can make debugging complicated network layouts
  456. much easier.
  457. Note that if no primary address exists for the interface selected,
  458. then the primary address of the first non-loopback interface that
  459. has one will be used regardless of this setting.
  460. Default: 0
  461. igmp_max_memberships - INTEGER
  462. Change the maximum number of multicast groups we can subscribe to.
  463. Default: 20
  464. conf/interface/* changes special settings per interface (where "interface" is
  465. the name of your network interface)
  466. conf/all/* is special, changes the settings for all interfaces
  467. log_martians - BOOLEAN
  468. Log packets with impossible addresses to kernel log.
  469. log_martians for the interface will be enabled if at least one of
  470. conf/{all,interface}/log_martians is set to TRUE,
  471. it will be disabled otherwise
  472. accept_redirects - BOOLEAN
  473. Accept ICMP redirect messages.
  474. accept_redirects for the interface will be enabled if:
  475. - both conf/{all,interface}/accept_redirects are TRUE in the case forwarding
  476. for the interface is enabled
  477. or
  478. - at least one of conf/{all,interface}/accept_redirects is TRUE in the case
  479. forwarding for the interface is disabled
  480. accept_redirects for the interface will be disabled otherwise
  481. default TRUE (host)
  482. FALSE (router)
  483. forwarding - BOOLEAN
  484. Enable IP forwarding on this interface.
  485. mc_forwarding - BOOLEAN
  486. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  487. and a multicast routing daemon is required.
  488. conf/all/mc_forwarding must also be set to TRUE to enable multicast routing
  489. for the interface
  490. medium_id - INTEGER
  491. Integer value used to differentiate the devices by the medium they
  492. are attached to. Two devices can have different id values when
  493. the broadcast packets are received only on one of them.
  494. The default value 0 means that the device is the only interface
  495. to its medium, value of -1 means that medium is not known.
  496. Currently, it is used to change the proxy_arp behavior:
  497. the proxy_arp feature is enabled for packets forwarded between
  498. two devices attached to different media.
  499. proxy_arp - BOOLEAN
  500. Do proxy arp.
  501. proxy_arp for the interface will be enabled if at least one of
  502. conf/{all,interface}/proxy_arp is set to TRUE,
  503. it will be disabled otherwise
  504. shared_media - BOOLEAN
  505. Send(router) or accept(host) RFC1620 shared media redirects.
  506. Overrides ip_secure_redirects.
  507. shared_media for the interface will be enabled if at least one of
  508. conf/{all,interface}/shared_media is set to TRUE,
  509. it will be disabled otherwise
  510. default TRUE
  511. secure_redirects - BOOLEAN
  512. Accept ICMP redirect messages only for gateways,
  513. listed in default gateway list.
  514. secure_redirects for the interface will be enabled if at least one of
  515. conf/{all,interface}/secure_redirects is set to TRUE,
  516. it will be disabled otherwise
  517. default TRUE
  518. send_redirects - BOOLEAN
  519. Send redirects, if router.
  520. send_redirects for the interface will be enabled if at least one of
  521. conf/{all,interface}/send_redirects is set to TRUE,
  522. it will be disabled otherwise
  523. Default: TRUE
  524. bootp_relay - BOOLEAN
  525. Accept packets with source address 0.b.c.d destined
  526. not to this host as local ones. It is supposed, that
  527. BOOTP relay daemon will catch and forward such packets.
  528. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  529. for the interface
  530. default FALSE
  531. Not Implemented Yet.
  532. accept_source_route - BOOLEAN
  533. Accept packets with SRR option.
  534. conf/all/accept_source_route must also be set to TRUE to accept packets
  535. with SRR option on the interface
  536. default TRUE (router)
  537. FALSE (host)
  538. rp_filter - BOOLEAN
  539. 1 - do source validation by reversed path, as specified in RFC1812
  540. Recommended option for single homed hosts and stub network
  541. routers. Could cause troubles for complicated (not loop free)
  542. networks running a slow unreliable protocol (sort of RIP),
  543. or using static routes.
  544. 0 - No source validation.
  545. conf/all/rp_filter must also be set to TRUE to do source validation
  546. on the interface
  547. Default value is 0. Note that some distributions enable it
  548. in startup scripts.
  549. arp_filter - BOOLEAN
  550. 1 - Allows you to have multiple network interfaces on the same
  551. subnet, and have the ARPs for each interface be answered
  552. based on whether or not the kernel would route a packet from
  553. the ARP'd IP out that interface (therefore you must use source
  554. based routing for this to work). In other words it allows control
  555. of which cards (usually 1) will respond to an arp request.
  556. 0 - (default) The kernel can respond to arp requests with addresses
  557. from other interfaces. This may seem wrong but it usually makes
  558. sense, because it increases the chance of successful communication.
  559. IP addresses are owned by the complete host on Linux, not by
  560. particular interfaces. Only for more complex setups like load-
  561. balancing, does this behaviour cause problems.
  562. arp_filter for the interface will be enabled if at least one of
  563. conf/{all,interface}/arp_filter is set to TRUE,
  564. it will be disabled otherwise
  565. arp_announce - INTEGER
  566. Define different restriction levels for announcing the local
  567. source IP address from IP packets in ARP requests sent on
  568. interface:
  569. 0 - (default) Use any local address, configured on any interface
  570. 1 - Try to avoid local addresses that are not in the target's
  571. subnet for this interface. This mode is useful when target
  572. hosts reachable via this interface require the source IP
  573. address in ARP requests to be part of their logical network
  574. configured on the receiving interface. When we generate the
  575. request we will check all our subnets that include the
  576. target IP and will preserve the source address if it is from
  577. such subnet. If there is no such subnet we select source
  578. address according to the rules for level 2.
  579. 2 - Always use the best local address for this target.
  580. In this mode we ignore the source address in the IP packet
  581. and try to select local address that we prefer for talks with
  582. the target host. Such local address is selected by looking
  583. for primary IP addresses on all our subnets on the outgoing
  584. interface that include the target IP address. If no suitable
  585. local address is found we select the first local address
  586. we have on the outgoing interface or on all other interfaces,
  587. with the hope we will receive reply for our request and
  588. even sometimes no matter the source IP address we announce.
  589. The max value from conf/{all,interface}/arp_announce is used.
  590. Increasing the restriction level gives more chance for
  591. receiving answer from the resolved target while decreasing
  592. the level announces more valid sender's information.
  593. arp_ignore - INTEGER
  594. Define different modes for sending replies in response to
  595. received ARP requests that resolve local target IP addresses:
  596. 0 - (default): reply for any local target IP address, configured
  597. on any interface
  598. 1 - reply only if the target IP address is local address
  599. configured on the incoming interface
  600. 2 - reply only if the target IP address is local address
  601. configured on the incoming interface and both with the
  602. sender's IP address are part from same subnet on this interface
  603. 3 - do not reply for local addresses configured with scope host,
  604. only resolutions for global and link addresses are replied
  605. 4-7 - reserved
  606. 8 - do not reply for all local addresses
  607. The max value from conf/{all,interface}/arp_ignore is used
  608. when ARP request is received on the {interface}
  609. arp_accept - BOOLEAN
  610. Define behavior when gratuitous arp replies are received:
  611. 0 - drop gratuitous arp frames
  612. 1 - accept gratuitous arp frames
  613. app_solicit - INTEGER
  614. The maximum number of probes to send to the user space ARP daemon
  615. via netlink before dropping back to multicast probes (see
  616. mcast_solicit). Defaults to 0.
  617. disable_policy - BOOLEAN
  618. Disable IPSEC policy (SPD) for this interface
  619. disable_xfrm - BOOLEAN
  620. Disable IPSEC encryption on this interface, whatever the policy
  621. tag - INTEGER
  622. Allows you to write a number, which can be used as required.
  623. Default value is 0.
  624. (1) Jiffie: internal timeunit for the kernel. On the i386 1/100s, on the
  625. Alpha 1/1024s. See the HZ define in /usr/include/asm/param.h for the exact
  626. value on your system.
  627. Alexey Kuznetsov.
  628. kuznet@ms2.inr.ac.ru
  629. Updated by:
  630. Andi Kleen
  631. ak@muc.de
  632. Nicolas Delon
  633. delon.nicolas@wanadoo.fr
  634. /proc/sys/net/ipv6/* Variables:
  635. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  636. apply to IPv6 [XXX?].
  637. bindv6only - BOOLEAN
  638. Default value for IPV6_V6ONLY socket option,
  639. which restricts use of the IPv6 socket to IPv6 communication
  640. only.
  641. TRUE: disable IPv4-mapped address feature
  642. FALSE: enable IPv4-mapped address feature
  643. Default: FALSE (as specified in RFC2553bis)
  644. IPv6 Fragmentation:
  645. ip6frag_high_thresh - INTEGER
  646. Maximum memory used to reassemble IPv6 fragments. When
  647. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  648. the fragment handler will toss packets until ip6frag_low_thresh
  649. is reached.
  650. ip6frag_low_thresh - INTEGER
  651. See ip6frag_high_thresh
  652. ip6frag_time - INTEGER
  653. Time in seconds to keep an IPv6 fragment in memory.
  654. ip6frag_secret_interval - INTEGER
  655. Regeneration interval (in seconds) of the hash secret (or lifetime
  656. for the hash secret) for IPv6 fragments.
  657. Default: 600
  658. conf/default/*:
  659. Change the interface-specific default settings.
  660. conf/all/*:
  661. Change all the interface-specific settings.
  662. [XXX: Other special features than forwarding?]
  663. conf/all/forwarding - BOOLEAN
  664. Enable global IPv6 forwarding between all interfaces.
  665. IPv4 and IPv6 work differently here; e.g. netfilter must be used
  666. to control which interfaces may forward packets and which not.
  667. This also sets all interfaces' Host/Router setting
  668. 'forwarding' to the specified value. See below for details.
  669. This referred to as global forwarding.
  670. proxy_ndp - BOOLEAN
  671. Do proxy ndp.
  672. conf/interface/*:
  673. Change special settings per interface.
  674. The functional behaviour for certain settings is different
  675. depending on whether local forwarding is enabled or not.
  676. accept_ra - BOOLEAN
  677. Accept Router Advertisements; autoconfigure using them.
  678. Functional default: enabled if local forwarding is disabled.
  679. disabled if local forwarding is enabled.
  680. accept_ra_defrtr - BOOLEAN
  681. Learn default router in Router Advertisement.
  682. Functional default: enabled if accept_ra is enabled.
  683. disabled if accept_ra is disabled.
  684. accept_ra_pinfo - BOOLEAN
  685. Learn Prefix Information in Router Advertisement.
  686. Functional default: enabled if accept_ra is enabled.
  687. disabled if accept_ra is disabled.
  688. accept_ra_rt_info_max_plen - INTEGER
  689. Maximum prefix length of Route Information in RA.
  690. Route Information w/ prefix larger than or equal to this
  691. variable shall be ignored.
  692. Functional default: 0 if accept_ra_rtr_pref is enabled.
  693. -1 if accept_ra_rtr_pref is disabled.
  694. accept_ra_rtr_pref - BOOLEAN
  695. Accept Router Preference in RA.
  696. Functional default: enabled if accept_ra is enabled.
  697. disabled if accept_ra is disabled.
  698. accept_redirects - BOOLEAN
  699. Accept Redirects.
  700. Functional default: enabled if local forwarding is disabled.
  701. disabled if local forwarding is enabled.
  702. accept_source_route - INTEGER
  703. Accept source routing (routing extension header).
  704. > 0: Accept routing header.
  705. = 0: Accept only routing header type 2.
  706. < 0: Do not accept routing header.
  707. Default: 0
  708. autoconf - BOOLEAN
  709. Autoconfigure addresses using Prefix Information in Router
  710. Advertisements.
  711. Functional default: enabled if accept_ra_pinfo is enabled.
  712. disabled if accept_ra_pinfo is disabled.
  713. dad_transmits - INTEGER
  714. The amount of Duplicate Address Detection probes to send.
  715. Default: 1
  716. forwarding - BOOLEAN
  717. Configure interface-specific Host/Router behaviour.
  718. Note: It is recommended to have the same setting on all
  719. interfaces; mixed router/host scenarios are rather uncommon.
  720. FALSE:
  721. By default, Host behaviour is assumed. This means:
  722. 1. IsRouter flag is not set in Neighbour Advertisements.
  723. 2. Router Solicitations are being sent when necessary.
  724. 3. If accept_ra is TRUE (default), accept Router
  725. Advertisements (and do autoconfiguration).
  726. 4. If accept_redirects is TRUE (default), accept Redirects.
  727. TRUE:
  728. If local forwarding is enabled, Router behaviour is assumed.
  729. This means exactly the reverse from the above:
  730. 1. IsRouter flag is set in Neighbour Advertisements.
  731. 2. Router Solicitations are not sent.
  732. 3. Router Advertisements are ignored.
  733. 4. Redirects are ignored.
  734. Default: FALSE if global forwarding is disabled (default),
  735. otherwise TRUE.
  736. hop_limit - INTEGER
  737. Default Hop Limit to set.
  738. Default: 64
  739. mtu - INTEGER
  740. Default Maximum Transfer Unit
  741. Default: 1280 (IPv6 required minimum)
  742. router_probe_interval - INTEGER
  743. Minimum interval (in seconds) between Router Probing described
  744. in RFC4191.
  745. Default: 60
  746. router_solicitation_delay - INTEGER
  747. Number of seconds to wait after interface is brought up
  748. before sending Router Solicitations.
  749. Default: 1
  750. router_solicitation_interval - INTEGER
  751. Number of seconds to wait between Router Solicitations.
  752. Default: 4
  753. router_solicitations - INTEGER
  754. Number of Router Solicitations to send until assuming no
  755. routers are present.
  756. Default: 3
  757. use_tempaddr - INTEGER
  758. Preference for Privacy Extensions (RFC3041).
  759. <= 0 : disable Privacy Extensions
  760. == 1 : enable Privacy Extensions, but prefer public
  761. addresses over temporary addresses.
  762. > 1 : enable Privacy Extensions and prefer temporary
  763. addresses over public addresses.
  764. Default: 0 (for most devices)
  765. -1 (for point-to-point devices and loopback devices)
  766. temp_valid_lft - INTEGER
  767. valid lifetime (in seconds) for temporary addresses.
  768. Default: 604800 (7 days)
  769. temp_prefered_lft - INTEGER
  770. Preferred lifetime (in seconds) for temporary addresses.
  771. Default: 86400 (1 day)
  772. max_desync_factor - INTEGER
  773. Maximum value for DESYNC_FACTOR, which is a random value
  774. that ensures that clients don't synchronize with each
  775. other and generate new addresses at exactly the same time.
  776. value is in seconds.
  777. Default: 600
  778. regen_max_retry - INTEGER
  779. Number of attempts before give up attempting to generate
  780. valid temporary addresses.
  781. Default: 5
  782. max_addresses - INTEGER
  783. Number of maximum addresses per interface. 0 disables limitation.
  784. It is recommended not set too large value (or 0) because it would
  785. be too easy way to crash kernel to allow to create too much of
  786. autoconfigured addresses.
  787. Default: 16
  788. icmp/*:
  789. ratelimit - INTEGER
  790. Limit the maximal rates for sending ICMPv6 packets.
  791. 0 to disable any limiting, otherwise the maximal rate in jiffies(1)
  792. Default: 100
  793. IPv6 Update by:
  794. Pekka Savola <pekkas@netcore.fi>
  795. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  796. /proc/sys/net/bridge/* Variables:
  797. bridge-nf-call-arptables - BOOLEAN
  798. 1 : pass bridged ARP traffic to arptables' FORWARD chain.
  799. 0 : disable this.
  800. Default: 1
  801. bridge-nf-call-iptables - BOOLEAN
  802. 1 : pass bridged IPv4 traffic to iptables' chains.
  803. 0 : disable this.
  804. Default: 1
  805. bridge-nf-call-ip6tables - BOOLEAN
  806. 1 : pass bridged IPv6 traffic to ip6tables' chains.
  807. 0 : disable this.
  808. Default: 1
  809. bridge-nf-filter-vlan-tagged - BOOLEAN
  810. 1 : pass bridged vlan-tagged ARP/IP/IPv6 traffic to {arp,ip,ip6}tables.
  811. 0 : disable this.
  812. Default: 1
  813. bridge-nf-filter-pppoe-tagged - BOOLEAN
  814. 1 : pass bridged pppoe-tagged IP/IPv6 traffic to {ip,ip6}tables.
  815. 0 : disable this.
  816. Default: 1
  817. UNDOCUMENTED:
  818. dev_weight FIXME
  819. discovery_slots FIXME
  820. discovery_timeout FIXME
  821. fast_poll_increase FIXME
  822. ip6_queue_maxlen FIXME
  823. lap_keepalive_time FIXME
  824. lo_cong FIXME
  825. max_baud_rate FIXME
  826. max_dgram_qlen FIXME
  827. max_noreply_time FIXME
  828. max_tx_data_size FIXME
  829. max_tx_window FIXME
  830. min_tx_turn_time FIXME
  831. mod_cong FIXME
  832. no_cong FIXME
  833. no_cong_thresh FIXME
  834. slot_timeout FIXME
  835. warn_noreply_time FIXME