I want a Windows client able to reach a remote Windows File Server.
I don’t need to use the RouterBoard as a Internet gateway.
This is the Windows OpenVPN config file:
client
proto tcp
dev tun
remote REMOTEIP
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
ns-cert-type server
tls-client
auth-user-pass auth.cfg
auth-nocache
verb 3
script-security 3
route 192.168.111.0 255.255.255.0
The error I get on the Windows client is:
There is a problem in your selection of --ifconfig endpoints [local=172.21.0.10, remote=172.21.0.254]. The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet. This is a limitation of --dev tun when used with the TAP-WIN32 driver. Try 'openvpn --show-valid-subnets' option for more info.
I used “route 192.168.111.0 255.255.255.0 172.21.0.1”
192.168.111.0 is the LAN subnet on the routerboard
172.21.0.1 is the local IP address for the VPN (the one configured in PPP → Pofiles as Local Address)