折腾了好一会儿,做个记录以备后用
firewall-cmd --permanent --direct --passthrough ipv6 -I FORWARD -i br0 -j ACCEPT
firewall-cmd --permanent --direct --passthrough ipv6 -I FORWARD -o br0 -j ACCEPT
firewall-cmd --reload
ip6tables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
ip6tables -A FORWARD -i br0 -j ACCEPT
echo -e 'net.ipv4.ip_forward = 1\nnet.ipv6.conf.all.forwarding = 1\nnet.ipv6.conf.br0.forwarding = 1\nnet.ipv6.conf.default.forwarding = 1\nnet.ipv6.conf.virbr0.disable_ipv6 = 0\nnet.ipv6.conf.all.proxy_ndp = 1' > /etc/sysctl.conf
echo 'IPV6FORWARDING=yes' >> /etc/sysconfig/network-scripts/ifcfg-br0
This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/1164.html