|
发表于 2021-5-10 09:39:30
|
显示全部楼层
桥接的话,我以前是这样配的,再搭配个dhcp自动给小鸡分配内网IP
- auto vmbr0
- iface vmbr0 inet static
- address 10.0.0.1/24
- bridge-ports none
- bridge-stp off
- bridge-fd 0
- post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/24' -o ens1f0 -j MASQUERADE
- post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
- post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o ens1f0 -j MASQUERADE
- post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
- #LAN
复制代码
|
|