Forum Discussion
dmoon57_23603
Nimbostratus
Nov 04, 2008is snat the solution?
here's my situation:
I have two servers that have two apps listening on separate ports (one listening on 8080, the other on 8081). The server's default gateway is not the LTM. On the LTM, I have two pools and two vips set up using the same servers, just on different ports:
pool APP1_POOL {
monitor all gateway_icmp
members
10.100.70.199:8080
10.100.70.201:8080
}
pool APP2_POOL {
monitor all gateway_icmp
members
10.100.70.199:8081
10.100.70.201:8081
}
virtual APP1_VIP {
pool APP1_POOL
destination 10.100.59.130:http
ip protocol tcp
profiles
oneconnect
tcp
persist app1_cookie
}
virtual APP2_VIP {
pool APP2_POOL
destination 10.100.59.131:8081
ip protocol tcp
profiles
oneconnect
tcp
persist app2_cookie
}
The 8081 app makes a call to the vip: http://10.100.59.131:8081. I thought a simple snat would do the trick but it doesn't seem to work, my connection hangs:
snat mysnat_snat {
translation 10.100.59.131
origins
10.100.70.199
10.100.70.201
}
any ideas?
- hoolio
Cirrostratus
That looks like it should work. Can you try SNAT automap instead. This would use the floating self IP on the servers' VLAN instead of the VIP address on another VLAN.when LB_SELECTED { if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} { snat automap } }
- dmoon57_23603
Nimbostratus
Didn't work. The weird thing is, I have a very similar setup working on different LTM. - hoolio
Cirrostratus
I can't see why it wouldn't be working with your original configuration or SNAT automap. Can you capture a tcpdump of the issue? You can search on AskF5 for tcpdump or SOL411 for info on using tcpdump. - dmoon57_23603
Nimbostratus
this is with a filter for port 8081 listening on the special f5 interface 0.0 - hoolio
Cirrostratus
Here is a simplified version of the trace:
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