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

    (Ab)using the captive portal to serve a website to the world?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 3 Posters 1.7k 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.
    • S
      senser
      last edited by

      I'd like to serve a single page to the world. I am thinking of using the captive portal for this purpose (no auth, no anything).

      Thoughts?
      Security concerns?
      Better ways to accomplish this on my limited hardware (ALIX)?

      Thanks!

      We use the mighty pf, we cannot be fooled.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        I don't know if the package works well at the moment, but the "vhosts" package was intended for that purpose.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • S
          senser
          last edited by

          Thanks jimp, that package seems kind of outdated!?

          I went ahead and wrote my own lightttpd.conf for this:
          Created files in /cf/httpd/conf/ (config) and /cf/httpd/data/ (website) and launch the daemon via <shellcmd>service lighttpd start</shellcmd> in config.xml

          We use the mighty pf, we cannot be fooled.

          1 Reply Last reply Reply Quote 0
          • A
            abidkhanhk
            last edited by

            hi,

            I want do the same, but for serving the Openvpn client export packages,

            just like Openvpn as where users login and get to a page to download the packages.

            all assistance is appreciated.

            rgds

            1 Reply Last reply Reply Quote 0
            • S
              senser
              last edited by

              I can help with getting up a seperate lighttpd if thats what needed. Not with the actual site to serve the vpn client packages though.

              We use the mighty pf, we cannot be fooled.

              1 Reply Last reply Reply Quote 0
              • S
                senser
                last edited by

                Thinking about it… you probably don't want a seperate lighttpd. Using the captive portal, you can use the auth facility that is already there! You just have to set up some post_auth page that serves the users package... "just!" :)

                We use the mighty pf, we cannot be fooled.

                1 Reply Last reply Reply Quote 0
                • A
                  abidkhanhk
                  last edited by

                  thanks senser,

                  Actually I think I am not going to continue until a more reliable builtin functionality is provided by pfsense, it would be great to have the openvpn AS's simplicity but with current pfsense I think it would create more problems than solutions.

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