Hello,
Thank you for your reply ! I've read this:
https://community.openvpn.net/openvpn/wiki/Topology to better understand the different topologies.
In the meanwhile, I changed the topology a little. So, an up-to-date status looks like this:
OpenVPN server:
- internet, public IP on eth0
- private, 10.10.1.x/24 subnet on eth1
- tun0 - 10.8.0.1/24
Client1:
- internet, public IP on eth0
- tun0 - 10.8.0.10/24
Client2:
- private, 192.168.1.x/24 subnet on eth0 (office)
- tun0 - 10.8.0.14/24
Client3:
- can be mobile device / laptop from home / etc
- tun0 - 10.8.0.x/24
As the subnet topology mode only works for tun devices, I will drop the thought of trying my project with tap.
So far, I am only using the 'staticclients' folder to assign static IPs to some clients.
On Client1, I do:
route add -net 10.10.1.0/24 gw 10.8.0.13
and that enables me to reach 10.10.1.2 (the private IP of the OpenVPN server), but if I try to ping 10.10.1.3 (another server in that network), I can't.
Do I need to bridge the eth1 interface on the OpenVPN server for this to work ?
I will try with the subnet topology and see how that affects things.
Thank you.