Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Created November 20, 2012 12:55
Show Gist options
  • Save ajohnstone/4117768 to your computer and use it in GitHub Desktop.
Save ajohnstone/4117768 to your computer and use it in GitHub Desktop.
# Uncomment the next line to enable TCP/IP SYN cookies
net.ipv4.tcp_syncookies=0
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_syn_backlog = 10240
net.ipv4.tcp_synack_retries = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment