Forum Discussion
how to make static nat from one subnet to another
Hello, I couldn't find any information how to make static nat from one subnet to another. For example from 10.1.1.0/24 to 10.1.2.0/24, and 10.1.1.1 will be mapped to 10.1.2.1 and so on. Is it possible on ltm? We need it, because connections to virtual servers can be initiated from server pool subnet, and they need to differentiate from what source it was initiated.
Thanks in advance.
2 Replies
- hoolio
Cirrostratus
You could create a forwarding network virtual server on the destination network (10.1.1.0/24?) and then use an iRule to perform source address translation:
https://devcentral.f5.com/wiki/iRules.snat.ashx
https://devcentral.f5.com/wiki/iRules.getfield.ashx
when CLIENT_ACCEPTED { snat "10.1.2.[getfield [IP::client_addr] "." 4]" }Aaron
- BlackAbdula_103
Nimbostratus
Thanks Aaron, this is a very interesting idea :)
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