在宿主机上执行: 修改/etc/sysctl.conf,加入
net.ipv4.tcp_syncookies = 1 net.core.somaxconn = 1024 net.ipv4.tcp_fin_timeout = 10 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 0 net.ipv4.ip_forward = 1 执行sysctl -p