Skip to content

Instantly share code, notes, and snippets.

@tru2dagame
Created April 20, 2018 05:59
Show Gist options
  • Save tru2dagame/c91a5fe83e4d23b402ba652c32e357d9 to your computer and use it in GitHub Desktop.
Save tru2dagame/c91a5fe83e4d23b402ba652c32e357d9 to your computer and use it in GitHub Desktop.
sysctl -p
sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.all.arp_notify = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.netfilter.nf_conntrack_max = 1000000
kernel.unknown_nmi_panic = 0
kernel.sysrq = 0
fs.file-max = 1000000
vm.swappiness = 10
fs.inotify.max_user_watches = 10000000
net.core.wmem_max = 327679
net.core.rmem_max = 327679
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 5000    65000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment