Forum Discussion
MO_57487
Nimbostratus
Mar 13, 2008Slective Snat
I need to come up with selective snat that will only snat vip to vip traffic and not snat client to application traffic.
internal interface:
10.x.188..x /24
External interface (Vip Traffic):
10.x.186.x /24
I think this will work bu not sure?
when LB_SELECTED {
if {[IP::addr "10.x.186.0/24" equals 10.x.186.0/24]} {
snat automap
}
}
I took it from this selective snat irule that I found in the samples section.
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
snat automap
}
}
any help would be greatly apreciated.
- The_Bhattman
Nimbostratus
I believe that the sample will work for you - MO_57487
Nimbostratus
Do need to put the client ip information or are these standard varibles? LB::server addr - The_Bhattman
Nimbostratus
The IP::client_addr is the going to pull the client address that is requesting the VIP.
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