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

    IPsec: The same LAN + VLAN network

    Scheduled Pinned Locked Moved IPsec
    5 Posts 2 Posters 317 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
      patrick.pesegodinski
      last edited by

      Hello everyone, look at this scenario, where I can't find a solution:

      Pfsense Matrix:

      LAN: 10.1.1.0/24
      VLAN 100: 172.36.0.0/24

      Pfsense Branch:

      LAN: 10.1.1.0/24

      I configured an IPsec tunnel to connect the VLAN with the branch, so far so good, communication between the two points working without problem.

      But with the tunnel connected, because the IP range of both LANs is the same, the head office LAN ends up no longer communicating with the VLAN.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @patrick.pesegodinski
        last edited by

        @patrick-pesegodinski
        Configure BINAT in the IPSsec phase 2 to avoid overlapping networks conflicts.

        P 1 Reply Last reply Reply Quote 0
        • P
          patrick.pesegodinski @viragomann
          last edited by

          @viragomann I configure the VLAN interface in this option?

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @patrick.pesegodinski
            last edited by

            @patrick-pesegodinski
            No, you have to NAT the branch LAN to avoid address conflicts.

            In the IPSec phase 2 for the local network at NAT/BINAT translation select Network and enter e.g. 10.1.11.0/24.
            Then change the remote network in the matrix phase 2 to 10.1.11.0/24.
            Thenceforward you have to use e.g. 10.1.11.25 inside the Matrix local network to access 10.1.1.25 at the branch LAN.

            P 1 Reply Last reply Reply Quote 0
            • P
              patrick.pesegodinski @viragomann
              last edited by

              @viragomann Thanks for helping me.

              Your tip worked for me.

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