试过,绿云和do都是一样,pve开小鸡流量消耗是双倍
吉林省网友说:把网桥的流量也算上了吧 不过加了加 对不上啊
安徽省网友说:也不知道啥情况。很苦恼
浙江省网友说:过外网网卡了 绿云和do都是计算网卡流量
河北省网友说:这样不好解决吧?
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5)
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug enp4s0
iface enp4s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 111.1.11.130
netmask 255.255.255.248
gateway 111.1.11.129
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up bash /root/iptables.config.sh
post-up iptables -t nat -A POSTROUTING -s ‘192.168.1.0/24’ -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ‘192.168.1.0/24’ -o vmbr0 -j MASQUERADE