OpenVPN - how to find who's connected?
John Abreau
jabr at blu.org
Mon Nov 7 21:38:44 EST 2005
John Abreau wrote:
> Is there an easy way to determine who's currently connected to an
> OpenVPN server when it's using udp? I've been looking through the
> openvpn.log file, but it's not clear what corresponds to a connection
> starting and a connection stopping. I spent an hour searching on google
> for something useful, but ame up empty.
>
> There is an occasional "Peer Connection Initiated" that looked relevant
> at first, but then it turned out these appeared at unpredictable
> intervals for a while, then stopped appearing entirely, for a connection
> that was on continuously over the weekend.
>
> With the pptp vpn I'm replacing, I could look at the tun* devices with
> ifconfig to determine who was currently using the vpn. With OpenVPN, I
> have a single tap0 device which tells me nothing about the individual
> clients.
Never mind; turns out openvpn-status.log has that information. I had
done a tail of that file to check it, on the assumption that it was
appended to like normal log files, and when I saw Nov 3, I then assumed
it wasn't being appended to very often.
But it turns out the file is actually completely overwritten every
minute, and reflects exactly the information I'm looking for.
--
John Abreau / Executive Director, Boston Linux & Unix
ICQ 28611923 / AIM abreauj / JABBER jabr at jabber.org / YAHOO abreauj
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jabr.vcf
Type: text/x-vcard
Size: 175 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20051107/6c106e88/attachment.vcf>
More information about the Discuss
mailing list