ip-sysctl.txt 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  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. INET peer storage:
  36. inet_peer_threshold - INTEGER
  37. The approximate size of the storage. Starting from this threshold
  38. entries will be thrown aggressively. This threshold also determines
  39. entries' time-to-live and time intervals between garbage collection
  40. passes. More entries, less time-to-live, less GC interval.
  41. inet_peer_minttl - INTEGER
  42. Minimum time-to-live of entries. Should be enough to cover fragment
  43. time-to-live on the reassembling side. This minimum time-to-live is
  44. guaranteed if the pool size is less than inet_peer_threshold.
  45. Measured in jiffies(1).
  46. inet_peer_maxttl - INTEGER
  47. Maximum time-to-live of entries. Unused entries will expire after
  48. this period of time if there is no memory pressure on the pool (i.e.
  49. when the number of entries in the pool is very small).
  50. Measured in jiffies(1).
  51. inet_peer_gc_mintime - INTEGER
  52. Minimum interval between garbage collection passes. This interval is
  53. in effect under high memory pressure on the pool.
  54. Measured in jiffies(1).
  55. inet_peer_gc_maxtime - INTEGER
  56. Minimum interval between garbage collection passes. This interval is
  57. in effect under low (or absent) memory pressure on the pool.
  58. Measured in jiffies(1).
  59. TCP variables:
  60. tcp_syn_retries - INTEGER
  61. Number of times initial SYNs for an active TCP connection attempt
  62. will be retransmitted. Should not be higher than 255. Default value
  63. is 5, which corresponds to ~180seconds.
  64. tcp_synack_retries - INTEGER
  65. Number of times SYNACKs for a passive TCP connection attempt will
  66. be retransmitted. Should not be higher than 255. Default value
  67. is 5, which corresponds to ~180seconds.
  68. tcp_keepalive_time - INTEGER
  69. How often TCP sends out keepalive messages when keepalive is enabled.
  70. Default: 2hours.
  71. tcp_keepalive_probes - INTEGER
  72. How many keepalive probes TCP sends out, until it decides that the
  73. connection is broken. Default value: 9.
  74. tcp_keepalive_intvl - INTEGER
  75. How frequently the probes are send out. Multiplied by
  76. tcp_keepalive_probes it is time to kill not responding connection,
  77. after probes started. Default value: 75sec i.e. connection
  78. will be aborted after ~11 minutes of retries.
  79. tcp_retries1 - INTEGER
  80. How many times to retry before deciding that something is wrong
  81. and it is necessary to report this suspicion to network layer.
  82. Minimal RFC value is 3, it is default, which corresponds
  83. to ~3sec-8min depending on RTO.
  84. tcp_retries2 - INTEGER
  85. How may times to retry before killing alive TCP connection.
  86. RFC1122 says that the limit should be longer than 100 sec.
  87. It is too small number. Default value 15 corresponds to ~13-30min
  88. depending on RTO.
  89. tcp_orphan_retries - INTEGER
  90. How may times to retry before killing TCP connection, closed
  91. by our side. Default value 7 corresponds to ~50sec-16min
  92. depending on RTO. If you machine is loaded WEB server,
  93. you should think about lowering this value, such sockets
  94. may consume significant resources. Cf. tcp_max_orphans.
  95. tcp_fin_timeout - INTEGER
  96. Time to hold socket in state FIN-WAIT-2, if it was closed
  97. by our side. Peer can be broken and never close its side,
  98. or even died unexpectedly. Default value is 60sec.
  99. Usual value used in 2.2 was 180 seconds, you may restore
  100. it, but remember that if your machine is even underloaded WEB server,
  101. you risk to overflow memory with kilotons of dead sockets,
  102. FIN-WAIT-2 sockets are less dangerous than FIN-WAIT-1,
  103. because they eat maximum 1.5K of memory, but they tend
  104. to live longer. Cf. tcp_max_orphans.
  105. tcp_max_tw_buckets - INTEGER
  106. Maximal number of timewait sockets held by system simultaneously.
  107. If this number is exceeded time-wait socket is immediately destroyed
  108. and warning is printed. This limit exists only to prevent
  109. simple DoS attacks, you _must_ not lower the limit artificially,
  110. but rather increase it (probably, after increasing installed memory),
  111. if network conditions require more than default value.
  112. tcp_tw_recycle - BOOLEAN
  113. Enable fast recycling TIME-WAIT sockets. Default value is 0.
  114. It should not be changed without advice/request of technical
  115. experts.
  116. tcp_tw_reuse - BOOLEAN
  117. Allow to reuse TIME-WAIT sockets for new connections when it is
  118. safe from protocol viewpoint. Default value is 0.
  119. It should not be changed without advice/request of technical
  120. experts.
  121. tcp_max_orphans - INTEGER
  122. Maximal number of TCP sockets not attached to any user file handle,
  123. held by system. If this number is exceeded orphaned connections are
  124. reset immediately and warning is printed. This limit exists
  125. only to prevent simple DoS attacks, you _must_ not rely on this
  126. or lower the limit artificially, but rather increase it
  127. (probably, after increasing installed memory),
  128. if network conditions require more than default value,
  129. and tune network services to linger and kill such states
  130. more aggressively. Let me to remind again: each orphan eats
  131. up to ~64K of unswappable memory.
  132. tcp_abort_on_overflow - BOOLEAN
  133. If listening service is too slow to accept new connections,
  134. reset them. Default state is FALSE. It means that if overflow
  135. occurred due to a burst, connection will recover. Enable this
  136. option _only_ if you are really sure that listening daemon
  137. cannot be tuned to accept connections faster. Enabling this
  138. option can harm clients of your server.
  139. tcp_syncookies - BOOLEAN
  140. Only valid when the kernel was compiled with CONFIG_SYNCOOKIES
  141. Send out syncookies when the syn backlog queue of a socket
  142. overflows. This is to prevent against the common 'syn flood attack'
  143. Default: FALSE
  144. Note, that syncookies is fallback facility.
  145. It MUST NOT be used to help highly loaded servers to stand
  146. against legal connection rate. If you see synflood warnings
  147. in your logs, but investigation shows that they occur
  148. because of overload with legal connections, you should tune
  149. another parameters until this warning disappear.
  150. See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.
  151. syncookies seriously violate TCP protocol, do not allow
  152. to use TCP extensions, can result in serious degradation
  153. of some services (f.e. SMTP relaying), visible not by you,
  154. but your clients and relays, contacting you. While you see
  155. synflood warnings in logs not being really flooded, your server
  156. is seriously misconfigured.
  157. tcp_stdurg - BOOLEAN
  158. Use the Host requirements interpretation of the TCP urg pointer field.
  159. Most hosts use the older BSD interpretation, so if you turn this on
  160. Linux might not communicate correctly with them.
  161. Default: FALSE
  162. tcp_max_syn_backlog - INTEGER
  163. Maximal number of remembered connection requests, which are
  164. still did not receive an acknowledgment from connecting client.
  165. Default value is 1024 for systems with more than 128Mb of memory,
  166. and 128 for low memory machines. If server suffers of overload,
  167. try to increase this number.
  168. tcp_window_scaling - BOOLEAN
  169. Enable window scaling as defined in RFC1323.
  170. tcp_timestamps - BOOLEAN
  171. Enable timestamps as defined in RFC1323.
  172. tcp_sack - BOOLEAN
  173. Enable select acknowledgments (SACKS).
  174. tcp_fack - BOOLEAN
  175. Enable FACK congestion avoidance and fast retransmission.
  176. The value is not used, if tcp_sack is not enabled.
  177. tcp_dsack - BOOLEAN
  178. Allows TCP to send "duplicate" SACKs.
  179. tcp_ecn - BOOLEAN
  180. Enable Explicit Congestion Notification in TCP.
  181. tcp_reordering - INTEGER
  182. Maximal reordering of packets in a TCP stream.
  183. Default: 3
  184. tcp_retrans_collapse - BOOLEAN
  185. Bug-to-bug compatibility with some broken printers.
  186. On retransmit try to send bigger packets to work around bugs in
  187. certain TCP stacks.
  188. tcp_wmem - vector of 3 INTEGERs: min, default, max
  189. min: Amount of memory reserved for send buffers for TCP socket.
  190. Each TCP socket has rights to use it due to fact of its birth.
  191. Default: 4K
  192. default: Amount of memory allowed for send buffers for TCP socket
  193. by default. This value overrides net.core.wmem_default used
  194. by other protocols, it is usually lower than net.core.wmem_default.
  195. Default: 16K
  196. max: Maximal amount of memory allowed for automatically selected
  197. send buffers for TCP socket. This value does not override
  198. net.core.wmem_max, "static" selection via SO_SNDBUF does not use this.
  199. Default: 128K
  200. tcp_rmem - vector of 3 INTEGERs: min, default, max
  201. min: Minimal size of receive buffer used by TCP sockets.
  202. It is guaranteed to each TCP socket, even under moderate memory
  203. pressure.
  204. Default: 8K
  205. default: default size of receive buffer used by TCP sockets.
  206. This value overrides net.core.rmem_default used by other protocols.
  207. Default: 87380 bytes. This value results in window of 65535 with
  208. default setting of tcp_adv_win_scale and tcp_app_win:0 and a bit
  209. less for default tcp_app_win. See below about these variables.
  210. max: maximal size of receive buffer allowed for automatically
  211. selected receiver buffers for TCP socket. This value does not override
  212. net.core.rmem_max, "static" selection via SO_RCVBUF does not use this.
  213. Default: 87380*2 bytes.
  214. tcp_mem - vector of 3 INTEGERs: min, pressure, max
  215. low: below this number of pages TCP is not bothered about its
  216. memory appetite.
  217. pressure: when amount of memory allocated by TCP exceeds this number
  218. of pages, TCP moderates its memory consumption and enters memory
  219. pressure mode, which is exited when memory consumption falls
  220. under "low".
  221. high: number of pages allowed for queueing by all TCP sockets.
  222. Defaults are calculated at boot time from amount of available
  223. memory.
  224. tcp_app_win - INTEGER
  225. Reserve max(window/2^tcp_app_win, mss) of window for application
  226. buffer. Value 0 is special, it means that nothing is reserved.
  227. Default: 31
  228. tcp_adv_win_scale - INTEGER
  229. Count buffering overhead as bytes/2^tcp_adv_win_scale
  230. (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale),
  231. if it is <= 0.
  232. Default: 2
  233. tcp_rfc1337 - BOOLEAN
  234. If set, the TCP stack behaves conforming to RFC1337. If unset,
  235. we are not conforming to RFC, but prevent TCP TIME_WAIT
  236. assassination.
  237. Default: 0
  238. tcp_low_latency - BOOLEAN
  239. If set, the TCP stack makes decisions that prefer lower
  240. latency as opposed to higher throughput. By default, this
  241. option is not set meaning that higher throughput is preferred.
  242. An example of an application where this default should be
  243. changed would be a Beowulf compute cluster.
  244. Default: 0
  245. tcp_westwood - BOOLEAN
  246. Enable TCP Westwood+ congestion control algorithm.
  247. TCP Westwood+ is a sender-side only modification of the TCP Reno
  248. protocol stack that optimizes the performance of TCP congestion
  249. control. It is based on end-to-end bandwidth estimation to set
  250. congestion window and slow start threshold after a congestion
  251. episode. Using this estimation, TCP Westwood+ adaptively sets a
  252. slow start threshold and a congestion window which takes into
  253. account the bandwidth used at the time congestion is experienced.
  254. TCP Westwood+ significantly increases fairness wrt TCP Reno in
  255. wired networks and throughput over wireless links.
  256. Default: 0
  257. tcp_vegas_cong_avoid - BOOLEAN
  258. Enable TCP Vegas congestion avoidance algorithm.
  259. TCP Vegas is a sender-side only change to TCP that anticipates
  260. the onset of congestion by estimating the bandwidth. TCP Vegas
  261. adjusts the sending rate by modifying the congestion
  262. window. TCP Vegas should provide less packet loss, but it is
  263. not as aggressive as TCP Reno.
  264. Default:0
  265. tcp_bic - BOOLEAN
  266. Enable BIC TCP congestion control algorithm.
  267. BIC-TCP is a sender-side only change that ensures a linear RTT
  268. fairness under large windows while offering both scalability and
  269. bounded TCP-friendliness. The protocol combines two schemes
  270. called additive increase and binary search increase. When the
  271. congestion window is large, additive increase with a large
  272. increment ensures linear RTT fairness as well as good
  273. scalability. Under small congestion windows, binary search
  274. increase provides TCP friendliness.
  275. Default: 0
  276. tcp_bic_low_window - INTEGER
  277. Sets the threshold window (in packets) where BIC TCP starts to
  278. adjust the congestion window. Below this threshold BIC TCP behaves
  279. the same as the default TCP Reno.
  280. Default: 14
  281. tcp_bic_fast_convergence - BOOLEAN
  282. Forces BIC TCP to more quickly respond to changes in congestion
  283. window. Allows two flows sharing the same connection to converge
  284. more rapidly.
  285. Default: 1
  286. tcp_default_win_scale - INTEGER
  287. Sets the minimum window scale TCP will negotiate for on all
  288. conections.
  289. Default: 7
  290. tcp_tso_win_divisor - INTEGER
  291. This allows control over what percentage of the congestion window
  292. can be consumed by a single TSO frame.
  293. The setting of this parameter is a choice between burstiness and
  294. building larger TSO frames.
  295. Default: 8
  296. tcp_frto - BOOLEAN
  297. Enables F-RTO, an enhanced recovery algorithm for TCP retransmission
  298. timeouts. It is particularly beneficial in wireless environments
  299. where packet loss is typically due to random radio interference
  300. rather than intermediate router congestion.
  301. somaxconn - INTEGER
  302. Limit of socket listen() backlog, known in userspace as SOMAXCONN.
  303. Defaults to 128. See also tcp_max_syn_backlog for additional tuning
  304. for TCP sockets.
  305. IP Variables:
  306. ip_local_port_range - 2 INTEGERS
  307. Defines the local port range that is used by TCP and UDP to
  308. choose the local port. The first number is the first, the
  309. second the last local port number. Default value depends on
  310. amount of memory available on the system:
  311. > 128Mb 32768-61000
  312. < 128Mb 1024-4999 or even less.
  313. This number defines number of active connections, which this
  314. system can issue simultaneously to systems not supporting
  315. TCP extensions (timestamps). With tcp_tw_recycle enabled
  316. (i.e. by default) range 1024-4999 is enough to issue up to
  317. 2000 connections per second to systems supporting timestamps.
  318. ip_nonlocal_bind - BOOLEAN
  319. If set, allows processes to bind() to non-local IP addresses,
  320. which can be quite useful - but may break some applications.
  321. Default: 0
  322. ip_dynaddr - BOOLEAN
  323. If set non-zero, enables support for dynamic addresses.
  324. If set to a non-zero value larger than 1, a kernel log
  325. message will be printed when dynamic address rewriting
  326. occurs.
  327. Default: 0
  328. icmp_echo_ignore_all - BOOLEAN
  329. icmp_echo_ignore_broadcasts - BOOLEAN
  330. If either is set to true, then the kernel will ignore either all
  331. ICMP ECHO requests sent to it or just those to broadcast/multicast
  332. addresses, respectively.
  333. icmp_ratelimit - INTEGER
  334. Limit the maximal rates for sending ICMP packets whose type matches
  335. icmp_ratemask (see below) to specific targets.
  336. 0 to disable any limiting, otherwise the maximal rate in jiffies(1)
  337. Default: 100
  338. icmp_ratemask - INTEGER
  339. Mask made of ICMP types for which rates are being limited.
  340. Significant bits: IHGFEDCBA9876543210
  341. Default mask: 0000001100000011000 (6168)
  342. Bit definitions (see include/linux/icmp.h):
  343. 0 Echo Reply
  344. 3 Destination Unreachable *
  345. 4 Source Quench *
  346. 5 Redirect
  347. 8 Echo Request
  348. B Time Exceeded *
  349. C Parameter Problem *
  350. D Timestamp Request
  351. E Timestamp Reply
  352. F Info Request
  353. G Info Reply
  354. H Address Mask Request
  355. I Address Mask Reply
  356. * These are rate limited by default (see default mask above)
  357. icmp_ignore_bogus_error_responses - BOOLEAN
  358. Some routers violate RFC1122 by sending bogus responses to broadcast
  359. frames. Such violations are normally logged via a kernel warning.
  360. If this is set to TRUE, the kernel will not give such warnings, which
  361. will avoid log file clutter.
  362. Default: FALSE
  363. igmp_max_memberships - INTEGER
  364. Change the maximum number of multicast groups we can subscribe to.
  365. Default: 20
  366. conf/interface/* changes special settings per interface (where "interface" is
  367. the name of your network interface)
  368. conf/all/* is special, changes the settings for all interfaces
  369. log_martians - BOOLEAN
  370. Log packets with impossible addresses to kernel log.
  371. log_martians for the interface will be enabled if at least one of
  372. conf/{all,interface}/log_martians is set to TRUE,
  373. it will be disabled otherwise
  374. accept_redirects - BOOLEAN
  375. Accept ICMP redirect messages.
  376. accept_redirects for the interface will be enabled if:
  377. - both conf/{all,interface}/accept_redirects are TRUE in the case forwarding
  378. for the interface is enabled
  379. or
  380. - at least one of conf/{all,interface}/accept_redirects is TRUE in the case
  381. forwarding for the interface is disabled
  382. accept_redirects for the interface will be disabled otherwise
  383. default TRUE (host)
  384. FALSE (router)
  385. forwarding - BOOLEAN
  386. Enable IP forwarding on this interface.
  387. mc_forwarding - BOOLEAN
  388. Do multicast routing. The kernel needs to be compiled with CONFIG_MROUTE
  389. and a multicast routing daemon is required.
  390. conf/all/mc_forwarding must also be set to TRUE to enable multicast routing
  391. for the interface
  392. medium_id - INTEGER
  393. Integer value used to differentiate the devices by the medium they
  394. are attached to. Two devices can have different id values when
  395. the broadcast packets are received only on one of them.
  396. The default value 0 means that the device is the only interface
  397. to its medium, value of -1 means that medium is not known.
  398. Currently, it is used to change the proxy_arp behavior:
  399. the proxy_arp feature is enabled for packets forwarded between
  400. two devices attached to different media.
  401. proxy_arp - BOOLEAN
  402. Do proxy arp.
  403. proxy_arp for the interface will be enabled if at least one of
  404. conf/{all,interface}/proxy_arp is set to TRUE,
  405. it will be disabled otherwise
  406. shared_media - BOOLEAN
  407. Send(router) or accept(host) RFC1620 shared media redirects.
  408. Overrides ip_secure_redirects.
  409. shared_media for the interface will be enabled if at least one of
  410. conf/{all,interface}/shared_media is set to TRUE,
  411. it will be disabled otherwise
  412. default TRUE
  413. secure_redirects - BOOLEAN
  414. Accept ICMP redirect messages only for gateways,
  415. listed in default gateway list.
  416. secure_redirects for the interface will be enabled if at least one of
  417. conf/{all,interface}/secure_redirects is set to TRUE,
  418. it will be disabled otherwise
  419. default TRUE
  420. send_redirects - BOOLEAN
  421. Send redirects, if router.
  422. send_redirects for the interface will be enabled if at least one of
  423. conf/{all,interface}/send_redirects is set to TRUE,
  424. it will be disabled otherwise
  425. Default: TRUE
  426. bootp_relay - BOOLEAN
  427. Accept packets with source address 0.b.c.d destined
  428. not to this host as local ones. It is supposed, that
  429. BOOTP relay daemon will catch and forward such packets.
  430. conf/all/bootp_relay must also be set to TRUE to enable BOOTP relay
  431. for the interface
  432. default FALSE
  433. Not Implemented Yet.
  434. accept_source_route - BOOLEAN
  435. Accept packets with SRR option.
  436. conf/all/accept_source_route must also be set to TRUE to accept packets
  437. with SRR option on the interface
  438. default TRUE (router)
  439. FALSE (host)
  440. rp_filter - BOOLEAN
  441. 1 - do source validation by reversed path, as specified in RFC1812
  442. Recommended option for single homed hosts and stub network
  443. routers. Could cause troubles for complicated (not loop free)
  444. networks running a slow unreliable protocol (sort of RIP),
  445. or using static routes.
  446. 0 - No source validation.
  447. conf/all/rp_filter must also be set to TRUE to do source validation
  448. on the interface
  449. Default value is 0. Note that some distributions enable it
  450. in startup scripts.
  451. arp_filter - BOOLEAN
  452. 1 - Allows you to have multiple network interfaces on the same
  453. subnet, and have the ARPs for each interface be answered
  454. based on whether or not the kernel would route a packet from
  455. the ARP'd IP out that interface (therefore you must use source
  456. based routing for this to work). In other words it allows control
  457. of which cards (usually 1) will respond to an arp request.
  458. 0 - (default) The kernel can respond to arp requests with addresses
  459. from other interfaces. This may seem wrong but it usually makes
  460. sense, because it increases the chance of successful communication.
  461. IP addresses are owned by the complete host on Linux, not by
  462. particular interfaces. Only for more complex setups like load-
  463. balancing, does this behaviour cause problems.
  464. arp_filter for the interface will be enabled if at least one of
  465. conf/{all,interface}/arp_filter is set to TRUE,
  466. it will be disabled otherwise
  467. arp_announce - INTEGER
  468. Define different restriction levels for announcing the local
  469. source IP address from IP packets in ARP requests sent on
  470. interface:
  471. 0 - (default) Use any local address, configured on any interface
  472. 1 - Try to avoid local addresses that are not in the target's
  473. subnet for this interface. This mode is useful when target
  474. hosts reachable via this interface require the source IP
  475. address in ARP requests to be part of their logical network
  476. configured on the receiving interface. When we generate the
  477. request we will check all our subnets that include the
  478. target IP and will preserve the source address if it is from
  479. such subnet. If there is no such subnet we select source
  480. address according to the rules for level 2.
  481. 2 - Always use the best local address for this target.
  482. In this mode we ignore the source address in the IP packet
  483. and try to select local address that we prefer for talks with
  484. the target host. Such local address is selected by looking
  485. for primary IP addresses on all our subnets on the outgoing
  486. interface that include the target IP address. If no suitable
  487. local address is found we select the first local address
  488. we have on the outgoing interface or on all other interfaces,
  489. with the hope we will receive reply for our request and
  490. even sometimes no matter the source IP address we announce.
  491. The max value from conf/{all,interface}/arp_announce is used.
  492. Increasing the restriction level gives more chance for
  493. receiving answer from the resolved target while decreasing
  494. the level announces more valid sender's information.
  495. arp_ignore - INTEGER
  496. Define different modes for sending replies in response to
  497. received ARP requests that resolve local target IP addresses:
  498. 0 - (default): reply for any local target IP address, configured
  499. on any interface
  500. 1 - reply only if the target IP address is local address
  501. configured on the incoming interface
  502. 2 - reply only if the target IP address is local address
  503. configured on the incoming interface and both with the
  504. sender's IP address are part from same subnet on this interface
  505. 3 - do not reply for local addresses configured with scope host,
  506. only resolutions for global and link addresses are replied
  507. 4-7 - reserved
  508. 8 - do not reply for all local addresses
  509. The max value from conf/{all,interface}/arp_ignore is used
  510. when ARP request is received on the {interface}
  511. app_solicit - INTEGER
  512. The maximum number of probes to send to the user space ARP daemon
  513. via netlink before dropping back to multicast probes (see
  514. mcast_solicit). Defaults to 0.
  515. disable_policy - BOOLEAN
  516. Disable IPSEC policy (SPD) for this interface
  517. disable_xfrm - BOOLEAN
  518. Disable IPSEC encryption on this interface, whatever the policy
  519. tag - INTEGER
  520. Allows you to write a number, which can be used as required.
  521. Default value is 0.
  522. (1) Jiffie: internal timeunit for the kernel. On the i386 1/100s, on the
  523. Alpha 1/1024s. See the HZ define in /usr/include/asm/param.h for the exact
  524. value on your system.
  525. Alexey Kuznetsov.
  526. kuznet@ms2.inr.ac.ru
  527. Updated by:
  528. Andi Kleen
  529. ak@muc.de
  530. Nicolas Delon
  531. delon.nicolas@wanadoo.fr
  532. /proc/sys/net/ipv6/* Variables:
  533. IPv6 has no global variables such as tcp_*. tcp_* settings under ipv4/ also
  534. apply to IPv6 [XXX?].
  535. bindv6only - BOOLEAN
  536. Default value for IPV6_V6ONLY socket option,
  537. which restricts use of the IPv6 socket to IPv6 communication
  538. only.
  539. TRUE: disable IPv4-mapped address feature
  540. FALSE: enable IPv4-mapped address feature
  541. Default: FALSE (as specified in RFC2553bis)
  542. IPv6 Fragmentation:
  543. ip6frag_high_thresh - INTEGER
  544. Maximum memory used to reassemble IPv6 fragments. When
  545. ip6frag_high_thresh bytes of memory is allocated for this purpose,
  546. the fragment handler will toss packets until ip6frag_low_thresh
  547. is reached.
  548. ip6frag_low_thresh - INTEGER
  549. See ip6frag_high_thresh
  550. ip6frag_time - INTEGER
  551. Time in seconds to keep an IPv6 fragment in memory.
  552. ip6frag_secret_interval - INTEGER
  553. Regeneration interval (in seconds) of the hash secret (or lifetime
  554. for the hash secret) for IPv6 fragments.
  555. Default: 600
  556. conf/default/*:
  557. Change the interface-specific default settings.
  558. conf/all/*:
  559. Change all the interface-specific settings.
  560. [XXX: Other special features than forwarding?]
  561. conf/all/forwarding - BOOLEAN
  562. Enable global IPv6 forwarding between all interfaces.
  563. IPv4 and IPv6 work differently here; e.g. netfilter must be used
  564. to control which interfaces may forward packets and which not.
  565. This also sets all interfaces' Host/Router setting
  566. 'forwarding' to the specified value. See below for details.
  567. This referred to as global forwarding.
  568. conf/interface/*:
  569. Change special settings per interface.
  570. The functional behaviour for certain settings is different
  571. depending on whether local forwarding is enabled or not.
  572. accept_ra - BOOLEAN
  573. Accept Router Advertisements; autoconfigure using them.
  574. Functional default: enabled if local forwarding is disabled.
  575. disabled if local forwarding is enabled.
  576. accept_redirects - BOOLEAN
  577. Accept Redirects.
  578. Functional default: enabled if local forwarding is disabled.
  579. disabled if local forwarding is enabled.
  580. autoconf - BOOLEAN
  581. Autoconfigure addresses using Prefix Information in Router
  582. Advertisements.
  583. Functional default: enabled if accept_ra is enabled.
  584. disabled if accept_ra is disabled.
  585. dad_transmits - INTEGER
  586. The amount of Duplicate Address Detection probes to send.
  587. Default: 1
  588. forwarding - BOOLEAN
  589. Configure interface-specific Host/Router behaviour.
  590. Note: It is recommended to have the same setting on all
  591. interfaces; mixed router/host scenarios are rather uncommon.
  592. FALSE:
  593. By default, Host behaviour is assumed. This means:
  594. 1. IsRouter flag is not set in Neighbour Advertisements.
  595. 2. Router Solicitations are being sent when necessary.
  596. 3. If accept_ra is TRUE (default), accept Router
  597. Advertisements (and do autoconfiguration).
  598. 4. If accept_redirects is TRUE (default), accept Redirects.
  599. TRUE:
  600. If local forwarding is enabled, Router behaviour is assumed.
  601. This means exactly the reverse from the above:
  602. 1. IsRouter flag is set in Neighbour Advertisements.
  603. 2. Router Solicitations are not sent.
  604. 3. Router Advertisements are ignored.
  605. 4. Redirects are ignored.
  606. Default: FALSE if global forwarding is disabled (default),
  607. otherwise TRUE.
  608. hop_limit - INTEGER
  609. Default Hop Limit to set.
  610. Default: 64
  611. mtu - INTEGER
  612. Default Maximum Transfer Unit
  613. Default: 1280 (IPv6 required minimum)
  614. router_solicitation_delay - INTEGER
  615. Number of seconds to wait after interface is brought up
  616. before sending Router Solicitations.
  617. Default: 1
  618. router_solicitation_interval - INTEGER
  619. Number of seconds to wait between Router Solicitations.
  620. Default: 4
  621. router_solicitations - INTEGER
  622. Number of Router Solicitations to send until assuming no
  623. routers are present.
  624. Default: 3
  625. use_tempaddr - INTEGER
  626. Preference for Privacy Extensions (RFC3041).
  627. <= 0 : disable Privacy Extensions
  628. == 1 : enable Privacy Extensions, but prefer public
  629. addresses over temporary addresses.
  630. > 1 : enable Privacy Extensions and prefer temporary
  631. addresses over public addresses.
  632. Default: 0 (for most devices)
  633. -1 (for point-to-point devices and loopback devices)
  634. temp_valid_lft - INTEGER
  635. valid lifetime (in seconds) for temporary addresses.
  636. Default: 604800 (7 days)
  637. temp_prefered_lft - INTEGER
  638. Preferred lifetime (in seconds) for temporary addresses.
  639. Default: 86400 (1 day)
  640. max_desync_factor - INTEGER
  641. Maximum value for DESYNC_FACTOR, which is a random value
  642. that ensures that clients don't synchronize with each
  643. other and generate new addresses at exactly the same time.
  644. value is in seconds.
  645. Default: 600
  646. regen_max_retry - INTEGER
  647. Number of attempts before give up attempting to generate
  648. valid temporary addresses.
  649. Default: 5
  650. max_addresses - INTEGER
  651. Number of maximum addresses per interface. 0 disables limitation.
  652. It is recommended not set too large value (or 0) because it would
  653. be too easy way to crash kernel to allow to create too much of
  654. autoconfigured addresses.
  655. Default: 16
  656. icmp/*:
  657. ratelimit - INTEGER
  658. Limit the maximal rates for sending ICMPv6 packets.
  659. 0 to disable any limiting, otherwise the maximal rate in jiffies(1)
  660. Default: 100
  661. IPv6 Update by:
  662. Pekka Savola <pekkas@netcore.fi>
  663. YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
  664. /proc/sys/net/bridge/* Variables:
  665. bridge-nf-call-arptables - BOOLEAN
  666. 1 : pass bridged ARP traffic to arptables' FORWARD chain.
  667. 0 : disable this.
  668. Default: 1
  669. bridge-nf-call-iptables - BOOLEAN
  670. 1 : pass bridged IPv4 traffic to iptables' chains.
  671. 0 : disable this.
  672. Default: 1
  673. bridge-nf-call-ip6tables - BOOLEAN
  674. 1 : pass bridged IPv6 traffic to ip6tables' chains.
  675. 0 : disable this.
  676. Default: 1
  677. bridge-nf-filter-vlan-tagged - BOOLEAN
  678. 1 : pass bridged vlan-tagged ARP/IP traffic to arptables/iptables.
  679. 0 : disable this.
  680. Default: 1
  681. UNDOCUMENTED:
  682. dev_weight FIXME
  683. discovery_slots FIXME
  684. discovery_timeout FIXME
  685. fast_poll_increase FIXME
  686. ip6_queue_maxlen FIXME
  687. lap_keepalive_time FIXME
  688. lo_cong FIXME
  689. max_baud_rate FIXME
  690. max_dgram_qlen FIXME
  691. max_noreply_time FIXME
  692. max_tx_data_size FIXME
  693. max_tx_window FIXME
  694. min_tx_turn_time FIXME
  695. mod_cong FIXME
  696. no_cong FIXME
  697. no_cong_thresh FIXME
  698. slot_timeout FIXME
  699. warn_noreply_time FIXME
  700. $Id: ip-sysctl.txt,v 1.20 2001/12/13 09:00:18 davem Exp $