#修改/etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
#修改完后保存
sysctl -p
firewall-cmd --permanent --add-masquerade
#vmbr0是内网网卡
firewall-cmd --permanent --zone=trusted --add-interface=vmbr0
firewall-cmd --reload