#!/bin/bash
iptables -F quota33g
iptables -N quota33g
iptables -A quota33g -m quota --quota 35433480192 -j RETURN
iptables -A quota33g -d <bastion_server_ip> -j ACCEPT
iptables -A quota33g -j DROP
iptables -F OUTPUT
iptables -P OUTPUT ACCEPT
iptables -A OUTPUT -o eth0+ -j quota33g
echo done
0 0 * * * /sbin/iptables -Z quota33g