OPNsense Forum

English Forums => General Discussion => Topic started by: stiggs on March 09, 2017, 05:36:10 am

Title: Can't access LAN through VPN client
Post by: stiggs on March 09, 2017, 05:36:10 am
Hello everyone,

I have just installed OPNSense for the first time yesterday.  I followed the "SSL VPN Road Warrior" setup and can connect via my iPhone through the openVPN app.  When I check my public IP all traffic is being routed through the opnsense server so all is good.  The problem is that I cannot access anything on my LAN other than the opnsense server through the private IP.  When I check the firewall logs, traffic is being passed to the local addresses, but I dont get a response and no blocks in my logs.  What am I doing wrong?
Title: Re: Can't access LAN through VPN client
Post by: bartjsmit on March 09, 2017, 11:11:15 am
Do the lan hosts have OPNsense as their default gateway? If not then you either have to set up static routing or use NAT for the traffic flowing out of the tunnel.

Bart...
Title: Re: Can't access LAN through VPN client
Post by: stiggs on March 09, 2017, 09:03:11 pm
Yes, they are using OPNSense as the default gateway.... actually, they do not.  This is what happens when you try doing this at 2 in the morning.  The hosts I am trying to connect to are not using DHCP and their gateways were never updated.  Thank you very much.
Title: Re: Can't access LAN through VPN client
Post by: guest15389 on March 09, 2017, 09:11:11 pm
For the OpenVPN config, do you push your route you need out for the local LAN?

I have a line in my Advanced OpenVPN config:

Code: [Select]
push "route 192.168.86.0 255.255.255.0";

With my local LAN being 192.168.86.0/24 and my OpenVPN is 10.0.8.0/24.