Forum Discussion
Greg__33907
Nimbostratus
Jul 31, 2008iRule to SNAT dependant on source address
Hey all,
I'd like to configure and iRule and apply it to a VIP whereby it checks the source and if it is one of a list of IP addresses (or perhaps within a specific subnet). If it is I'...
Nicolas_Menant
Employee
Jul 31, 2008Hi,
You can do this with a network range or a class, it is up to you:
you must use this command: IP::addr Click here
should look like this
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr]/8 equals 10.0.0.0]} {
snat automap
}
}
with a class:
when CLIENT_ACCEPTED {
if {[matchclass [IP::client_addr] equals $::myIPs]} {
snat automap
}
}
where you created a datagroup myIPS which contains the list of IPs that should be snatted
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
