1

When someone connects to my network and tries to browse, I would like to redirected to a welcome page. I know there are some commercial solutions for hotspots out there, what I am looking for is just redirecting. Ideally, I could set this network rule from the command line, not through the network admin GUI. Can you guide me with some keyworks or tutorials I should follow to do this?

EDIT: The network is a WLAN like in a hotel. Ideally was looking for a router-independent solution, but advice on a Netgear Aircard, for instance, would be enough.

2
  • 1
    Please be more specific about your setup: What is "your network"? A local (W)LAN like in a hotel? Or a set of websites? What router do you use? And so on. Without that, it is hard to give an answer.
    – Kai Petzke
    Jan 15, 2015 at 10:59
  • I just edited my question with the requested information. Thanks
    – Arturo
    Jan 15, 2015 at 14:09

1 Answer 1

2

Technical solution/explanation:

From the network point of view, you need to configure two elements:

  • webserver (Apache, Ngix,..)
  • iptables to forward all port 80 packets transparently to the new webserver IP port 80

You will have to create a web page but this will be complicate because you probably want to forward the user to the original page after the introduction. This could be done using a server side language like PHP, to proxy the connections to the original page after the introduction has been shown.

Easy solution:

Note that technical solution above is quite complicate to achieve if you don't have knowledge on the different technologies required (i.e. iptables, apache, php). I'd then rather look for a product integrating already these elements.

For example, a costumer router software like http://dd-wrt.com or also http://openwrt.org already provides this functionality. They also provide the WLAN configuration you need.

Not the answer you're looking for? Browse other questions tagged .