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

    Error page when link is down

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.4k 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.
    • L Offline
      luke240778
      last edited by

      Is there someway ofhaving all http traffic redirected to an information page?

      My link is down due to a fiber problem and instead of everyone trying t use the net and phoning us when it doesnt work, maybe i can have a 4.4 type error page from my pfsense box that they will all see telling what the problem is?

      maybe Squid or Captive Portal can do this?  I think the Captive portal way will be difficult cause i have hundreds of users on the MAC passthrough list, and dont really want to touch that.

      Any ideas of what i can do?

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        We've hacked in something along those lines for a customer before. Can launch a separate lighttpd instance on the firewall that just serves up the informational page you want, and add a port forward to redirect all HTTP traffic on the internal interface(s) to any destination to that IP and port.

        1 Reply Last reply Reply Quote 0
        • L Offline
          luke240778
          last edited by

          Thanks for the reply cmb.. looks about what i need to do.. dont suppose you could tell me more or less how to do what you just mentioned?

          Seeing that i have a webserver on my LAN, could i just do more or less what you just mentioned and with a port forward send all LAN traffic to see a info page on that webserver?  Never thought about doing it that way..

          1 Reply Last reply Reply Quote 0
          • C Offline
            cmb
            last edited by

            yeah you could point it to a web server on your LAN too. Port forward on LAN, any source, any destination, port 80, target of your internal web server, port 80.

            1 Reply Last reply Reply Quote 0
            • L Offline
              luke240778
              last edited by

              Cool, i'll do it that way i think. Thanks for that.  I'll report back if it doesnt work out :)

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