I’m quite new to setting up routers and VPN’s so please bear with me on this one.
My goal is to make a VyOS setup where if I’m connected to a certain segment of the network have all public network traffic routed over a VPN provider. I opted to use NordVPN as I already have a subscription to it, and they have a guide on setting up a similar thing in PfSense
I’m currently running into the issue where setting up the site-to-site
mode in OpenVPN, VyOS complains that a tls cert-file
and tls key-file
are required, however I do not have access to these as NordVPN only provides a username and password.
I tried contacting NordVPN’s support, however they just told me to “install the NordVPN software” over my VyOS instance (which completely screws up every single other configuration on the system, so that’s a dead end for me).
My config is as follows:
interfaces {
openvpn vtun0 {
description "OpenVPN tunnel to NordVPN"
local-address 10.1.4.1
remote-address 10.2.4.1
remote-host REDACTED
remote-port 1194
authentication {
username REDACTED
password REDACTED
}
shared-secret-key-file "/nordvpn/auth.key"
mode site-to-site
hash sha512
persistent-tunnel
protocol udp
ipv6 {
disable-forwarding
}
openvpn-option "allow-compression no"
openvpn-option "persist-key"
openvpn-option "persist-tun"
openvpn-option "nobind"
openvpn-option "cipher AES-256-CBC"
openvpn-option "script-security 2"
openvpn-option "route-method exe"
openvpn-option "key-direction 1"
openvpn-option "route-delay 2"
openvpn-option "mssfix 1450"
openvpn-option "keysize 256"
openvpn-option "sndbuf 524288"
openvpn-option "rcvbuf 524288"
openvpn-option "fast-io"
openvpn-option "verb 3"
openvpn-option "auth-retry nointeract"
openvpn-option "route-nopull"
openvpn-option "tun-mtu 1532"
}
}
}
I found two other instances of people experiencing the same issue as I am:
- Translate OpenVPN config file - #4 by Viacheslav
- https://www.reddit.com/r/vyos/comments/j63ct1/vyos_nordvpn_openvpn_config_problem/
Could anyone point me at what I’m doing wrong?
Thanks