I face difficulties accessing my internal LAN devices when having established a remote VPN connection. I think it has to do with routing. First of all, I ask you for patience with me as I am a beginner regarding this stuff. I am willing to provide all information needed. Though, I think it wouldn't make sense to give you as much information as possible, if not relevant. So I ask you kindly to point me to the essential information to me provided.
Server config
#################################################
# OpenVPN (MvA-Networks Conf)
# VPN Server Configuration
#
# Copyright 2006-2019 (04.09.2019) www.mva.ch
# MvA Internet Services GmbH
#################################################
port 1194
proto udp
dev tun
# ----------------------------------------------
# Zertifikate
# ----------------------------------------------
dh "C:\\Program Files\\OpenVPN\\server-keys\\dh2048.pem"
ca "C:\\Program Files\\OpenVPN\\server-keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\server-keys\\SERVER.crt"
key "C:\\Program FIles\\OpenVPN\\server-keys\\SERVER.key"
# ----------------------------------------------
# Server-Setup
# ----------------------------------------------
server 10.19.15.0 255.255.255.0
ifconfig-pool-persist "C:\\Program Files\\OpenVPN\\ipp.txt"
client-to-client
# ----------------------------------------------
# Client-Settings (inkl Special Dir)Files
# ----------------------------------------------
client-config-dir "C:\\Program Files\\OpenVPN\\ccd"
push "route 152.168.1.0 255.255.255.0"
push "dhcp-option DNS 152.168.1.10"
# ----------------------------------------------
# Defaults
# ----------------------------------------------
keepalive 10 120
compress lz4
persist-key
persist-tun
# ----------------------------------------------
# Logging
# ----------------------------------------------
status "C:\\Program Files\\OpenVPN\\log\\openvpn-status.log"
log "C:\\Program Files\\OpenVPN\\log\\openvpn.log"
log-append "C:\\Program Files\\OpenVPN\\log\\openvpn.log"
verb 3
Client config
client
dev tun
proto udp
remote HOST 1194
resolv-retry infinite
keepalive 50 100
nobind
persist-key
persist-tun
verb 3
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\CLIENT.crt"
key "C:\\Program Files\\OpenVPN\\config\\CLIENT.key"
Network is as follows:
[*]Destination LAN router has the IP 152.168.1.1 (this is not the actual IP, but I adjusted any IP provided here to be suitable)
[*]Host of VPN Server has the IP 152.168.1.222
[*]VPN Server provides addresses in 10.19.15.x range
[*]Port 1194 UDP is opened in the router for the VPN host as well as in the server firewall
The server config has the entry:
Code: Select all
push "route 152.168.1.0 255.255.255.0"
Code: Select all
Network: 10.19.15.0 Subnet: 255.255.255.0 Destination: 152.168.1.222
What the current state is:
[*]I can establish a VPN connection from remote (mobile hotspot)
[*]I then cannot reach the devices in the destination LAN, not even ping them
Is there anything I missed to adjust regarding the routes or are they maybe wrong?
Any help is appreciated. Thank you in advance.