Community discussions

MikroTik App
 
Wyoming
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

Home Page Redirect

Thu Aug 18, 2005 7:14 pm

Does anyone know if there is a way to do a homepage redirct with the Mikrotik hotspot?

Thanks
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Thu Aug 18, 2005 7:18 pm

yup just use dst-nat and limits... set the rule to only look at new connections on TCP port 80 set the action to dst-nat and redirect to the IP address of the webserver.. the only problem is the website you're redirecting to has to be in the root directory..

unless someone knows of a better way of doing this?
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Thu Aug 18, 2005 7:43 pm

Hmmm, but this would redirect ALL http requests to the configured ip address/webserver.

Is that really what "Wyoming" intended?
Perhaps he can describe a bit more what he's actually trying to achieve? (I.e. only redirect the first HTTP request after logging onto the hotspot, redirecting all HTTP requests, ...)
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Thu Aug 18, 2005 7:44 pm

sorry i forgot to specify .. useing the LIMIT as well as TCP connection states

set the limit to the frequency you want it to redirect and the connection state to NEW
 
Wyoming
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

Thu Aug 18, 2005 7:45 pm

That is exactly what I am trying to achive. I want to only redirect the first http request after login to a certain page then from there the user can navigate anywhere they would like.
 
Wyoming
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

Thu Aug 18, 2005 8:51 pm

We found a better way to do this. We just modified the HTML Login page to redirect to the page we wanted once the user logs in. This seems to work very well and it will work for any web page.