永久解决方法:
在/etc/sysctl.conf中添加:
net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1
执行sysctl -p 时刷新
sysctl -p
如果出现 缺少文件的现象
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: 没有那个文件或目录
则确认是否驱动加载完成
#驱动加载 modprobe br_netfilter bridge
参考:https://blog.csdn.net/qq_47904804/article/details/131030273
标签:bridge,nf,sys,call,net,proc From: https://www.cnblogs.com/personblog/p/17788348.html