Skip to content

Commit 37c0ce6

Browse files
committed
Tune sysctl.conf
1 parent 6aa5dee commit 37c0ce6

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

alpine/alpine-root/etc/sysctl.conf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
net.ipv4.ip_forward = 1
1414
# Disables IP dynaddr
1515
#net.ipv4.ip_dynaddr = 0
16-
# Disable ECN
17-
#net.ipv4.tcp_ecn = 0
1816
# Enables source route verification
1917
net.ipv4.conf.default.rp_filter = 1
2018
# Enable reverse path
@@ -27,6 +25,9 @@ net.ipv6.conf.all.accept_ra = 2
2725
net.ipv6.conf.all.accept_redirects = 1
2826
net.ipv6.conf.all.accept_source_route = 1
2927

28+
net.ipv4.ip_nonlocal_bind = 1
29+
net.ipv6.ip_nonlocal_bind = 1
30+
3031
# Enable SYN cookies (yum!)
3132
# http://cr.yp.to/syncookies.html
3233
#net.ipv4.tcp_syncookies = 1
@@ -60,16 +61,13 @@ net.ipv6.conf.all.accept_source_route = 1
6061
# UDP Port for lock manager
6162
#fs.nfs.nlm_udpport = 0
6263

63-
vm.swappiness=10
64-
vm.overcommit_memory=1
64+
vm.swappiness = 1
65+
vm.overcommit_memory = 1
6566

6667

6768

6869
# EXPERIMENTAL
6970

70-
# Disable ECN
71-
net.ipv4.tcp_ecn = 0
72-
7371
# Enable SYN cookies (yum!)
7472
# http://cr.yp.to/syncookies.html
7573
net.ipv4.tcp_syncookies = 1

0 commit comments

Comments
 (0)