i mean something like this. is it what you are asking?
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.16.1.1:any
ip protocol 6
rules myrule
}
[root@ve10:Active] config b pool foo list
pool foo {
monitor all tcp41000 and tcp56000
members {
192.168.1.10:any {}
192.168.1.11:any {}
}
}
[root@ve10:Active] config b monitor tcp41000 list
monitor tcp41000 {
defaults from tcp
dest *:41000
}
[root@ve10:Active] config b monitor tcp56000 list
monitor tcp56000 {
defaults from tcp
dest *:56000
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if {[class match -- [IP::client_addr] equals network_class]} {
if {[LB::status pool foo member 192.168.1.10 0] equals "up"} {
pool foo member 192.168.1.10 0
}
}
}
}
[root@ve10:Active] config b class network_class list
class network_class {
{
network 192.168.1.0/24
network 192.168.2.0/24
}
}