Forum Discussion
moulingi_138795
Nimbostratus
Dec 31, 2013SNAT and Forwarding (IP) virtual servers
Hi
In following topology:
(Network) ==> Firewall ==> LTM ==> Servers
I've setup a 'forwarding (IP)' virtual server on the LTM to handle at once Servers=>Network traffic and Network=>Se...
moulingi_138795
Nimbostratus
Jan 01, 2014iRule seem to be the best option... and works as expected. I'm still trying to find a way of keeping the information on the original source adresses. Following iRule would do the job, but it's not working (on a LTM v10.2.4) :
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
set osaddr IP::client_addr
scan $osaddr %d.%d.%d.%d ip1 ip2 ip3 ip4
set tsaddr 192.168.10.$ip4
snat $tsaddr
}
}
Any idea how to achive that ?
NB : I also tried to split the original source address with:
set ip4 [lindex [split $ip "."] 3] Not working either 😞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