Forum Discussion
François_Bégin_
Nimbostratus
Dec 06, 2005NAT based on port
I am trying to set up *outbound* NATing based on port. We want to initiate connections from an internal box.
If the connection is on port 22, we want it NATed to 205.206.123.140.
If the...
unRuleY_95363
Dec 06, 2005Historic F5 Account
You should be able to accomplish this simply with 2 virtuals and a snat. No iRules necessary. Something like this:
virtual ssh_snat {
destination *:22
snat 205.206.123.140
forward
}
virtual http_snat {
destination *:80
snat 205.206.123.145
forward
}You would want to make sure your client's routes point at the bigip, so the traffic gets sent to the bigip and through those wildcard virtual servers.
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