Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Route all traffic through VPN (with some exceptions)

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 1.0k 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.
    • H
      Heli0s
      last edited by

      Currently, I have a site-to-site OpenVPN setup that when activated, redirects all traffic through the VPN. I've created an alias for WAN ports and an alias for allowed ports, as well as the associated firewall rules. Currently, when the VPN is active, all outbound traffic that matches the ports in the allowed ports alias is routed through the VPN. When the VPN goes down or is turned off, the ports in the alias are routed through the WAN. The ports in the WAN ports alias are always routed through the WAN no matter what.

      What I'd like to do is setup a rule or a set of rules so that when the VPN is up, everything is routed through the VPN. When the VPN is down, all ports in the allowed ports alias are blocked from the internet (WAN). Is that possible to do with pfSense? I looked at floating rules, but I can't seem to get that to work.

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy