Page 1 of 1

Two feature questions before posting as Feature Requests

Posted: Fri Jul 08, 2016 8:12 pm
by coastalcruiser
1) If you have the router configured to "Shut down all internet access" when a user reaches their quota, the user is taken to a gargoyle login page.

My preference would be that the user be taken to a configurable URL, hopefully (but optionally) with the ability to display the user's quota.

I inquired about this a few years ago, and I think the answer was no, gargoyle did not allow configuring a landing page when quota was hit. Any change their?

(all my gargoyle routers are on 1.8.1)

2) When a user reaches their maximum quota, the "Quota usage" page reads 100%. In case where a users bandwidth is simply throttled when the quota is reached, it would be preferable to have the counter continue to accumulate usage.

So for example as usage continued at slower speeds the counter would increment to 110%, 120%, and so forth. (I'm pretty sure this one needs to be a feature request).

thanx
jim

Re: Two feature questions before posting as Feature Requests

Posted: Fri Jul 08, 2016 8:20 pm
by coastalcruiser
Perhaps the 1.9.1 FW, with the ability to show actual usage instead of % would be the answer to my #2 ??

Re: Two feature questions before posting as Feature Requests

Posted: Tue Jul 12, 2016 6:14 am
by Louisk
i am also curious if someone has managed this.
I'm trying to figure out how to display quota usage per user on a custom page on my own domain so user can see their quote usage without having to connect to the gateway

Re: Two feature questions before posting as Feature Requests

Posted: Tue Jul 12, 2016 6:50 am
by Lantis
Nothing stoppin you from exporting he data to a server for whatever purpose you like.

Re: Two feature questions before posting as Feature Requests

Posted: Tue Jul 12, 2016 7:39 am
by Louisk
Thanks @Lantis.
that's exactly what i'm trying to do.
i see the landing page prints data from local_quotas; but source output is already a printed function.

what is the location of the actual script that does the tally?

Re: Two feature questions before posting as Feature Requests

Posted: Tue Jul 12, 2016 8:03 am
by Lantis
It's not really a script it's more a part of the firewall.
You could just pipe the output of print_quotas to a file/server on an as needed/CRON basis?

Re: Two feature questions before posting as Feature Requests

Posted: Wed Jul 13, 2016 7:50 am
by Louisk
i'll work on figuring it out and post a solution. seen this question a few times in the forum.

Re: Two feature questions before posting as Feature Requests

Posted: Wed Jul 13, 2016 9:55 am
by Louisk
in the quota_usage.sh file
would it be correct to modify:

<script>
<!--
<%
print_quotas
%>

//-->
</script>

TO:

<script>
<!--
<%
print_quotas > /tmp/file.txt
%>

//-->
</script>

?

if so

Would it be further correct to redirect that output to attached usb storage?

i.e.

<script>
<!--
<%
print_quotas > /dev/sda1/tmp/file.txt
%>

//-->
</script>

?

Re: Two feature questions before posting as Feature Requests

Posted: Wed Jul 13, 2016 5:02 pm
by Lantis
You could do that, but you'll make that page not work properly.

Look up "crontab", and see about using the exact same command, but on a semi regular basis (say once every 10 minutes?)