Forum Discussion
kmtmt_51646
Nimbostratus
Oct 04, 2012Request URL matching by Data Group
Dear forum members,
It's my first time to play with Data Group. I created it from GUI like follows:
========
ltm data-group internal /Common/addresslist {
records { ...
nitass
Employee
Oct 04, 2012e.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
myrule
}
snat automap
vlans-disabled
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm data-group internal addresslist
ltm data-group internal addresslist {
records {
www.abc.com { }
www.abcd.com { }
www.abcde.com { }
}
type string
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
set host [HTTP::host]
if {[class match -- $host equals addresslist]} {
pool pool-1
}
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port] | $host | [LB::server pool]"
}
}
[root@ve11a:Active:Changes Pending] config tail -f /var/log/ltm
Oct 4 21:58:35 tmm info tmm[9895]: Rule /Common/myrule : 172.28.19.251:36481 | www.abc.com | /Common/pool-1
Oct 4 21:58:52 tmm info tmm[9895]: Rule /Common/myrule : 172.28.19.251:36482 | www.other.com | /Common/foo
Oct 4 21:58:57 tmm info tmm[9895]: Rule /Common/myrule : 172.28.19.251:36483 | www.abcd.com | /Common/pool-1
Oct 4 21:58:59 tmm info tmm[9895]: Rule /Common/myrule : 172.28.19.251:36484 | www.abcde.com | /Common/pool-1
Oct 4 21:59:03 tmm info tmm[9895]: Rule /Common/myrule : 172.28.19.251:36485 | www.xyz.com | /Common/foo
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects