Unable to access LAN when connected to VPN

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
INeedHelpYo
OpenVpn Newbie
Posts: 1
Joined: Thu Jun 15, 2017 3:05 pm

Unable to access LAN when connected to VPN

Post by INeedHelpYo » Thu Jun 15, 2017 4:22 pm

Hello, I am having trouble with accessing the LAN when I am connected to my raspberrypi running the OpenVPN software.

I am using the raspberry pi 3 with the latest Jessie LITE image to host the OpenVPN software. The client is running the latest version of windows 10 and is using the community downloads provided client openvpn-install-2.4.2 found here: https://openvpn.net/index.php/open-sour ... loads.html.

My goal is to be able to connect the client to the VPN server so that I can access and interact and LAN with the network that the VPN is attached to.

When I am connected to the VPN from an external network, I am able to ping the VPN host itself as well as the client pc; however cannot ping other devices on the network. The windows network manager client shows that the device has internet access, but it does not allow LAN communication which was the whole point of having this VPN.

I'd appreciate any help on the matter. Below are my Client and Server config files as well as the openvpn.log and client log (Note, openvpn.log and client log too long for post...posted link to online viewer)
Client Config
client
dev tun
proto tcp
remote X.x.x.x 8443
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 4
Server Config
dev tun
proto tcp
port 8443
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server.crt
key /etc/openvpn/easy-rsa/pki/private/server.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
status-version 3
log /var/log/openvpn.log
verb 4
Client Log
https://anotepad.com/notes/qnr942

OpenVPN Log
https://anotepad.com/notes/mp2rch

Post Reply