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

    How can I route all HTTP traffic on a specific interface to a single URL

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 40 Views 3 Watching
    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 Offline
      scottlindner
      last edited by

      I realize this isn't likely a pfSense specific question but I don't know where else to ask it. How would I go about routing all HTTP HTTPS outbound requests on a specific interface to a specific URL?

      I have been wanting to do this as a gag for a long time because all three of my sons play hockey and have their teams over, and I play hockey and have my beer league team over. I want to have an open WiFi SSID that will do some daily gag URL just for fun. I'm thinking like a surprise Rick Roll.

      I'm already setup to have WiFi SSIDs mapped to specific tagged VLANs to isolate my IOTs. So that will be easy to add the new interface for another open SSID. But what's the general layout for all outbound HTTP/HTTPS traffic on that specific interface?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SteveITS Galactic Empire @scottlindner
        last edited by

        @scottlindner it’d be easier to redirect to an IP, like https://docs.netgate.com/pfsense/en/latest/recipes/dns-redirect.html but port 443. But then the certificate won’t match the URL.

        Perhaps, something with DNS host overrides but same problem as above for HTTPS.

        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
        Upvote 👍 helpful posts!

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          scottlindner @SteveITS
          last edited by scottlindner

          @SteveITS Shoot. I forgot about the SSL. So maybe just HTTP. I'm sure I can find plenty of gag URLs that aren't behind a certificate. Heck, I could even just host the content, but I like the idea of just having a pile of URLs that rotate randomly

          1 Reply Last reply Reply Quote 0
          • stephenw10S Offline
            stephenw10 Netgate Administrator
            last edited by

            Mmm, relatively trivial for http. Difficult to impossible for https.

            Pretty much all modern OSes will detect a captive portal page and show the user a button to open the page though. And that could show anything you like. 😉

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