Two feature questions before posting as Feature Requests

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
coastalcruiser
Posts: 38
Joined: Fri Feb 17, 2012 5:51 pm

Two feature questions before posting as Feature Requests

Post 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

coastalcruiser
Posts: 38
Joined: Fri Feb 17, 2012 5:51 pm

Re: Two feature questions before posting as Feature Requests

Post by coastalcruiser »

Perhaps the 1.9.1 FW, with the ability to show actual usage instead of % would be the answer to my #2 ??

User avatar
Louisk
Posts: 8
Joined: Mon Apr 04, 2016 10:16 am

Re: Two feature questions before posting as Feature Requests

Post 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
2015 Tp-Link Archer C7 V2 - Old Chipset
2016 Tp-Link Archer C7 V2 - NewChipset

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Two feature questions before posting as Feature Requests

Post by Lantis »

Nothing stoppin you from exporting he data to a server for whatever purpose you like.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
Louisk
Posts: 8
Joined: Mon Apr 04, 2016 10:16 am

Re: Two feature questions before posting as Feature Requests

Post 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?
2015 Tp-Link Archer C7 V2 - Old Chipset
2016 Tp-Link Archer C7 V2 - NewChipset

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Two feature questions before posting as Feature Requests

Post 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?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
Louisk
Posts: 8
Joined: Mon Apr 04, 2016 10:16 am

Re: Two feature questions before posting as Feature Requests

Post by Louisk »

i'll work on figuring it out and post a solution. seen this question a few times in the forum.
2015 Tp-Link Archer C7 V2 - Old Chipset
2016 Tp-Link Archer C7 V2 - NewChipset

User avatar
Louisk
Posts: 8
Joined: Mon Apr 04, 2016 10:16 am

Re: Two feature questions before posting as Feature Requests

Post 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>

?
2015 Tp-Link Archer C7 V2 - Old Chipset
2016 Tp-Link Archer C7 V2 - NewChipset

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Two feature questions before posting as Feature Requests

Post 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?)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply