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

    IPsec vpn access to two subnets from one

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 463 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.
    • D
      Dimitriy46
      last edited by

      I have two offices that are interconnected using the wireguard tunnel configured in phsense, one has a subnet of 23 and the second has 22, now I configure ipsec vpn to access the 23 subnet, after configuration I have access only to the 23 subnet how to make sure that when connecting a vpn to the 23 subnet I have access to more at 22

      C 1 Reply Last reply Reply Quote 0
      • C
        cswroe @Dimitriy46
        last edited by

        @Dimitriy46 Copy, or duplicate, the P2 for the IPsec that you made for 23 and change it to 22. Make sure there is a firewall rule that will pass the traffic between them (if needed).

        D 1 Reply Last reply Reply Quote 0
        • D
          Dimitriy46 @cswroe
          last edited by

          @cswroe if I duplicate p2 23 and add p2 22, only one works, if I delete p2 23 and leave p2 22, then I have access only to the 22 subnet

          C 1 Reply Last reply Reply Quote 0
          • C
            cswroe @Dimitriy46
            last edited by

            @Dimitriy46 the P2 needs to exist on both ends, and you may have that. I would also try to include the entire /24 in a single P2 and see what happens. I have a connection with an ASA where they have multiple P2 for the same subnet, but I just have a /24 and it figures it out.

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