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

    Setup Private Internet Access for only a few computers on LAN

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 1.8k 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.
    • S
      Sty
      last edited by

      Hello, all,

      I have been struggling with this for a while and am unable to figure it out. I would like to setup an OpenVPN connection for the network. That I can do. Next I want to route certain computers through it at all times while the rest proceed as normal through the regular WAN connection.

      Could I get some guidance on where to do this?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • M
        mauroman33
        last edited by

        Go to Firewall>Aliases>IP and create two aliases, one containing all the IP addresses that must use the VPN tunnel and the second one containing all other IP addresses.
        Then go to Firewall>Rules>LAN and create two pass rules using the previous aliases as Source and setting up the correct gateway in the Advanced Options; the VPN gateway for the VPN alias and the default gateway (as WANGW) for the second alias.

        In addition, if you want that devices routed trough VPN stop connecting if the VPN connection drops, you should follow this guide:
        https://www.infotechwerx.com/blog/Prevent-Any-Traffic-VPN-Hosts-Egressing-WAN

        1 Reply Last reply Reply Quote 0
        • S
          Sty
          last edited by

          That worked perfectly. Thank you so much.

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