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

    Firewall rule to allow a specific website through a specific vpn gateway

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 428 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.
    • M
      maestro2017
      last edited by

      Hi guys !

      I have setup PIA vpn and it works like a charm. All the traffic goes through the vpn with no errors.

      I want to allow a pc to use vpn for most of the traffic , and use the regular interface (no vpn) to access a couple of websites (aws for example, so i can restrict ips).
      I don't know how to do that using rules.

      Any help?

      Thanks !

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Pack all the websites you want to access over the WAN gateway in an alias. Firewall > Aliases > IP.

        Add a firewall rule to the top of the LAN interface (or to this one which is facing to the pc) rule set:
        protocol: to fit your needs
        source: your pc
        dest: the alias you've added before
        open the advanced options, go to gateway and select the WAN gateway. Save it.
        Ensure that the rule is placed above the default allow-any-to-any rule.

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