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

    Wireguard to vpn provider only for a specific subnet, how?

    Scheduled Pinned Locked Moved WireGuard
    3 Posts 2 Posters 1.1k 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.
    • bthovenB
      bthoven
      last edited by bthoven

      I've followed instructions from this link:
      pfSense Wireguard client setup
      If I want only a specific VLAN/subnet (I have main LAN, and a few VLAN subnets which will access normal internet), not all subnets, to go through my provider VPN (vpnunlimited), what are the suitable setup tweak I have to make.
      Thanks
      ps. I have installed WireGuard and set up peers for my laptop and mobile phones. It works properly.

      NogBadTheBadN 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad @bthoven
        last edited by

        @bthoven Search the forum for policy based routing, it’s a subject that comes up multiple times.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        bthovenB 1 Reply Last reply Reply Quote 1
        • bthovenB
          bthoven @NogBadTheBad
          last edited by bthoven

          @nogbadthebad Thanks. I got it working with only a few steps, without any routing. Just create a new tunnel, new peer, new interface, and a new vpn gateway, based on setup config obtained from vpnunlimited. Then just create a firewall rule to allow, in my case, a whole subnet address to access all via the new vpn gateway. The chosen subnet belongs to one ssid I created just for Wireguard vpn connection.

          I will write a more detailed instruction and post it here very soon.

          Update: I've just posted my more detailed instruction here:
          Instruction-WireGuard to VPN Provider only for a specific subnet

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