i want to limit 1GB per ip then drop until i reconnect him
my custumers exceed 10GB per day each ip
quota is calculated in bytes 1GB = 1073741824 Bytes
i search for these commands and i am doubt about it
- Código: Selecionar todos
iptables -t mangle -A PREROUTING -s 10.0.0.50 -p tcp -m quota --quota 1073741824 -j ACCEPT
iptables -t mangle -A PREROUTING -s 10.0.0.50 -p udp -m quota --quota 1073741824 -j ACCEPT
iptables -t mangle -A PREROUTING -s 10.0.0.50 -p tcp -j DROP
iptables -t mangle -A PREROUTING -s 10.0.0.50 -p udp -j DROP
i tested on bfw 2.31.10
addons
ipacc
easycaptive 2.17
BandwidthMonitor
i try these commands
but
i think
-t mangle -A PREROUTING
not the right place to quota to work ok
i mean some thing prevent quota to calculate all traffic
please help