OPNsense Forum

English Forums => General Discussion => Topic started by: seithan on May 30, 2021, 02:14:39 PM

Title: How to Access my Home Lan
Post by: seithan on May 30, 2021, 02:14:39 PM
Hello

I have these settings:
Home Lan : 192.168.1.0/24   
Modem Router: 192.168.1.254/24

OPNSense LAN: 192.168.2.1/24
               WAN: 192.168.1.8/24 (DHCP)


OPN is running on VM
I created a VM running a linux desktop, set up to use the gateway 192.168.2.1 and DHCP its IP address.
      Can open OPN webgui + can access internet.


Now i want to be able to access the 192.168.2.0 network (which is running on VMs) from my physical Home Lan, which is 192.168.1.0


How am i gonna accomplish that?

Thanx in advance.
Title: Re: How to Access my Home Lan
Post by: geek on May 30, 2021, 06:57:24 PM
You will need to add a route for 192.168.2.0/24 in your modem / Router which sends any traffic for 192.168.2.x to 192.168.1.254
Title: Re: How to Access my Home Lan
Post by: AbstractGeo on May 30, 2021, 10:37:17 PM
Someone please check me on this, but: you may need to disable outbound NAT for traffic originating in your OPNSense/VM LAN going to Home LAN

i.e. outbound  NAT rule:

Source: 192.168.2.0/24
Destination: 192.168.1.0/24
Check "Do Not NAT" (or similar). Please someone let me know if I'm wrong there, but, I think there's a risk of doing asymmetric NAT / routing otherwise?
Title: Re: How to Access my Home Lan
Post by: seithan on May 30, 2021, 11:49:00 PM
Thank you for the replies.

I decided to scrap the original setup, i was running everything from withing Proxmox and i believed (maybe unfairly) that the problem lied that everything were withing a inception virtualization enviroment.

I made a simpler setup, with a VMWare running OPN and another VMWare running a Linux Desktop.

OPNLan is 192.168.2.1/24
OPNWan is 192.168.1.20/24 (DHCP).

Both interfaces are set as Bridged from the VM, i couldnt make the OPNLan reachable from the linux boxes otherwise

VMLinuxbox is 192.168.2.x , also with vnetcard set as Bridged, as Host i get destination host unreachable when i try to ping the OPNLan address.
--- Can connect to webgui on OPNLan when on bridged.


From within the webgui, i can ping from Wan to the internet // cant ping from Lan to the internet.
Title: Re: How to Access my Home Lan
Post by: geek on May 31, 2021, 10:20:46 AM
Quote from: geek on May 30, 2021, 06:57:24 PM
You will need to add a route for 192.168.2.0/24 in your modem / Router which sends any traffic for 192.168.2.x to 192.168.1.254

Do the above. I had assumed that you were working with a bridged setup before.
Title: Re: How to Access my Home Lan
Post by: seithan on June 05, 2021, 07:33:07 AM
Had to make a routing rule on the modem/router , directing traffic from 192.168.2.0 (OPN LAN) to the router IP (192.168.1.254)