Chapter 32 Hotspot
ZyWALL Series CLI Reference Guide
274
32.13.2 walled-garden domain-ip rule Sub-commands
The following table describes the sub-commands for several walled-garden domain-ip rule
commands. Note that not all rule commands use all the sub-commands listed here.
32.13.3 Walled Garden Command Example
This example shows how to enable the walled garden feature and insert a walled garden link rule at
position 1 of the checking order. This example also displays the rule settings. The link rule uses the
following settings:
•Activate: yes
• Name: Example1
• URL: www.example.com
Table 144 walled-garden domain-ip rule Sub-commands
COMMAND DESCRIPTION
[no] activate
Enables this entry. The no command disables the entry.
[no] name description
Sets a descriptive name for the walled garden link to be displayed in the login
screen. The
no command clears the description.
description: You can use up to 31 alphanumeric characters (A-Z, a-z, 0-9)
and underscores (_). Spaces are not allowed. The first character must be a
letter.
[no] type {domain|ip}
Sets the rule type to be a domain name or an IPv4 IP address.
[no] domain-name
walled_garden_fqdn
Sets a fully qualified name for the domain type rule.
walled_garden_fqdn: Type a valid fully qualified name for this rule.
The
no command removes the fully qualified name.
[no] ip-address <w.x.y.z>/
<1..32>
Sets the IPv4 subnet in CIDR format for the ip type rule. For example,
192.168.1.0/32.
The
no command removes the web site address.
Router# configure terminal
Router(config)# walled-garden activate
Router(config)# walled-garden rule insert 1
Router(walled-garden)# activate
Router(walled-garden)# name Example1
Router(walled-garden)# url http://www.example.com
Router(walled-garden)# exit
Router(config)# show walled-garden
walled garden rule: 1
active: yes
url: http://www.example.com
name: Example1
Router(config)#