Forum Discussion
Robert_Luechte2
Cirrus
Jul 05, 2016static snat assignment not working as expected
I'm trying to do a static SNAT assignment for a virtual server based on the client's source IP address. I'm using the following iRule to do this:
when RULE_INIT {
Use a local array to config...
Vijay_E
Cirrus
Jul 05, 2016Are the SNAT IPs being used by any other configuration object or may be the iRule is assigned to some other VS ? Can't you utilize 1 pool member in the default pool attached to the VS and then do a tcpdump on the server ? That should be more definitive, assuming you are inserting the client IP in XFF header.
or add a log statement in the iRule just below the snat IP selection:
log local0. "CLIENT IP - [IP::client_addr] - Selected SNAT - $static::snat_ips([expr {[crc32 [IP::client_addr]] % [array size static::snat_ips]}])"Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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