Community discussions

MikroTik App
blastcomm
刚刚加入了
Topic Author
Posts: 17
加入: Thu Sep 02, 2004 11:05 pm

One Time Homepage redirection

Tue Nov 01, 2005 11:01 pm

Is there a way to have Mikrotik redirect the First HTTP Request from an IP address to a specific Server (Server accessible via IP address and HTML Page at Root Level) then allow users to surf unobstructed.

I thought that this DST-NAT rule would work, but I may not understand the limit-count and Limit-time fields. My goal was to have this redirect the first page visited, then allow normal web traffic for 1 day, then redirect again.

[admin@MKT] ip firewall dst-nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 X ;;; Trying to make Homepage Redirect work then allow normal browsing
src-address=66.151.X.X/32 dst-address=:80 protocol=tcp limit-count=1 limit-time=1d action=redirect to-dst-address=66.151.Y.Y to-dst-port=80

当我使this rule, any web request from the computer times out. With the Rule Disabled the computer can access the page simply by typing in the servers IP address, so I know the server is up and running and that there is no routing issue from PC to Server.

Is there a better way to accomplish what I’m trying to achieve? I don’t think that hotspot functionality is what I’m looking for here since I don’t need any tracking or authentication, just display the page I want them to see as their initial HTTP Request.

Nate
Top
用户头像
lastguru
Trainer
Trainer
Posts: 432
加入: Fri May 28, 2004 9:04 pm
Location:Certified Trainer/Consultant in Riga, Latvia
Contact:

Wed Nov 02, 2005 8:13 pm

try looking at hotspot for this functionality
Top
wildbill442
Forum Guru
Forum Guru
Posts: 1055
加入: Wed Dec 08, 2004 7:29 am
Location:Sacramento, CA

Wed Nov 02, 2005 9:18 pm

try looking at hotspot for this functionality
But what if you don't want authentication (free use hotspot) and you want to redirect to an external webpage?

Is that done through the hotspot package as well? or is there a simple DST-NAT rule one could add?

(I'm reviewing the hotspot doc's right now...)
Top
用户头像
lastguru
Trainer
Trainer
Posts: 432
加入: Fri May 28, 2004 9:04 pm
Location:Certified Trainer/Consultant in Riga, Latvia
Contact:

Thu Nov 03, 2005 2:44 pm

it is just a matter of modifying the servlet pages. you can make them to autologin each user with a given username and follow the link you decide after the login procedure (i.e., they open any page, hotspot overtakes, automatically logs the user in, and shows another page). it is also possible to popup regular advertizement pages (say, each half an hour), not just once...
Top
blastcomm
刚刚加入了
Topic Author
Posts: 17
加入: Thu Sep 02, 2004 11:05 pm

Fri Nov 04, 2005 11:50 pm

I'll look into the Auto-login Hotspot functionality. It may accomplish what I need. I'm looking to deploy this into a completely wired environment. How would the Hotspot work if someone is trying to plug a VoIP ATA in which doesn’t have a built in router? Will it be able to work, or will it not work because the hotspot will never assign it the correct IP since it never is able to authenticate through the HTTP/HTTPS Pages?
Top

Who is online

Users browsing this forum:arm920t,Semrush [Bot]and 26 guests