Status File "Connected Since" Weirdness

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
PeteToscano
OpenVpn Newbie
Posts: 1
Joined: Thu Mar 04, 2021 12:03 am

Status File "Connected Since" Weirdness

Post by PeteToscano » Thu Mar 04, 2021 12:26 am

Hello,

We run a few OpenVPN servers. I wrote a quick script that reads the CLIENT_LIST lines from the status files and lists out the users and gives some connection info. Part of that info is that it uses the "Connected Since" value, subtracts it from the current time, then prints out how long that user has been connected. I've noticed that sometimes this fails with the "Connected Since" value being in the future. My memory is a little fuzzy on this, but I don't believe that it's far in the future, maybe an hour or so. Right now, I'm looking at one that's about 20 minutes ahead. This doesn't happen a lot and doesn't seem to be specific to any user or client and seems to happen across all of our servers.

This is with OpenVPN 2.4.10, but goes back to 2.4.8. Has anyone else noticed this?

Thanks,
Pete

Post Reply