(Ab)using the captive portal to serve a website to the world?
-
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!
-
I don't know if the package works well at the moment, but the "vhosts" package was intended for that purpose.
-
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 -
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
-
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.
-
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!" :)
-
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.