Forum Discussion
vinitshah_24968
Nimbostratus
Feb 23, 2016Destination based i-rule not working
Hi ,
I have a VIP which listens on specific port . I already have an irule created for snat none but that is on client_addr basis.
I want to create an irule which will do no snat based ...
MichaelatF5
Employee
Feb 24, 2016Try this, if the client is on the same subnet it will not snat, if client is NOT on the same subnet, it will snat. Change [pool/automap/none] as needed:
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
snat [pool/automap/none]
} else {
snat none
}
}
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