Theme_voucher quota down

I setup

And it is working in general.
I need to know how to set max download size to 100MB so that
when client a client exceeds 100mb it should be
deauthenticated and voucher code should becomes invalid.

what I do

  1. at vouchers.txt file I set values for test as ==> 8YAN-PSY9,1024 ,1024 ,10000 ,8000 ,1440 ,0 I notice that when I consumes 10mb the client logged out but voucher code still valid and you can login again with it.

  2. I change Fair Usage Policy Throttle Rate in configuration file : to
    option fup_upload_throttle_rate '0'
    option fup_download_throttle_rate '0'
    so that a client exceeds 10mb should be deauthenticated
    but nothing changed

What I need
set quota down value so that If a client exceeds 10mb should be deauthenticated and voucher code should becomes invalid

And this is an OpenWRT question how?

1 Like

It is a question about an OpenWrt package, but the OP has chosen a bad title for his post.

@steen
Be aware that theme_voucher is a community written example of how a voucher system could be implemented. It is not intended to be used "as is" in a production system. It is not officially supported by the OpenNDS Project.

As such it is really up to you to read and fully understand the code before modifying it for your own use.

Asking on this forum is very unlikely to help you.

You could try opening an issue on Github to see if any community members are prepared to help, but first you need to try to understand in more detail how it works.

1 Like