Forum Discussion
SNAT based on source and destination
- Mar 17, 2020
The problem you have is that in CLIENT_ACCEPTED, IP::client_addr and IP::remote_addr are the same IP address
> Description
> Returns the IP address of the host on the far end of the connection.
> In the clientside context, this is the client IP address.
You can check IP::server_addr, but I'm not entirely sure it will be valid in context.
You probably need a specific virtual server for the required destination, and can then apply the SNAT for some specific client IP addresses.
The problem you have is that in CLIENT_ACCEPTED, IP::client_addr and IP::remote_addr are the same IP address
> Description
> Returns the IP address of the host on the far end of the connection.
> In the clientside context, this is the client IP address.
You can check IP::server_addr, but I'm not entirely sure it will be valid in context.
You probably need a specific virtual server for the required destination, and can then apply the SNAT for some specific client IP addresses.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
