Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hypothetical routing question

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 306 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Phatsta
      last edited by Phatsta

      A service provider asked me for help to connect their networks with a customers PFsense. Apparently they have several networks that needs to be reachable on customer side in order for a service to work. We have an IPSec tunnel up and running as per illustration, but they would like to make routable the other two networks as well.

      Spontaneously I answered that the only way to do this is probably to connect one IPSec with each subnet, but he insisted they solved this with static routes in the past. So I thought I'd ask just to see if anyone has any other ideas.

      alt text

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by Derelict

        pfSense can do IPsec in two different ways, policy-based and route-based (VTI)

        To accomplish that scenario using policy-based you would make these IPsec networks (phase 2 tunnels) on both sides:

        Site A

        Local Network: 172.16.186.64/26 Remote Network: 10.5.0.0/24
        Local Network: 172.16.203.128/28 Remote Network: 10.5.0.0/24
        Local Network: 172.16.212.0/26 Remote Network: 10.5.0.0/24

        Site B

        Local Network: 10.5.0.0/24 Remote Network: 172.16.186.64/26
        Local Network: 10.5.0.0/24 Remote Network: 172.16.203.128/28
        Local Network: 10.5.0.0/24 Remote Network: 172.16.212.0/26

        If you are already using an ESP phase 2 tunnel for the existing network, the most straightforward path would be to just add two more "Phase 2" tunnels to each side.

        Using a VTI tunnel would establish a /30 point-to-point over which you can route any networks you like to the other side using static routes or routing protocols.

        It doesn't look like the book has caught up yet (VTI is a newish feature) but this exists:

        https://www.youtube.com/watch?v=AKMZ9rNQx7Y

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        P 1 Reply Last reply Reply Quote 0
        • P
          Phatsta @Derelict
          last edited by Phatsta

          @Derelict Thanks bud, we just tested what you said and it worked beautifully. The process was a bit tricky to understand because they used Unifi on the opposite side but after letting go of preconceptions and just tried everything just popped into place.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.