How can I route all HTTP traffic on a specific interface to a single URL
-
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?
-
@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.
-
@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
-
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.