# 禁用 IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

# 开启 IPv4 转发
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_syncookies = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_tw_recycle = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_tw_reuse = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_fin_timeout = 30

# 开启 IPv4 连接跟踪
net.ipv4.tcp_keepalive_time = 1200

# 开启 IPv4 连接跟踪
net.ipv4.ip_local_port_range = 1024 65535

# 开启 IPv4 连接跟踪
net.ipv4.tcp_max_syn_backlog = 8192

# 开启 IPv4 连接跟踪
net.ipv4.tcp_max_tw_buckets = 5000

# 开启 IPv4 连接跟踪
net.ipv4.tcp_max_orphans = 32768

# 开启 IPv4 连接跟踪
net.ipv4.tcp_synack_retries = 2

# 开启 IPv4 连接跟踪
net.ipv4.tcp_syn_retries = 2

# 开启 IPv4 连接跟踪
net.ipv4.tcp_synflood_protect = 1000

# 开启 IPv4 连接跟踪
net.ipv4.tcp_timestamps = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_window_scaling = 1

# 开启 IPv4 连接跟踪
net.ipv4.tcp_rmem = 4096 87380 4194304