dst-host ( wildcard ; default: "" ) - domain name of the destination web server (this is a wildcard)
dst-port ( integer ; default: "" ) - the TCP port a client has send the request to
method ( text ) - HTTP method of the request
path ( text ; default: "" ) - the path of the request (this is a wildcard)
server ( name ) - name of the HotSpot server this rule applied to
src-address ( IP address ) - IP address of the user sending the request
Notes
Wildcard properties (dst-host and dst-path) match a complete string (i.e., they will not match
"example.com" if they are set to "example"). Available wildcards are '*' (match any number of any
characters) and '?' (match any one character). Regular expressions are also accepted here, but if the
property should be treated as a regular expression, it should start with a colon (':').
Small hits in using regular expressions:
•
\\ symbol sequence is used to enter \ character in console
•
\. pattern means . only (in regular expressions single dot in pattern means any symbol)
•
to show that no symbols are allowed before the given pattern, we use ^ symbol at the
beginning of the pattern
•
to specify that no symbols are allowed after the given pattern, we use $ symbol at the end of
the pattern
You can not use path property for HTTPS requests as router can not (and should not - that is what
the HTTPS protocol was made for!) decrypt the request.
Example
To allow unauthorized requests to the www.example.com domain's /paynow.html page:
[admin@MikroTik] ip hotspot walled-garden> add path="/paynow.html" \
\... dst-host="www.example.com"
[admin@MikroTik] ip hotspot walled-garden> print
Flags: X - disabled, D - dynamic
0
dst-host="www.example.com" path="/paynow.html" action=allow
[admin@MikroTik] ip hotspot walled-garden>
IP-level Walled Garden
Home menu level: /ip hotspot walled-garden ip
Description
This menu is manages Walled Garden for generic IP requests. See the previous section for
managing HTTP and HTTPS protocol specific properties (like the actual DNS name, HTTP method
and path used in requests).
Property Description
Page 514 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Need help?
Do you have a question about the RouterOS v2.9 and is the answer not in the manual?
Questions and answers