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

multiple subnets #269

Open twistedpolitiks opened 4 years ago

twistedpolitiks commented 4 years ago

First off, thank you for this awesome script/service! I was about to look for another VPN provider since NordVPN on linux is so broken.

Currently I am running a VM using openpyn on a 192.168.30.0/24 subnet and all is going well. I would like to be able to access the VM from a separate 192.168.1.0/24 subnet via ssh using port 22 but am unable to. I have tried setting up a json config with the --allow-config option with the following schema:

[
    {
        "port": 22,
        "protocol": "both",
        "allowed_ip_range": "192.168.1.0/24"
    }
]

This is the openpyn command I am using to set up the connection using the json file

sudo openpyn nl -f --allow-config /home/user/subnet-allow.json --p2p -t 40 -d

Is there anything I am missing to allow access from then second subnet?

norey commented 4 years ago

Why not add the 1.0/24 as a static route?