Forum Discussion
Or_A_157009
Mar 01, 2016Cirrus
F5 iRule - Change node dynamically and keep the default pool
Hello,
i have written an iRule that changes the destination ip of the http request, it's done by:
node $destProxy $destPort
after doing that the request goes to the default gateway of ...
VernonWells
Mar 01, 2016Employee
Are you trying to control how the packet is routed toward the destination address? If so, you can utilize the nexthop command.
I will say that you can, in fact, use a pool as the default gateway, if that's what you really want:
tmsh create net route default network default pool /Common/some-pool-or-another
- Or_A_157009Mar 01, 2016Cirrushey, thanks for the answer. i want to keep my existing default gateway for other traffic. for this specific irule i want a different pool as a gateway. the next hop is a good option if the gateway is one, but in my setup i have a pool with 2 nodes for round robin. the only thing i could think of is a virtual mac at the gateways...
- VernonWellsMar 01, 2016EmployeeCan you insert a specific route to the destination in question? That is, if the node is a single address, say 74.56.1.5, can you add a route for 74.56.1.5/32 pointing to the pool you desire?
- Or_A_157009Mar 02, 2016Cirrusno, the node is dynamic, changes from time to time. but i have figured it out without the node command. got another device after the f5 to do this exact job. thanks!
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