Chapter 13 HTTP Redirect

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.

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 gex, x = 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:y, x = 1 - N, y = 1 - 4

 

VLAN interface: vlanx, x = 0 - 4094

 

virtual interface on top of VLAN interface: vlanx:y, x = 0 - 4094, y = 1 - 4

 

bridge interface: brx, x = 0 - N, where N depends on the number of bridge

 

interfaces your ZyWALL model supports.

 

virtual interface on top of bridge interface: brx:y, x = the number of the bridge

 

interface, y = 1 - 4

 

PPPoE/PPTP interface: pppx, x = 0 - N, where N depends on the number of

 

PPPoE/PPTP interfaces your ZyWALL model supports.

 

 

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 62 Command Summary: HTTP Redirect

COMMAND

DESCRIPTION

ip http-redirect description interface interface_name

Sets a HTTP redirect rule.

redirect-to w.x.y.z <1..65535>

 

ip http-redirect description interface interface_name

Disables a HTTP redirect rule.

redirect-to w.x.y.z <1..65535> deactivate

 

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.

124

 

ZyWALL (ZLD) CLI Reference Guide