OPNsense route subnets over IPsec

Started by bergfex, September 20, 2020, 09:02:07 AM

Previous topic - Next topic
Hi!

I have three locations: Two offices and one serverrack in a datacenter. Each location has an own subnet. I want to connect the three locations so ever subnet can connect to each other.
My idea was the two offices has a tunnel to the datacenter location an there I route the subnet from the offices to each other.

Office A - Ubiquiti IPsec ------- Datacenter B OPNsense ------- Office B Ubuquiti IPsec
192.168.1.0/24                       192.168.2.0/24                      192.168.3.0/24

The two offices has a good connection to the datacenter, but the connecton from office to office is not very good.

Can I route with OPNsense Subnet 192.168.1.0/24 to 192.168.3.0/24 and back?

Thanks! Best regards
bergfex

Sure, in OpenVPN server push the networks and for IPsec add another Phase 2

Thanks! I struggled with this many hours. Simple set the correct phase 2 entryies fixed it!!