Alteon Application Switch Operating System Application Guide
Content-Intelligent Server Load Balancing Not Using Layer 7 Content Switching Rules
824
Document
ID:
RDWR-ALOS-V2900_AG1302
1. Identify the ID numbers of the defined strings. The strings in bold in the filters defined above
are used in this example.
2. Configure Filter 4.
>> # /cfg/slb/layer7/slb/cur
Number of entries: 141: any, cont 256
2: HTTPHDR=Host:wap.example.com, cont 256
3: HTTPHDR=Host:wap.yahoo.com, cont 256
4: HTTPHDR=Host:wap.google.com, cont 256
5: HTTPHDR=Host:wap.p-example.com, cont 256
6: HTTPHDR=Host:10.168.224.227=/top, cont 256
7: jad, cont 256
8: jar, cont 256
9: HTTPHDR=Accept:text/vnd.foo.j2me.app-descriptor , cont 256
10: HTTPHDR=Host:mobile.example.com=/4g/w?url=$HOST_URL, cont 256
11: HTTPHDR=Host:any, cont 256
12: HTTPHDR=Host:any:90, cont 256
13: HTTPHDR=Host:any:8080, cont 256
14: HTTPHDR=X-Foo-ipaddress:10.168.100.* , cont 256
15: HTTPHDR=Host:www.abc.com, cont 256
16: HTTPHDR=Host:any:443, cont 256
17: HTTPHDR=Host:mobile.example.com=/4g/w?url=
$HOST/nava/toggle.jad, nre, cont 1024
18: HTTPHDR=Host:mobile.example.com=/4g/w?url=dev.example.com/$URL, nre, cont
1024
>> /cfg/slb/filt 4
>> Filter 4 # dip 10.46.6.231
Current destination address: any
New pending destination address: 10.46.6.231
>> Filter 4 # smask 255.255.255.255
Current source mask: 0.0.0.0
New pending source mask: 255.255.255.255
>> Filter 4 # proto tcp
Enter protocol or any: udp
Pending new protocol: tcp
>> Filter 4 # dport http
Current destination port or range: any
Pending new destination port or range: http
>> Filter 4 # action redir
Current action: allow
Pending new action: redir
>> Filter 4 # /cfg/slb/filt/adv/layer7
>> Layer 7 Advanced# addrd
Enter filtering string ID (1-1024) to redirect from: 11
Enter filtering string ID (2-1024) to redirect to: 12