openvpn

Hi, i had this problem when i connecting windows to the server mikrotik :
" There is a problem in your selection of --ifconfig endpoints [local=10.1.40.30, remote=10.1.40.40]. 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 "

Error explains the problem clearly: remote and local addresses are not from the same /30 subnet

I am having the same problem. Yes, the error is clear, however how do you configure MT to hand out the subnets properly? If you set up a dhcp pool the addresses will be linear and across the /30. If you set up Local/Remote addresses for each client then you have to mess with route-up entries for each client to establish the routing. The ovpn server doesn’t seem to have configuration options to dole out the /30 subnets for each client that seems to be required for windows hosts.

Help!

Apologies for replying to the aging topic, but I wanted to chime in with the solution (so the next guy who is googling can figure it out sooner!)

If you’re getting this error, then you’re probably following the wiki article which says that in the PPP profile, you should set the local address to an IP, and the remote address to your IP pool. This is incorrect. Set both your local address and your remote address to the IP pool, and the MT openVPN stack will suddenly address clients like a normal OpenVPN server does.