if i am not wrong, it seems to be LB::server.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
b[root@ve1023:Active] config b pool foo1 list
pool foo1 {
members 200.200.200.102:80 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
log local0. ""
}
when HTTP_REQUEST {
set req [HTTP::uri]
log local0. "[LB::server addr]"
switch -glob $req {
*.jpg { pool foo1 }
}
}
when HTTP_RESPONSE {
log local0. "[IP::client_addr]:[TCP::client_port] -> [IP::remote_addr]:[IP::remote_addr]|$req"
}
}
curl http://172.28.19.79/test.html http://172.28.19.79/husky.jpg http://172.28.19.79/f5.gif > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 149 100 149 0 0 32112 0 --:--:-- --:--:-- --:--:-- 0
100 284 100 284 0 0 79396 0 --:--:-- --:--:-- --:--:-- 79396
100 281 100 281 0 0 126k 0 --:--:-- --:--:-- --:--:-- 126k
[root@ve1023:Active] config cat /var/log/ltm
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule CLIENT_ACCEPTED:
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_REQUEST:
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_RESPONSE: 172.28.19.80:51262 -> 200.200.200.101:200.200.200.101|/test.html
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_REQUEST: 200.200.200.101
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_RESPONSE: 172.28.19.80:51262 -> 200.200.200.102:200.200.200.102|/husky.jpg
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_REQUEST: 200.200.200.102
Dec 23 11:01:32 local/tmm info tmm[26866]: Rule myrule HTTP_RESPONSE: 172.28.19.80:51262 -> 200.200.200.102:200.200.200.102|/f5.gif