Community discussions

MikroTik App
 
piatthi
newbie
Topic Author
Posts: 32
Joined: Tue May 05, 2009 10:56 am

Deny access in hotspot using wallen garden

Wed Oct 21, 2009 10:25 pm

hi all. how can i allow access (prior authorization) to some URL (web page) on my web server (www.server.cm), for user behind my hotspot gateway.

for instance, if i need to allow access without authorization to theses 3 url

www.server.cm/go/test1.php
www.server.cm/go/test2.php
www.server.cm/go/test3.php

while denying access to any other web page on my web server prior authorization

how can i do without affecting hotspot feature ?

NB: login page is locate on web server

thanks for your help
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Deny access in hotspot using wallen garden

Wed Oct 21, 2009 10:34 pm

/ip hotspot walled-garden add dst-host=www.server.cm dst-port=80 path=:^/go/test[123]\.php$ action=allow
 
piatthi
newbie
Topic Author
Posts: 32
Joined: Tue May 05, 2009 10:56 am

Re: Deny access in hotspot using wallen garden

Wed Oct 21, 2009 10:48 pm

this will deny login page. my routeros is unable to redirect users to login page. when i launch a web page, i'm not able to see login page, i have a error message " BAD error..... """

thanks again for your help
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Deny access in hotspot using wallen garden

Wed Oct 21, 2009 10:51 pm

What exact error message do you get? What is the actual URL of the login page on the remote server? How do you redirect to it?
 
piatthi
newbie
Topic Author
Posts: 32
Joined: Tue May 05, 2009 10:56 am

Re: Deny access in hotspot using wallen garden

Tue Oct 27, 2009 3:00 pm

hi , if need to use regular expression to match one link in HTTP-level wallen garden, which caractar can i use ?

for instance,
i need to match all the link beginning with "www.server.net/login.test/" how can i process ?


thank so much for your help
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Deny access in hotspot using wallen garden

Tue Oct 27, 2009 5:08 pm

Should be
/ip hotspot walled-garden add dst-host=www.server.net dst-port=80 path=:^/login\.test/.*$ action=allow

Who is online

Users browsing this forum: cneg1485, jaclaz, stthereseinstitute, TomSvitana and 73 guests