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
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