修改 /etc/sysctl.conf

net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

 

vim  /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 

改 GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"