Forum Discussion
Redirect based on source IP to an external IP
First of all redirecting only works for http(s) traffic. You can't redirect traffic for non http(s) traffic, because it isn't part of the protocol. So there is no way to let the client know that it should connect to a different host for non http(s) traffic.
For http OR https you can simply use a http profile which redirects the traffic:
ltm profile http redirect_to_sas {
app-service none
fallback-host http://2.2.2.2
}
In a similar way you can make a http profile for redirect for https and redirect for https port 8443.
For the SSH connection you can use the node statement in an iRule (see: https://devcentral.f5.com/wiki/iRules.node.ashx)
I hope this helps
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