Forum Discussion
J_Peterman_4266
Jul 18, 2012Nimbostratus
Having trouble with destination based SNAT irule
We are looking to implement destination based SNAT via iRule where all traffic destined to RFC 1918 space does not get SNAT outbound and it retains its private addressing, all other traffic destined t...
Brian_Van_Stone
Jul 19, 2012Nimbostratus
It won't let me edit my post and that's quit unreadable. Sorry...take two...
when CLIENT_ACCEPTED {
set local [IP::local_addr]
switch -glob $local {
10.* {
log local0. "MATCH NO SNAT CLASS"
snat none
}
172.1[6-9].* -
172.2[0-9].* -
172.3[0-1].* {
log local0. "MATCH NO SNAT CLASS"
snat none
}
192.168.* {
log local0. "MATCH NO SNAT CLASS"
snat none
}
default {
log local0. "MATCH AND SNAT"
snat 1.1.1.1
}
}
}
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