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