I want to use openvpn server on Mikrotik with multiple Mikrotik routers as clients. How can I propagate and receive routes automatically on openvpn server? I don't want to use Linux machine as a server because my company have bought large quantity on Mikrotik routers and I want to use unified solution for our clients.
Now, on Linux machine I can create ccd folder in which I can place files based on names of clients certificate in which I can place route for each client, eg:
in file client1 i have
ifconfig-push 10.24.10.24 10.24.10.25 # ip address pair for tunnel
iroute 192.168.2.0 255.255.255.0 # internal network on remote client
in file client2 I have
ifconfig-push 10.24.10.27 10.24.10.28
iroute 192.168.3.0 255.255.255.0
and in server config file
client-config-dir ccd
route 192.168.2.0 255.255.255.0 #internal network on openvpn client1
route 192.168.3.0 255.255.255.0 #internal network on openvpn client2
push "route 192.168.1.0 255.255.255.0" #internal network on openvpn server which is propagated to all connected clients
On all manuals I've read I didn't find solution for this, only basic vpn solution for clients on laptop/computers without internal networks to propagate.