|
From: Gert D. <ge...@gr...> - 2025-12-12 13:11:09
|
Hi,
On Fri, Nov 28, 2025 at 06:16:29PM +0000, Peter Davis via Openvpn-users wrote:
> I want to know how much bandwidth each client is using. What tool would be useful for this? For example, the following users are connected to my OpenVPN server:
>
> Virtual Address,Common Name,Real Address,Last Ref
> 10.10.0.12,USER1,X.X.X.X:11975,2025-11-28 21:28:41
> 10.10.0.2,USER2,X.X.X.X:55645,2025-11-28 21:28:41
> 10.10.0.7,USER3,X.X.X.X:12564,2025-11-28 21:28:41
> 10.10.0.11,USER4,X.X.X.X:22152,2025-11-28 21:28:34
> 10.10.0.3,USER5,X.X.X.X:58136,2025-11-28 21:28:39
> 10.10.0.8,USER6,X.X.X.X:26612,2025-11-28 21:28:41
>
> I need a program that tells me how much bandwidth the IP address 10.10.0.12 is using, for example.
the stats files have per-client counters, you just need to look in the
right place:
$ cat tap-udp-p2mp/openvpn-status.log
OpenVPN CLIENT LIST
Updated,2025-12-12 14:07:38
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
freebsd-74-amd64,udp6:194.97.140.3:58397,399280,1475352,2025-12-12 05:42:12
freebsd-11-amd64,udp6:[2001:608:0:814::f000:16]:13481,1334688,1339527,2025-12-12 05:42:12
"Bytes Received, Bytes Sent"
OpenVPN does not keep track of per-IP traffic, only per-client. If you
need per-ip and can't map that yourself (or you have a larger client subnet
behind one client, and need more granular statistics) you need to find
a solution for your - unknown to us - operating system that can do such
statistics based on network traffic.
A proper google term could be "find out network traffic by IP".
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany ge...@gr...
|