Hi folks,
For my setup, I have OpenVPN running in a TurnKey OpenVPN server. I am trying to have a pc on LAN access a service port running on a OpenVPN client system. The LAN PC and the client running OpenVPN are Windows 10 PCs. The existing configs allows the clients to connect, and is supposed to routes all client traffic through the OpenVPN's server LAN and Gateway.
The server configs:
mode server
tls-server
port 1194
proto udp
dev tun
comp-lzo
keepalive 10 120
persist-key
persist-tun
server 192.168.160.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.50.12"
ca /[path]/ca.crt
dh /[path]/dh2048.pem
key /[path]/OpenVPNVM.key
cert /[path]/OpenVPNVM.crt
The client configs:
dev tun
proto udp
ca ca_2048.crt
cert client.crt
key client.key
client
remote-cert-tls server
remote [server name] [server ip]
comp-lzo
How do I change the configs so a PC on the LAN side of the OpenVPN server can access a server (like a http server) running on a OpenVPN client machine that has connected?
For example, running the above with a client on an untrusted network, I have a LAN PC that has IP address 192.168.50.112 and a OpenVPN client on an external network that has got an IP from the OpenVPN server as 192.168.160.2 and running a http server on port 3000. When trying to load
http://192.168.160.2:3000 from 192.168.50.112 the browser times out instead of connecting as I like it to do.