diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_netusage.sh b/patches/systemvm/debian/config/opt/cloud/bin/vpc_netusage.sh index b026eb4c2fe..9673b40a0d2 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_netusage.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_netusage.sh @@ -44,10 +44,10 @@ create_vpn_usage_rules () { iptables-save|grep "VPN_STATS_$ethDev" > /dev/null if [ $? -gt 0 ] then - iptables -N VPN_STATS_$ethDev > /dev/null; - iptables -I FORWARD -j VPN_STATS_$ethDev > /dev/null; - iptables -A VPN_STATS_$ethDev -i $ethDev -m mark --mark $vpninmark > /dev/null; - iptables -A VPN_STATS_$ethDev -o $ethDev -m mark --mark $vpnoutmark > /dev/null; + iptables -t mangle -N VPN_STATS_$ethDev > /dev/null; + iptables -t mangle -I FORWARD -j VPN_STATS_$ethDev > /dev/null; + iptables -t mangle -A VPN_STATS_$ethDev -i $ethDev -m mark --mark $vpninmark > /dev/null; + iptables -t mangle -A VPN_STATS_$ethDev -o $ethDev -m mark --mark $vpnoutmark > /dev/null; fi return $? }