I would like to create a new installation and have the openvpn server in the mikrotik and serve only the local networks. For example Mikrotik has the LAN 192.168.5.0/24 and 172.16.5.0/24. I would like all the remote users eg Android phones over 4G to access the internet from their 4G and through VPN the local networks 192.168.5.0/24 and 172.16.5.0/24. I do not want the remote users to access the internet through the Openvpn <-.>Mikrotik, rather access the internet from their local access (eg 4G).
Could someone help me to set this config please?
I created that OVPN configuration to route all traffic through the VPN to maximize security for the client on an untrusted network. The relevant line that you’re looking for in the client configuration is:
redirect-gateway def1 bypass-dhcp
Removing that line should mean that only VPN traffic goes through the VPN and all other traffic goes through the local gateway (including DNS queries). I can’t make any guarantee about how well it will work as I haven’t tested the configuration myself. I suggest you take a look at the OpenVPN Documentation (specifically the 2x HOW TO page) as this is where got the information about creating the client config file.