I have been trying for a week to access devices on my home LAN via OpenVPN, I've read so many articles but must have something not quite right.
My setup is as follows
OpenVPN server running on CentOS VPS web server - 10.8.0.0
Home Lan - OpenWRT/OpenVPN running on GL.inet router 192.168.8.0, allocated IP 10.8.0.22 from OpenVPN server
From the home LAN 192.168.8.0 devices can access the internet via the server perfectly.
From the internet, clients have internet access via the server perfectly.
I am trying to access a device on the home LAN with IP 192.168.8.231 but I can't get to it from the internet via the server.
If I connect an iphone via 4G to the server, it gets an IP address of 10.8.0.10
From a PC on the home LAN I can ping the phone on 10.8.0.10
But from the phone I cannot ping any 192.168.8.xxx device.
My server and client configs are below, please help
Server Config
Server Config
port 443 #- port
proto tcp #- protocol
dev tun
tun-mtu 1500
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
route 192.168.8.0 255.255.255.0
push "route 192.168.8.0 255.255.255.0"
client-to-client
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status 443.log
verb 4
proto tcp #- protocol
dev tun
tun-mtu 1500
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
route 192.168.8.0 255.255.255.0
push "route 192.168.8.0 255.255.255.0"
client-to-client
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status 443.log
verb 4
Client Config
client
dev tun
proto tcp
remote myopenvpndomain.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
float
ca ca.crt
cert my.crt
key my.key
dev tun
proto tcp
remote myopenvpndomain.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3
float
ca ca.crt
cert my.crt
key my.key