I have a setup with a Mikrotik router as a server and a windows 7 as client.
The problem is that RouterOS can not push route to the client.
I've read that I should then add to my client .ovpn config file something like
Code: Select all
route-up "route add 192.168.0.0 mask 255.255.255.0 10.15.30.31"
I've seen that the gateway IP should be available as an environment variable, however I don't know how to use this variable in the script.
I would appreciate some help how to recover this gateway IP and add the routes I need.