Hi,
I'm trying to setup a openvn server on my D-Link DIR-878 A1, OpenWrt 21.02.2.
I was able to build my keys, and got to the point where VPN is running and I can connect to it from a remote windows machine. But, tun0 doesn't get any ip from VPN, so it's useless.
On my last router: v 15.05.1, there was a vpn interface. I tried to set this up manually, like I did the last time, using my scripts from my previous router (openvpn, network, firewall).
As it is now, I'm able to connect to my VPN from outside, I get the correct IP, but I can't ping anything, not even the router itself.
Before, the router's VPN ip was 192.168.8.1. Is it not like that anymore with the newer openWRT version?
when I'm connected to my vpn server, I can ping the 192.168.8.1 created by the openvpn server setup scripts from the link to the wiki page I provided earlier. The router's real LAN IP is 192.168.1.1.
I can ping and bring up LuCI using either LAN IP address.
Sorry, I can't comment on your scripts you created for such an old version of OpenWrt.
The wiki pages for setting up openvpn client and server have evolved over the last few years. Your issue is probably firewall related imho.
All I can suggest is you back up your current settings if you wish to return to try and use them later.
Clear all openwrt settings and set up openvpn server from scratch using the instructions from the wiki page. No reason why you can't use keys you have already generated.
The problem is some place else, I just can't figure it out.
I can't ping in any direction. Either from the router to the connected windows client, or vice versa.
Windows machine on 'ipconfig' shows it got the vpn ip and subnetmask (255.255.255.0), from /etc/openvpn/clients.