Forum Discussion
valve404
Jan 21, 2022Nimbostratus
SNAT with client and pool member on same subnet
Hi, We have sort of an aut-last-hop feature on our firewall, and the lb is placed in front of the firewall. This ensures when a client from a random vlan behind the firewall connects to a VIP, the r...
DenisG
Jan 25, 2022Employee
You could use it in the LB_Selected event and the LB::Server event
https://clouddocs.f5.com/api/irules/LB__server.html
https://clouddocs.f5.com/api/irules/snat.html
there is a good starting point iRule that is liek this:
# Apply SNAT automap for clients in the 10.10.10.0/24 subnet when CLIENT_ACCEPTED { if { [IP::addr [IP::local_addr] equals 10.10.10.0/24] }{ snat automap } }
And looking here for the iRule event order - it shows it should work https://clouddocs.f5.com/training/community/irules/html/class1/module1/iRuleEventsFlowHTTPS.html
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