Forum Discussion
Nicolas_ROMERO_
Dec 30, 2015Nimbostratus
iRule SNAT for multiple ISP
Hi,
I tried to configure an iRule to SNAT specific LAN to a specific ISP (wan link). When I bind this iRule to my default VS (in fastL4) the iRule doesn't match when I generate traffic from my l...
Kai_Wilke
Dec 31, 2015MVP
Hi Nicolas,
as Vernon already said the code as is looks fine and some debug line would definately help to troubleshoot the problem.
Also keep in mind that possible route domain sufixes may break the functionality of [IP::addr]. You may have to strip these %id suffixes before comparing the client ip.
when CLIENT_ACCEPTED {
set cli_ip [substr [IP::client_addr] 0 "%"]
if { ( [IP::addr $cli_ip equals X.X.X.X/26] ) or
( [IP::addr $cli_ip equals Y.Y.Y.Y/26] ) } then {
snat Z.Z.Z.Z pool default_gw_pool
} else {
snatpool snat_pool-CLD_ALL
pool default_gw_pool
}
}
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