How to monitor an OpenVPN connection

7,502

You need to create an app to communicate with OpenVPN process via the management interface.

Here is the link to OpenVPN management interface.

Share:
7,502
Enrico Tuvera Jr
Author by

Enrico Tuvera Jr

SKILLS: Primarily a Python developer, but I've messed around with other programming languages. My specialty is back-end web development with frameworks like Django and Flask. INTERESTS: Learning new tech, video games.

Updated on September 18, 2022

Comments

  • Enrico Tuvera Jr
    Enrico Tuvera Jr over 1 year

    I'm connecting to VPN service via the command line:

    sudo openvpn --config-file <.....> --auth-user-pass <.....>
    

    But in doing so I don't have a convenient way to monitor the connection. Specifically, I'd like some way to easily verify that my VPN is connected and maybe even lock outgoing traffic if OpenVPN dies.

    I can't do this through the network manager because DNS is leaking and network-manager is apparently the problem, and I can't use the provider's Linux app because it apparently inserts ip routes that screw with Docker and Docker-Compose.

    Any help at all would be appreciated.

    On Ubuntu 16.04

  • Enrico Tuvera Jr
    Enrico Tuvera Jr about 6 years
    welp. Guess that's what I gotta do then :-|