Forum Discussion
iRule to Forward traffic to new Virtual Address based on Originators Subnet
Need an iRule example to forward a client request to another virtual address based on the requester's subnet. We're transitioning from an old virtual to a new one and but updating all the clients is rather difficult. My intent is to have a rule on the old virtual to forward particular subnets to the new virtual for testing until we can update the client systems.
I have virtualA 10.10.10.20 and virtaulB with 10.10.20.30. If the client originates from mask 255.255.255.0 then forward the request to virtualB.
So far I've pieced together the below,
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals mask 255.255.255.0] } { set forwarded_ip 10.10.20.30 } }
To build upon what I have so far, I need something to support multiple subnets.
Recent Discussions
Related Content
* 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