half of a captive portal
September 8, 2006 9:43 PM   Subscribe

I want "half" of a captive portal. Basically, I want something that would take any http requests and return a sign webpage. I don't need any authentication or routing to take place. Any suggestions?

I'm thinking this could probably be done with just Apache on a linux box. Can Apache be configured to send a single HTML page no matter what the request?

This isn't going to be an internet connection, just a wireless network not connected to the world. Any user who connects to the network would have this single HTML page returned. Period.

Any help would be appreciated!
posted by MiG to Computers & Internet (5 answers total)
 
You could just have your special page be the 404 page, and not put anything in the root directory.
posted by bshort at 9:48 PM on September 8, 2006


Or you could use mod_rewrite to rewrite any request to the page you want to serve.

(You could also try lighttpd. Its config files can be somewhat less scary than apache, but it's probably not worth it for something this small - there are more/better docs on apache.)
posted by heresiarch at 10:02 PM on September 8, 2006


Um. You want something at a lower level, I think. Why not just use a ipf/ipchains/ipfw/etc rule?
posted by devilsbrigade at 10:18 PM on September 8, 2006


Response by poster: Thanks CrayDrygu, that should do it.
posted by MiG at 10:08 PM on September 9, 2006


Response by poster: I think probably having the DHCP server give out the linux box's IP as the DNS server would help too. It could basically return the linux box's address for any DNS request?
posted by MiG at 10:16 PM on September 9, 2006


« Older Live your life with arms wide open!   |   For the halal of it Newer »
This thread is closed to new comments.