Hi Nathan,
Actually I need to indicate each remote network subnet and I need to load balance according to the networks. while clients are coming run two tcp port like 41000 and 56000 and these ports need to run on the same node.Therefore, I have configured the source adress affinity as match across services.and now as mentioned above how can I load balance via an irule. as you understand each node has both the 41000 and the 56000 ports.That's why there are two virtual server which have the same ip but just ports different like 41000 and 56000 so there are two pool and each pool member include 192.168.1.10:41000 and 192.168.1.11:41000 and other pool include 192.168.1.10:56000 and 192.168.1.11:56000
if clients remote address match the 192.168.1.0 or 192.168.2.0 /24 network redirect to node1 else redirect to node2 but if node1 is down all active and new connections redirect to nod2 or if node2 is down all active and new connections redirect to node1
I guess We need to use when client accepted and when lb failed parameters.
Thank you in advance.