Hi, I figure this might be trivial but networking/routing isn't my strongest so I was hoping y'all could offer some help. I'm trying to allow connections to Hyper-V Virtual Machines I have running on Windows Server (where the OpenVPN server is running) through the OpenVPN client connection. I have the OpenVPN connection setup on the Windows Server and can successfully ping 10.8.0.1 from the client side. I'm following the how to guide section
Including multiple machines on the server side when using a routed VPN (dev tun)
The Hyper-V Virtual Machines are all connected to a Hyper-V "Internal Switch" and the IPv4 configuration is depicted below. As an example, the IP address of one of the Virtual Machines I am trying to reach is 192.168.137.104
IP address: 192.168.137.1
Subnet mask: 255.255.255.0
I've added
push "route 192.168.137.0 255.255.255.0"
to the server configuration file and IP forwarding is enabled on the Windows Server.
Currently I am unable to ping the 192.168.137.XXX network from the client connections.
The next step says I need to
"set up a route on the server-side LAN gateway to route the VPN client subnet (10.8.0.0/24) to the OpenVPN server "
Would this be done with the
route add cmd command? And which routes would I need to add?
Thank you very much.
The relevant server.ovpn config is
[oconf=]port 1194
proto udp
dev tun
push "route 192.168.137.0 255.255.255.0"[/oconf]