Skip to content

Instantly share code, notes, and snippets.

@yp2800
Created February 13, 2014 03:07
Show Gist options
  • Save yp2800/8969040 to your computer and use it in GitHub Desktop.
Save yp2800/8969040 to your computer and use it in GitHub Desktop.
sysctl.conf
/etc/sysctl.conf
kernel.ctrl-alt-del=1
kernel.sysrq=0
kernel.panic=10
kernel.core_pattern=/dev/null
kernel.shmmax=262324224
fs.file-max=128000
net.core.wmem_default=200100
net.core.rmem_default=200100
net.core.wmem_max=3202200
net.core.rmem_max=3202200
net.core.netdev_max_backlog=3202200
net.core.somaxconn=3202200
net.ipv4.tcp_no_metrics_save=1
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.icmp_ignore_bogus_error_responses=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_sack=1
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_fin_timeout=10
net.ipv4.tcp_keepalive_probes=4
net.ipv4.tcp_keepalive_time=300
net.ipv4.tcp_keepalive_intvl=15
net.ipv4.tcp_syncookies=0
net.ipv4.tcp_max_syn_backlog=3202200
net.ipv4.tcp_retries1=15
net.ipv4.tcp_retries2=15
net.ipv4.tcp_syn_retries=15
net.ipv4.tcp_synack_retries=15
net.ipv4.tcp_retrans_collapse=0
net.ipv4.tcp_orphan_retries=15
net.ipv4.tcp_max_orphans=3202200
net.ipv4.tcp_rfc1337=1
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_max_tw_buckets=3202200
net.ipv4.tcp_wmem=4096 200100 3202200
net.ipv4.tcp_rmem=4096 200100 3202200
net.ipv4.ip_local_port_range=1024 65535
net.ipv4.ipfrag_time=15
net.ipv4.ipfrag_high_thresh=3202200
net.ipv4.ipfrag_low_thresh=200100
net.ipv4.tcp_congestion_control=cubic
net.ipv4.netfilter.ip_conntrack_max=64044
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=360
net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_recv=13
net.ipv4.netfilter.ip_conntrack_tcp_timeout_fin_wait=60
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait=60
net.ipv4.route.gc_elasticity=5
net.ipv4.conf.default.secure_redirects=1
net.ipv4.conf.default.accept_redirects=0
net.ipv4.conf.all.secure_redirects=1
net.ipv4.conf.all.accept_redirects=0
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv4.conf.default.accept_source_route=0
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.default.send_redirects=0
net.ipv4.conf.all.accept_source_route=0
net.ipv4.conf.all.rp_filter=1
net.ipv4.conf.all.send_redirects=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment