Webpage redirect

TekieB

[H]ard|Gawd
Joined
Sep 27, 2003
Messages
1,228
Is there an easy way to have any outgoing HTTP traffic automatically redirect to a certial URL (Like a local IP) like they do in the hotels, so people know that site exisits? And then the user can continue browsing normally.

We want to do this for lan parties and have it redirect to our tournament page. We would probably be using a linux firewall.

Thanks in advance!
 
The term you're looking for is called captive portal.

While there are quite a few hardware-based solutions sold for commercial applications like hotels, there are a few free software solutions you can try.

NoCatAuth, developed for wireless networks but will work the same on wired, can be customized to allow authenticating with a netcat server, radius server, or local database (I think).

m0n0wall, is a linux-based firewall distro, in which you can enable a captive portal that interfaces with a radius server for secure logins.

NetReg captive portal written for Southwestern University resnet, now open source.

In all of these, the basic concept is as follows:

1. An unknown MAC address requests any website (local or internet).
2. The gateway/captive portal realizes its unknown and instead redirects the client to a local login page.
3. The login is authenticated and MAC recorded in the database.
4. A firewall rule is added to the gateway allowing that MAC external internet access.

Now, in your case, the login page doesn't have to ask username/password credentials, it can simply redirect to your local tourney info page and have a "I accept your terms" button to then anonymously allow the user internet access.
 
BollWeevil said:
Now, in your case, the login page doesn't have to ask username/password credentials, it can simply redirect to your local tourney info page and have a "I accept your terms" button to then anonymously allow the user internet access.

And to make things even easier...
http://www.publicip.net/zonecd/how.php

Runs off CD and is NoCat and Dan's Guardian together.
 
is your linux firewall doing NAT? if so, you should be able to write a NAT rule that redirects all HTTP traffic to a certain address, if you just want people to see a certain page....although then they won't be able to browse normally :p

The dansguardian howto in the post above should do ya well though :D
 
Back
Top