Tracking website usage similar to data quotas

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

Moderator: Moderators

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

Re: Tracking website usage similar to data quotas

Post by Lantis »

I don't use squid sorry.
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.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Tracking website usage similar to data quotas

Post by agrohe21 »

i think I can get good information from the /proc/net/nf_conntrack file.

However, I notice that the nf_conntrack file only has IPs but but webmon_recent_domains file has resolved DNS names. How do you get those domains resolved from IPs? If I just have IPs it wont mean as much as with domains.
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

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

Re: Tracking website usage similar to data quotas

Post by Lantis »

webmon pulls the domains from the webpackets themselves.
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.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Tracking website usage similar to data quotas

Post by agrohe21 »

sneaky. any way to tap into that pull process and or piggy back it? might have to try squid again.
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

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

Re: Tracking website usage similar to data quotas

Post by Lantis »

Not really as it occurs in kernel space.
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.

sefas
Posts: 9
Joined: Mon Jan 27, 2014 9:43 am

Re: Tracking website usage similar to data quotas

Post by sefas »

Lantis wrote:
Sat Feb 29, 2020 6:31 am
Not really as it occurs in kernel space.
Is this feature possible for xiaomi mi router 3g table and output how much quota websites have spent

thanks

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

Re: Tracking website usage similar to data quotas

Post by Lantis »

Yes the device is supported.
No, as previously discussed in this thread, it does not measure how much data has been used on each website.

It can indicate which websites have been visited, and how much traffic has been used.
It does not correlate the two together.
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.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Tracking website usage similar to data quotas

Post by agrohe21 »

I have a script solution in place that dumps nf_conntrack and then calls nslookup for each of the IPs to get domain name. Not perfect but is generally good enough to spot over usage of Netflix.
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

MikeTK
Posts: 1
Joined: Thu Dec 30, 2021 9:52 am

Re: Tracking website usage similar to data quotas

Post by MikeTK »

I use it for Netflix and it works fine for me!

Post Reply