Hi, I want to run Openvpn as a client to my NordVPN account in my Thecus. So I only want my NAS to run the VPN, not to act as a server.
I put the NordVPN keys into a folder (/raid/module/OpenVPN/etc/keys/ovpn_tcp/)
If I ssh into my NAS this command starts the VPN:
raid/data/module/OpenVPN/sys/bin/openvpn /raid/module/OpenVPN/etc/keys/ovpn_tcp/nl161.nordvpn.com.utp.ovpn
Have to enter user/pass and it works. But want to use the start/stop/server scripts to automate instead having to ssh all times to get it working.
I made a user/pass file and got the .ovpn into the server.conf , see below.
Can anybody help me with the start/stop code to activate this?
client
dev tun
proto udp
remote 131.255.4.107 1194
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
explicit-exit-notify 3
remote-cert-tls server
#mute 10000
auth-user-pass /raid/module/OpenVPN/etc/config/nordvpnauth.txt
comp-lzo
verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>
-----BEGIN CERTIFICATE-----
<REMOVED FOR POSTING>
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
<REMOVED FOR POSTING>
-----END OpenVPN Static key V1-----