I'm trying to set up a VPN using a static key. Very simple server config from:
http://www.openmaniak.com/openvpn_tutorial.php#static and the official docs -
https://openvpn.net/community-resources/static-key-mini-howto/
Basically the Server Config is:
dev tun
topology subnet
secret /etc/openvpn/keys/static.key
ifconfig 10.8.0.1 10.8.0.2
[...]
But the server won't start, it's giving this error:
Error: ??? prefix is expected rather than "10.8.0.1/-1".
No idea what that means and googling didn't help, I'll just comment it out. And it works! Except now the client side is warning:
Sat Sep 05 15:48:24 2020 WARNING: 'ifconfig' is present in local config but missing in remote config, local='ifconfig 10.8.0.2 10.8.0.1'
Client has:
ifconfig 10.8.0.2 10.8.0.1
But if I comment out that line on the client, the client fails at parsing the config.
Any thoughts what's going on? Do I just leave the line in the client and ignore the clientside warning?