Forum Discussion
2 SNAT or not 2 SNAT
By the way....it's not that it's not working I cannot get it save without errors using switch I have it working with if else than....etc. trying to make it more efficient and faster, using switch. This is working with the exception of adding the 4th condition. when CLIENT_ACCEPTED {
if {[IP::addr [getfield [IP::local_addr] "%" 1] equals 172.23.0.0/16]
or [IP::addr [getfield [IP::local_addr] "%" 1] equals 10.0.0.0/8]
or [IP::addr [getfield [IP::local_addr] "%" 1] equals 192.168.1.0/24]
or [IP::addr [getfield [IP::local_addr] "%" 1] equals 192.168.2.0/24]
or [IP::addr [getfield [IP::local_addr] "%" 1] equals 192.168.3.0/24]
or [IP::addr [getfield [IP::local_addr] "%" 1] equals 192.168.4.0/24]}{snat none}
elseif { [IP::addr [IP::client_addr] equals 192.168.5.6%1] } {snat 192.168.100.5}
elseif { [IP::addr [IP::client_addr] equals 192.168.5.7%1] } {snat 192.168.100.13}
elseif { [IP::addr [IP::client_addr] equals 192.168.5.8%1] or [IP::addr [IP::client_addr] equals 192.168.5.9%1] } {snat 192.168.100.12}
elseif { [IP::addr [IP::client_addr] equals 192.168.5.10%1] or [IP::addr [IP::client_addr] equals 192.168.5.11%1] } {snat 192.168.100.11}
elseif { [IP::addr [getfield [IP::local_addr] "%" 1] equals 104.129.194.0/24]} {snat 192.168.100.195}
}
Recent Discussions
Related Content
* 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