I have my OpenVPN server setup and I can connect to it. However I'm trying to make it so I can also access the local subnet and I'm getting nowhere. I know I have to add the route to the router for things to work for other devices on the network but for testing purposes I'm just trying to access to the local IP of the server which should rule out any misconfigurations of the router. My server and client connection file are below.
I can currently connect without issue and ping the server at 10.83.0.1. However the local IP of the server is 192.168.85.135 and I'm pushing that route in the server config file but I cannot ping that IP when connecting. Should that not work?
Server Config
Client Config
I can currently connect without issue and ping the server at 10.83.0.1. However the local IP of the server is 192.168.85.135 and I'm pushing that route in the server config file but I cannot ping that IP when connecting. Should that not work?
Server Config
Code:
port 1194 proto udp dev tun ca ca.crt cert Server.crt key Server.key # This file should be kept secret dh dh2048.pem topology subnet server 10.83.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "route 192.168.85.0 255.255.255.0" keepalive 10 120 persist-key persist-tun status openvpn-status.log verb 3 explicit-exit-notify 1
Code:
client dev tun proto udp remote 1.1.1.1 1194 #Real IP removed resolv-retry infinite nobind persist-key persist-tun <ca> -----BEGIN CERTIFICATE----- Cert removed -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- Cert Removed -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- Private Key Removed -----END PRIVATE KEY----- </key> remote-cert-tls server verb 3
Comment