OPNsense Forum

English Forums => Virtual private networks => Topic started by: nuchnaree on December 24, 2021, 11:36:59 AM

Title: OpenVPN cannot access other devices on LAN
Post by: nuchnaree on December 24, 2021, 11:36:59 AM
I've set up OpenVPN and have successfully connected from my remote PC into my Tunnelled network 10.0.1.0/24. My remote device can access the wider WAN through the VPN perfectly.

I can ping the LAN IP address of the OPNSense devices 10.0.0.1 and also 10.0.1.1 from my remote device.

However I cannot ping or reach any other devices on the LAN such as 10.0.0.100 from my remote device.

LAN IP 10.0.0./24
OpenVPN 10.0.1.0/24

I'm sure that I'm missing something fundamental regarding routing between the two subnets but I just don't know where to start.
gold diamond gaming (https://formaggiohonolulu.com/gold-diamond-gaming-entrance/)
Title: Re: OpenVPN cannot access other devices on LAN
Post by: bartjsmit on December 24, 2021, 03:44:42 PM
Do the devices on your LAN have OPNsense as their default gateway? If not, you'll need to add a static route (manually or by DHCP) for 10.0.1.0/24 via 10.0.0.1

Since you can get out the WAN, I suspect that your tunnel is set up to push redirect-gateway to your remote devices already.

You can NAT the local end of your tunnel onto your LAN but that's messy.

Bart...
Title: Re: OpenVPN cannot access other devices on LAN
Post by: the-mk on December 24, 2021, 05:21:12 PM
sounds like firewall rules not yet allowing access from OpenVPN to LAN - https://docs.opnsense.org/manual/how-tos/sslvpn_client.html