Forum Discussion
iRule and BGP
- Mar 05, 2020
Hi Rolf,
Take a look at the NAT policies you can configure within AFM. These policies are very comprehensive, and if I’m not mistaking you can alter the source address based on the egress interface the packet is leaving the BIG-IP.
Kind regards,
Niels
You can't query the routing table directly from an iRule.
You could do this by specifying nodes and transparent monitor.
Create a node for each of your gateways.
For each node, create a transparent ICMP monitor that checks an IP address past the gateway.
K8971: Creating transparent ICMP health monitors
In your iRule, use LB::status to determine which of the nodes (gateways) is available, and set the outgoing SNAT as appropriate based on the route priority.
Hi,
Ok thanks for that. That sounds like an interessting approach, but still I do not know what Route a specific connection has choosen. So I do not know what SNAT Pool to assing using the iRule...
Best Regards
Rolf
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