Forum Discussion
A__N_5261
Nimbostratus
Dec 13, 2012SNAT for Specific Subnet
Hi ,
we have 5 VIP we have enable Snat on pool member. can we enable SNAT in this way if traffic coming from 10.0.0.0/8 subnet. Snat should work otherwise not. is there any way with ...
What_Lies_Bene1
Cirrostratus
Dec 13, 2012Great. You could add a second like this, there a few other ways you could do it too;
when CLIENT_ACCEPTED {
if { (([IP::addr [IP::client_addr] equals 10.0.0.0/8]) or ([IP::addr [IP::client_addr] equals 192.168.2.0/24 ])) } {
Use SNAT Automap if client IP is in this range
snat automap
Alternatively, specify a SNAT Pool instead
snatpool name
Stop processing the iRule for this event
return
}
else {
Stop processing the iRule for this event if no match
return
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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