Forum Discussion
Jliz_44390
Nimbostratus
Jul 27, 2007Matching Source and Destination for NAT
I've let this simple problem drive me nuts now for a day and half and I've yet to find the solution.
I'm trying to NAT when a request is made from a server behind the LB to a VIP on the same...
Esa_Kuusisto_27
Nimbostratus
Aug 01, 2007Hi
Thanks for the help. With examples I made a simple iRule:
when CLIENT_ACCEPTED {
if { ( [matchclass [IP::client_addr] equals $::NattedNetwork] )
and [matchclass [IP::remote_addr] equals $:rivateNetwork]}{
forward
} elseif { [matchclass [IP::client_addr] equals $::NattedNetwork] }{
snat automap
} else {
forward
}
}Class NattedNetwork is network where I do not want to use SNAT and class PrivateNetwork is network where I want to NAT in certain cases.
-Esa
PS. I know, last else with forward is not needed
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