OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • OPNsense route subnets over IPsec
« previous next »
  • Print
Pages: [1]

Author Topic: OPNsense route subnets over IPsec  (Read 5131 times)

bergfex

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
OPNsense route subnets over IPsec
« 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
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: OPNsense route subnets over IPsec
« Reply #1 on: September 20, 2020, 10:11:00 am »
Sure, in OpenVPN server push the networks and for IPsec add another Phase 2
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

bergfex

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: OPNsense route subnets over IPsec
« Reply #2 on: September 20, 2020, 10:58:00 am »
Thanks! I struggled with this many hours. Simple set the correct phase 2 entryies fixed it!!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • OPNsense route subnets over IPsec
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2