Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running Ubuntu 11.04 headless with a wifi card. Everything works fine, but I need the box create a wifi point on boot that redirects all connected users to a certain page on the server. Let me know if you have any advice. Thanks!

share|improve this question
add comment

2 Answers

  1. Set up Apache on your machine with the web-page you want to show
  2. use NAT to redirect all pass-through traffic on port 80 to Apache.

You can find a lot of info on the subject if you google for "iptables". Here's one tutorial (it's about setting up a "transparent proxy", but the idea is absolutely the same):

http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html

share|improve this answer
add comment

This isn't actually anything to do with wifi - that just provides a network medium.

What you need is to run a web server with a default page to deliver to the users who connect.

As long as the wireless router only allows port 80 (or 443) traffic, and only to that server (very straightforward for any router), users will not actually be able to do anything else.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.