bfw 2.x : limit 1GB per ip  [INACTIVE]

BrazilFW 2.xhelp discussions in English.

bfw 2.x : limit 1GB per ip

Mensagempor abdopcnet1 » Seg Dez 20, 2010 9:17 am

my link speed 4096kBit ~400GB per month
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 :!: :!: :-| :roll:

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 >| >| >| >| >| >| >| >| ^/ ^/
abdopcnet1
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor abdopcnet1 » Seg Dez 20, 2010 9:18 am

i also try
iptables -A INPUT -s 10.0.0.50 -d 0/0 -m quota --quota 10485760 -j ACCEPT
iptables -A INPUT -s 0/0 -d 10.0.0.50 -m quota --quota 10485760 -j ACCEPT
iptables -A INPUT -s 0/0 -d 10.0.0.50 -j DROP
iptables -A INPUT -s 10.0.0.50 -d 0/0 -j DROP
abdopcnet1
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor abdopcnet1 » Seg Dez 20, 2010 9:22 am

all commands working but not calculating 100%
abdopcnet1
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor abdopcnet1 » Seg Dez 20, 2010 11:25 am

commands
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

:o! :!: \/
abdopcnet1
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor abdopcnet1 » Qua Dez 29, 2010 1:58 pm

i need to limit ip to 1GByte ??
ipt_qouta module :!:
abdopcnet1
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor Duh » Qua Dez 29, 2010 3:01 pm

Friends,

how do I cololocar this rule, I 700 mega limit for each customer. Or can also be for the complete network at most 15 gigabytes?

Att

Duh
Duh
 

Re: bfw 2.x : limit 1GB per ip

Mensagempor M客¡NhØ §åMµ®å¡ » Qua Dez 29, 2010 10:43 pm

abdopcnet1 escreveu:i need to limit ip to 1GByte ??
ipt_qouta module :!:

Only by recompiling the kernel, iptables and this "library " (ipt_quota) you will be able to use these rules in BFW 2.31.10.
:o!

NOTE: Moving the topic to "BrazilFW 2.x - English Forum"...
Utilize a busca do fórum! Ela é sua amiga!
Não dou suporte via MP ou MSN para ninguém. Por favor, não insista. (Para que existe o fórum?)
É novo aqui? É "antigo" e mesmo assim está perdido?
Então leia:
Avatar do usuário
M客¡NhØ §åMµ®å¡
BFW Developer
BFW WebServer
BFW Beneméritos
BFW Add-on Developer
BFW Moderator
BFW Manager
 
Mensagens: 4111
Registrado em: Qua Abr 08, 2009 11:06 am
Localização: Rio de Janeiro
BrazilFW Box: Máquina Física
CPU: AMD Athlon(tm) II X2 215 Processor
Memória: 1 GiB / Link 50 MB
BFW 3.0.262 64 bits.
Serviços Ativos: DNS, DHCP
Addons: Samba, Pure-FTPd (no certified), BFW WebServer (no certified)


Voltar para BrazilFW 2.x - English Forum

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante