Hello all,
I have been trying to get this to work for some days now. Both using the config file to push and enter routes and using iptables.
II have succeeded with a simular situation earlier, but I haven't configured a OpenVPN solutions in years and my brain don't remember how anymore..
I would appropriate to get any hints to get it moving forward.
The senario:
I need to access a remote PLC-system from my computer that I have with me. The OpenVPN-server is set up on a different site.
The PLC-system have a 4G router that connect to the OpenVPN server because it's IP changes and/or is behind a NAT.
Laptop OpenVPN-Server 4G Router PLC + HMI
192.168.162.254 192.168.5.1 192.168.5.10 / 192.168.5.11
10.8.2.5 10.8.2.1 10.8.2.10
How do I configure the 'routes' correctly on the server.conf and do I really need to set up IPtables?
Server.conf as I last tested it...
client-to-client
server 10.8.2.0 255.255.255.0
push "route 10.8.2.0 255.255.255.0"
push "route 192.168.162.0 255.255.255.0"
route 10.8.2.0 255.255.255.0 10.8.2.1
route 192.168.5.0 255.255.255.0 10.8.2.1
This results:
Laptop can reach 192.168.162.254 and 10.8.2.10
Server can reach 10.8.2.5, 10.8.2.10
Behind router can reach 192.168.162.254 and 10.8.2.5
if i add
push "route 192.168.5.0 255.255.255.0"
Everything behind the 4G router stops to reach anything, even the router (192.168.5.1).
The client config is basically original.
Regards
Tobias