VPC : network usage, the first colomn is output, the second colome is input

This commit is contained in:
anthony 2012-06-29 17:39:04 -07:00
parent 0f06bc6643
commit adabf516fa
1 changed files with 3 additions and 3 deletions

View File

@ -70,10 +70,10 @@ desetup_dnsmasq() {
setup_usage() {
sudo iptables -t mangle -N NETWORK_STATS_$dev
sudo iptables -t mangle -A POSTROUTING -o $dev -j NETWORK_STATS_$dev
sudo iptables -t mangle -A POSTROUTING -s $subnet/$mask -j NETWORK_STATS_$dev
sudo iptables -t mangle -A NETWORK_STATS_$dev -o $dev ! -s $vpccidr
sudo iptables -t mangle -A NETWORK_STATS_$dev -s $subnet/$mask ! -d $vpccidr
sudo iptables -t mangle -A NETWORK_STATS_$dev -o $dev ! -s $vpccidr
sudo iptables -t mangle -A POSTROUTING -s $subnet/$mask -j NETWORK_STATS_$dev
sudo iptables -t mangle -A POSTROUTING -o $dev -j NETWORK_STATS_$dev
}
create_guest_network() {