Alteon Application Switch Operating System Application Guide
Content-Intelligent Server Load Balancing Not Using Layer 7 Content Switching Rules
830
Document
ID:
RDWR-ALOS-V2900_AG1302
2. Configure Filter 8 redirect URL as described above. By default, filter protocol is any. Change it to
udp.
3. Apply and save the configuration.
Example
HTTP to HTTPS Redirection
To redirect HTTP requires to HTTPS connections, the following filters can be set:
—
Filter 9—Configure a filter that intercepts HTTP traffic to http://www.abc.com and
redirects it to https://www.abc.com
—
Filter 10—Configure a filter that intercepts HTTP traffic directed to 205.10.10.10 and
redirects it to HTTPS.
1. Define Layer 7 strings and identify their ID numbers. The strings in bold in the filters defined
above are used in this example
>> /cfg/slb/filt 8
>> Filter 8 # sip 10.46.6.231
Current source address: any
New pending source address: 10.46.6.231
>> Filter 8 # smask 255.255.255.255
Current source mask: 0.0.0.0
New pending source mask: 255.255.255.255
>> Filter 8 # proto tcp
Enter protocol or any: udp
Pending new protocol: tcp
>> Filter 8 # dport http
Current destination port or range: any
Pending new destination port or range: http
>> Filter 8 # action redir
Current action: allow
Pending new action: redir
>> Filter 8 # /cfg/slb/filt/adv/layer7
>> Layer 7 Advanced# addrd
Enter filtering string ID (1-1024) to redirect from: 2
Enter filtering string ID (2-1024) to redirect to: 14
>> Layer 7 Advanced# apply
>> Layer 7 Advanced# save
/c/slb/layer7/slb/cur
ren 2 "HTTPHDR=Host:any"
ren 3 "HTTPHDR=Host:www.abc.com,"
ren 4 "HTTPHDR=Host:any:443"