jotyGill / openpyn-nordvpn

Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
GNU General Public License v3.0
628 stars 114 forks source link

Running openpyn while another openvpn connection is active breaks first connection #175

Open losdmi opened 6 years ago

losdmi commented 6 years ago

I have vpn connection described in /etc/openvpn/client.conf which automatically connects on system's start up.

When I am running openpyn fr to connect to NordVPN, my first connection breaks and no longer available until I run sudo service openvpn restart. After that both connections (my first and openpyn's) are seem to work well with each other.

Is it possible to not break another connection while running openpyn?

jotyGill commented 6 years ago

I have never used 2 openvpn connections at a given time. could you please elaborate on your setup and how it's useful. while starting openpyn kills (suppose to) any running or stale openvpn connection, otherwise it would be trying to run multiple copies when fail-overs happen.

losdmi commented 6 years ago

My main connection described in /etc/openvpn/client.conf is connection to my private network on my job. I use it to get access to inner resources of my company.

It seems like here after killing all openvpn processes and starting your own, openvpn client reads configuration only from specified file, and ignores default config file in /etc/openvpn/client.conf

Is it possible to implement this behavior: while starting openpyn somehow find only process, which was started by previous openpyn and kill only this process and don’t kill other running openvpn processes?