Forum Discussion
iamjepoy2k16_26
Nimbostratus
Apr 04, 2019Irule : Filtering source ip and redirecting it to specific node and disabling the snat
Im relatively new in creating an iRule . We have a requirement where we need to filter a specific host ip and when it hits the vip, it will be redirected to a specific node . Additional requirement i...
Kai_Wilke
MVP
Apr 05, 2019Hi iamjepoy2k16,
an iRule to overwrite the server-side node address and SNAT settings for a specific client IP will look like this...
when CLIENT_ACCEPTED {
if { [IP::client_addr] eq "1.1.1.1" } then {
node 2.2.2.2
snat none
}
}
Note: If you use route domains you have to suffix the IPs with your route domain id (e.g.
)1.1.1.1%2
Cheers, Kai
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