OPNsense Forum

English Forums => Virtual private networks => Topic started by: bergfex on September 20, 2020, 09:02:07 AM

Title: OPNsense route subnets over IPsec
Post by: bergfex on September 20, 2020, 09:02:07 AM
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
Title: Re: OPNsense route subnets over IPsec
Post by: mimugmail on September 20, 2020, 10:11:00 AM
Sure, in OpenVPN server push the networks and for IPsec add another Phase 2
Title: Re: OPNsense route subnets over IPsec
Post by: bergfex on September 20, 2020, 10:58:00 AM
Thanks! I struggled with this many hours. Simple set the correct phase 2 entryies fixed it!!