Random C appears in openvpn-status.log

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
towerful
OpenVpn Newbie
Posts: 2
Joined: Sun Jan 06, 2019 4:22 pm

Random C appears in openvpn-status.log

Post by towerful » Sun Jan 06, 2019 4:34 pm

Hello,
I'm using the python lib openvpn-status ( https://pypi.org/project/openvpn-status/ ) to monitor and report connected clients.
I'm using routed lans on a tun setup. Everything is working correctly.
Routed lans are as follows:
10.10.1.0/24 with the client being 10.10.1.1
10.10.2.0/24 with the client being 10.10.2.1

However, it seems that on occasion a 'C' is appended to one of the entries in the routing table.
The entry is clearly the VPN client, however other VPN clients arent showing up in the routing table.

The C is breaking the python script, as its no longer a recognised ipv4 address.
Is there a way to disable this? Or at the very least, consistently show all routed clients?

Routing table from openvpn-status.log, with
10.10.1.1C (2nd last entry) being the issue.

Code: Select all

ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
10.8.0.2,Site1,XX.XX.XX.XX:35123,Sun Jan  6 15:55:29 2019
10.10.1.0/24,Site1,XX.XX.XX.XX:35123,Sun Jan  6 15:46:56 2019
10.8.0.3,Site2,XX.XX.XX.XX:55264,Sun Jan  6 16:16:23 2019
10.10.1.1C,Site1,XX.XX.XX.XX:35123,Sun Jan  6 16:16:05 2019
10.10.2.0/24,Site2,XX.XX.XX.XX:55264,Sun Jan  6 16:03:46 2019
Edited to add:

OpenVPN version:
OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 5 2018
library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08

Running on Ubuntu 18.04.1 lts

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Random C appears in openvpn-status.log

Post by TinCanTech » Sun Jan 06, 2019 4:44 pm

We would need your full configuration in order to verify this.

viewtopic.php?f=30&t=22603#p68963

You can omit the log files for now.

towerful
OpenVpn Newbie
Posts: 2
Joined: Sun Jan 06, 2019 4:22 pm

Re: Random C appears in openvpn-status.log

Post by towerful » Sun Jan 06, 2019 7:03 pm

Hello,
I can't seem to post my logs due to a forum timeout/error

Connecting more clients to my remote subnets, it seems the C stands for client as further routes to these clients appeared with the C appended.

I've dropped the python script library, and used one based off of https://github.com/pwldp/ovpn-log-parser
Its for a node-red dashboard, so JS means it can all be native to node-red.

So this is no longer an issue for me

Post Reply