ZyXEL Communications 3.1 User Manual

Page of 386
Chapter 13 HTTP Redirect
ZyWALL (ZLD) CLI Reference Guide
124
13.2  HTTP Redirect Commands
The following table identifies the values required for many of these commands. Other input values 
are discussed with the corresponding commands.
The following table describes the commands available for HTTP redirection.
 
You must use the 
configure terminal
 command to enter the configuration mode before you can use these 
commands. 
Table 61   
Input Values for HTTP Redirect Commands
LABEL
DESCRIPTION
description
The name to identify the rule. You may use 1-31 alphanumeric characters, 
underscores(
_
), or dashes (-), but the first character cannot be a number. This 
value is case-sensitive.
interface_name
The name of the interface.
Ethernet interface: For the ZyWALL USG 300 and above, use gexx = 1 - N, 
where N equals the highest numbered Ethernet interface for your ZyWALL 
model.
The ZyWALL USG 200 and lower models use a name such as wan1, wan2, 
opt, lan1, ext-wlan, or dmz.
virtual interface on top of Ethernet interface: add a colon (:) and the number 
of the virtual interface. For example: gex:yx = 1 - N, y = 1 - 4
VLAN interface: vlanxx = 0 - 4094
virtual interface on top of VLAN interface: vlanx:yx = 0 - 4094, y = 1 - 4
bridge interface: brxx = 0 - N, where N depends on the number of bridge 
interfaces your ZyWALL model supports.
virtual interface on top of bridge interface: brx:yx = the number of the bridge 
interface, y = 1 - 4
PPPoE/PPTP interface: pppxx = 0 - N, where N depends on the number of 
PPPoE/PPTP interfaces your ZyWALL model supports.
Table 62   
Command Summary: HTTP Redirect
COMMAND
DESCRIPTION
ip http-redirect description interface interface_name 
redirect-to w.x.y.z <1..65535> 
Sets a HTTP redirect rule.
ip http-redirect description interface interface_name 
redirect-to w.x.y.z <1..65535> deactivate
Disables a HTTP redirect rule.
ip http-redirect activate description
Enables a rule with the specified rule name.
ip http-redirect deactivate description
Disables a rule with the specified rule name.
no ip http-redirect description
Removes a rule with the specified rule name.
ip http-redirect flush
Clears all HTTP redirect rules.
show ip http-redirect [description]
Displays HTTP redirect settings.