rishuinfinity / InternetSpeedMonitor

A Gnome Extension to show Internet Upload Speed, Download Speed and Daily Data Used in a minimal fashion.
GNU General Public License v3.0
18 stars 8 forks source link

Using Wireguard VPN shows double values #3

Open afzl-wtu opened 2 years ago

afzl-wtu commented 2 years ago

I use wireguard vpn on regualar basis. But whenever I turn it on InternetSpeedMonitor shows Double of the actual download upload speed of the connection. image Please fix this issue or add an option to select network interface to monitor in settings.

rishuinfinity commented 2 years ago

Hmm you raise a fair point, and I guess this would happen with most of the internet speed check services. The thing is while using a VPN a part of your internet is being used to communicate with the servers of your service provider. Hence the slow browsing speed. The speed shown is calculated by total bytes of information sent and received by your system. Since this information includes both connection to VPN server and your browsing data, you get the speed shown to be a little higher than the speed with which you browse.

Still I dont think the discrepency should be as high as double, they usully are just a few percent higher. There needs to be some testing if this happens with all VPN providers. Still nothing much I can do in this situation.

Also I don't understand why or how you would like to monitor individual network interfaces.

afzl-wtu commented 2 years ago

Still I dont think the discrepency should be as high as double, they usully are just a few percent higher. There needs to be some testing if this happens with all VPN providers. Still nothing much I can do in this situation.

I can confirm the speed shown is double by actual download upload speed and not only few extra bytes.

Also I don't understand why or how you would like to monitor individual network interfaces.

If we monitor individual interface it will show the exact amount of traffic on that interface only like my wifi card. But what happening now is it is showing Total speed of My Wifi Card + Vpn virtual interface.

afzl-wtu commented 2 years ago

Here is the proof: Without vpn and then vpn and again without vpn: animation

rishuinfinity commented 2 years ago

okay, can you please send me a screenshot or text present in /proc/net/dev and preferably while you are on the wireguard vpn

afzl-wtu commented 2 years ago

okay, can you please send me a screenshot or text present in /proc/net/dev and preferably while you are on the wireguard vpn

Without VPN: Screenshot from 2022-05-20 12-28-29

WIth VPN(afzl Wireguard): image

tazihad commented 2 years ago

same problem with cloudflare warp.

Palatis commented 1 year ago

add ^wg[0-9]+ to filter list https://github.com/rishuinfinity/InternetSpeedMonitor/blob/ce4c2a983b94a87aab11c33c7aa3ab8fbcc4b0ef/src/extension.js#L46-L53