Forum Discussion
JasonC_40913
Nimbostratus
Jan 25, 2010Route Back to the Original Server through VIP
Hello everyone,
I received a request on establishing a very simple (but looks stupid) connection, but I don't really know how to make it successful. Hope someone could help here...
hoolio
Cirrostratus
Jan 28, 2010You would only need to use matchclass if you wanted to check if the remote port was in a datagroup. Also, TCP::remote_port in a clientside event like CLIENT_ACCEPTED will return the client's source port. TCP::local_port will check the client's destination port.
Can you try this:
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: New connection to [IP::local_addr]:[TCP::local_port]"
if { ([IP::addr [IP::client_addr] equals 1.1.1.1]) and ([TCP::local_port] equals 80]) } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched IP/port check"
node [IP::client_addr]
snat automap
}
}
Aaron
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