Re: Bandwidth monitoring based on IP address

Gert Doering <[email protected]> Fri, 12 Dec 2025 14:10:56 +0100
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
--===============7218039793985863856==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="0Lpw8CabygrRP/mX"
Content-Disposition: inline


--0Lpw8CabygrRP/mX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

On Fri, Nov 28, 2025 at 06:16:29PM +0000, Peter Davis via Openvpn-users wro=
te:
> I want to know how much bandwidth each client is using. What tool would b=
e useful for this? For example, the following users are connected to my Ope=
nVPN server:
>=20
> 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
>=20
> 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=20
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

--=20
"If was one thing all people took for granted, was conviction that if you=
=20
 feed honest figures into a computer, honest figures come out. Never doubte=
d=20
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistre=
ss

Gert Doering - Munich, Germany                             [email protected]=
=2Ede

--0Lpw8CabygrRP/mX
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCAAdFiEEti5qK05WVwt73GvgHYKe/spWKBIFAmk8FF8ACgkQHYKe/spW
KBLgNwwAidK+ZnVa3sRwzMpGT1K4gHQSQYefiTLpWgNs4sy284hgPenogjYXUEx3
MWs2tTvKYpKUGta/0CSLLXosnvrRTinIQwaZQUdIV3FfhMcYu/op1k25qQcP1NwV
RG2Sa8P+1zwiwco45xWmtvZQF23zgyZpaJR31Cef6fd8jVBuCV4MdhoVsxstSMt1
tgf5PyDOVwQy0C/SANu3ktlt5xMvAz/h8Q4lHiZD6bMOfx2r3H+FoSAp41uBua0g
ZIeZVd6tpmGAGMBUMp3ATUynbi9eAaGF59vwdS9EKtXrARX27ua0LUfP/Ua31lZw
ZGf0uWcsSxQN0r5Qe5ZZoQtmI74GeTICfbAyPmjP7a0sfSSI1257tqZdBiQfsUhu
8HMl8aMmHnLm8hbML7qsaaD1VYoqLUCPXA6A101oj0MA888cn+sfFapSawErT+uJ
ziNZ/ApiM69nA1nGWjbp2aRgst5LsEzPUVNInVAAUgClzSnGWNudHSiYdmf0Zp4g
Ck7NfQaU
=Rah+
-----END PGP SIGNATURE-----

--0Lpw8CabygrRP/mX--


--===============7218039793985863856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7218039793985863856==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

--===============7218039793985863856==--