OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Tadeus99 on July 30, 2021, 01:13:00 am

Title: Routing between interfaces and VPN
Post by: Tadeus99 on July 30, 2021, 01:13:00 am
I am a newbie with OPNsense and would appreciate your comments on this:

This is my setup:

ISP – OPNsense __ eth1 -- VPN -- LAN1 ... PC1, PC3
                           |__ eth2 -- WAN -- LAN2 ... PC2, PC4
                           |__ eth3 ...

OPNsense is permanently connected to VPN for LAN1 traffic.  LAN2 goes thru OPNsense NAT to access the internet with my ISP public IP.

I needed computers from LAN2 to access computers in LAN1 (ssh, smb, nfs, etc) and vice versa

As all LAN1 traffic is sent to VPN, I tried creating a floating rule. Did not work

I think i may need to somehow 'route' only local traffic  between (LAN1) 192.168.10.X and (LAN2) 192.168.20.X  before it reaches the gateway for each interface: VPN or WAN.

Just not sure how. Any ideas are appreciated.