Can't access LAN devices local to OpenVPN Server

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sstoveld
OpenVpn Newbie
Posts: 1
Joined: Mon Jul 24, 2017 4:23 pm

Can't access LAN devices local to OpenVPN Server

Post by sstoveld » Mon Jul 24, 2017 4:34 pm

Hey guys, hoping someone can point me in the right direction here. I have an OpenVPN Server on Ubuntu Server 16.04 configured with the following server config
Server Config
local PUBLIC_IP
port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/cloudco.crt
key /etc/openvpn/keys/cloudco.key
dh /etc/openvpn/keys/dh2048.pem
server 10.122.222.0 255.255.255.0
push "route 10.122.224.0 255.255.255.0"
client-to-client
comp-lzo no
keepalive 10 120
persist-key
persist-tun
verb 3
tls-server
log-append /var/log/openvpn.log
The server itself is located at 10.122.224.2, the OpenVPN pool is at 10.122.222.0/24. Clients can connect to the VPN without issues, internet works, all is good, except I cannot access devices on the local LAN at 10.122.224.0/24. This is a problem because I am trying to register an IP phone to a PBX phone server located at 10.122.224.5.

The IP phone grabs an IP of 10.122.222.6 from the VPN. From there, I can ping the VPN server at 10.122.224.2 no problem, but I cannot ping the PBX at 10.122.224.5, so I cannot register the phone to the PBX.

I have IP Forwarding enabled. I've tried setting up a static route on the OpenVPN server under /etc/network/interfaces, but I'm not sure if I've done it correctly.

Any help would be greatly appreciated.

Post Reply