Forum Discussion
iRule SNAT for multiple ISP
Hi,
Thank you for your advice. I confirm that I followed the SOL15582 to implement the default_gw_pool.
I remove the POOL line but the traffic still doesn't match with the iRule. Looking the statistics I noticed that the SNAT was matching with a configuration made in GUI (on the Adress Translation > SNAT List Menu). I delete this SNAT entry and I bound the iRule to the default VS but the traffic still doesn't match.
Here is the iRule :
when CLIENT_ACCEPTED { log local0. "SNAT MATCH" set cli_ip [substr [IP::client_addr] 0 "%"] if { ( [IP::addr $cli_ip equals X.X.X.X/26] ) or ( [IP::addr $cli_ip equals Y.Y.Y.Y/26] ) } then { snat Z.Z.Z.Z log local0. " -- SNAT 1-- " } else { snatpool snat_pool-CLD_ALL log local0. " -- SNAT 2-- " } }
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