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 ...
Kai_Wilke
MVP
Feb 24, 2016Hi Vinitshah,
you have to keep in mind that
[IP::local_addr] is the IP address of the virtual server. To have a SNAT exemption based on the pool members IP address, you have to use the [LB::server addr] command. But this command is only valid for after a pool member was selected (e.g. LB_SELECTED and later events)
when LB_SELECTED {
if { [class match [LB::server addr] equals no-nat-destination-based] } then {
snat none
log local0. "Client/Source Address -> IP address [IP::client_addr]"
log local0. "Server/Destination Address -> IP address [LB::server addr]"
}
}
Cheers, Kai
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