Here is my configuration:
1. *NIX server running OpenVPN Server with tun0 device with address 10.8.0.1
2. Home network with Mikrotik router running OpenVPN client with address 10.8.0.2 and LAN 192.168.1.0/24
Right now server (10.8.0.1) able to ping client router with 10.8.0.2 but not client network. All LAN clients able to reach server with 10.8.0.1.
How to make LAN accessible from server?
On server i'am added routing entry for lan: route add 192.168.1.0/24 10.8.0.2
On MT router added srcnat:
chain=srcnat action=src-nat to-addresses=10.8.0.2 src-address=192.168.1.0/24
out-interface=ovpn-out1 log=no log-prefix=""