开启防火墙虚拟机无法联网
rm -rf /etc/firewalld/zones/*
firewall-cmd --reload
firewall-cmd --add-port=22/tcp --permanent
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --add-port=5900-6500/tcp --permanent
firewall-cmd --add-port=2929/tcp --permanent
firewall-cmd --add-port=53/udp --permanent
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i br0 -j ACCEPT
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o br0 -j ACCEPT
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i br1 -j ACCEPT
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o br1 -j ACCEPT
firewall-cmd --reload
文档更新时间: 2018-12-27 13:14 作者:admin