Forum Discussion
Incrumenting SNAT pool
I would like to use the iRule below with a Data Group of SNAT addresses so that each outbound connection on an L4 VIP would be SNAT'ed from the "next" address in the data group. If this is not possible using data groups, it would be OK to hard code the SNAT address list..
All the connections would be outbound on an L4 forwarding VIP from the list of servers in the dg-VIP-NAME-Srcs data group
Any ideas how I can make this happen
when CLIENT_ACCEPTED { log local0. "irule-TU client accepted from [IP::client_addr] remote [IP::remote_addr] local [IP::local_addr]" if { [class match [IP::client_addr] equals dg-VIP-NAME-Srcs]} { snat 10.128.20.199 } else { discard } }
1 Reply
- Marc_Kurath_138Historic F5 Account
when CLIENT_ACCEPTED { log local0. "irule-TU client accepted from [IP::client_addr] remote [IP::remote_addr] local [IP::local_addr]" if { [class match [IP::client_addr] equals dg-VIP-NAME-Srcs]} { snat 10.128.20.199 } else { discard } } inset code in need of mod to SNAT
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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