Community discussions

MikroTik App
 
marcelocbf
newbie
Topic Author
Posts: 35
Joined: Sat Jun 09, 2007 2:31 am

URL Redirection (Specific Users)

Sun Feb 22, 2009 7:56 pm

Hello, here I am again needing some help ;)

I'm using hotspot and RADIUS server ... What I want to acomplish is create a kind of second walled garden for my suspended users.

Example:

User types http://www.google.com, he/she is redirected to a specific url, e.g: http://www.myserver.com/supended.html
On this page, I will have a notification why he/she is seeing that page, and a button to make a payment (So, I would put some IP/URLs open, like paypal, etc.)

To differentiate the customers I'll do it by returning Mark-Id attribute making them jump to chain suspended.

My problem is that I don't how, or if I can, do a dst-nat like http://www.myserver.com/suspended.html or just by IP.

I'd appreciate any help,

Thanks,
 
User avatar
jwcn
Forum Guru
Forum Guru
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Re: URL Redirection (Specific Users)

Mon Feb 23, 2009 6:43 am

You can only dst nat by IP address. You can use proxy to redirect actual URL's.
 
marcelocbf
newbie
Topic Author
Posts: 35
Joined: Sat Jun 09, 2007 2:31 am

Re: URL Redirection (Specific Users)

Mon Feb 23, 2009 6:57 am

Thanks jwcn,

While waiting I did a research about IPTables and I found out that it was not possible, so I did a workaround ... My problem now is with the hotspot Mark-Id ... I'll open a new post ...

Thanks,
 
beny30
Member Candidate
Member Candidate
Posts: 137
Joined: Tue Aug 26, 2008 2:13 pm

Re: URL Redirection (Specific Users)

Tue Feb 24, 2009 4:16 pm

If we use PPPoE How can this be implemented do we need another webserver or we can set up hotspot and than redirect to any of its pages?
Any link or referenc about this thing?
 
marcelocbf
newbie
Topic Author
Posts: 35
Joined: Sat Jun 09, 2007 2:31 am

Re: URL Redirection (Specific Users)

Wed Feb 25, 2009 1:16 am

If we use PPPoE How can this be implemented do we need another webserver or we can set up hotspot and than redirect to any of its pages?
Any link or referenc about this thing?
I don't think you can use the on Mikrotik webserver because you cannot redirect through URL, My workaround is partially working because I don't know why I cannot get Mikrotik mark the packets I want through the Mikrotik-Mark-Id, please view my other post here http://forum.mikrotik.com/viewtopic.php?f=2&t=29849, if you also can help me ;) , that would be great ...

My workaround was to set up a IP/port Virtual host in Apache and changed the default page to the one I wanted to show to my "special" customers, so I just dst-nat the customers' traffic I want to my webserver's IP address and to this specific port ...

Hope it helps,