编辑文件
vi /etc/sysctl.conf
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
sysctl -p
同时检查这个文件
/etc/sysctl.d/11-br-netfilter.conf
可能有用:
iptables -t nat -A POSTROUTING -o br-lan -s 192.168.31.0/24 -d 192.168.31.0/24 -j MASQUERADE