Hi. I am trying to diagnose why an SSH connection is getting terminated after the default idle timeout in the fastL4 profile (300s). The connection from the client is received on the “external” VLAN. My understanding of SOL6459 is that a 0.0.0.0:22 wildcard virtual server would take precedence over a 0.0.0.0:any virtual server, so my expectation is that the idle timeout value should be taken from the fastL4_long_timeout profile. But that’s not what is happening. By looking at the connection table, I have confirmed that the idle timeout value is being set based on the default fastL4 profile (300s).
The problem seems to have been introduced recently when the wildcard_ipv4_external2 virtual server was added to the configuration. But since that is not enabled on the “external” vlan, I didn’t feel there would be any conflict.
What the heck hoolio, why didn’t I know about the listener trick? Great tip, thanks for that. Anyway tcpdump says it is getting processed by the vs_0_0_0_0_any virtual server, which seems right based on what is happening. So I guess the question is why isn’t the connection processed by the vs_0_0_0_0_ssh instead, since that seems like it is more specific than any:any. SOL8009 says the value of db TM.ContinueMatching can have an effect (my value is set to true), but only when the VS is down or disabled which is not the case here. SOL6459 says *: takes priority over *:*, so I must be missing something.
I think I figured it out. My port 22 wildcard has a subnet mask of 255.255.255.255, and SOL6459 says the longest subnet match has the highest priority. I changed the port 22 subnet mask to 0.0.0.0, and now SSH is processed by the port 22 virtual server. Don’t know why this cropped up suddenly, but oh well.
Bah… I looked right at the host masks. That’s caught me out a few times. Basically, with the /32 mask on the virtual servers, LTM would be looking for a connection made to 0.0.0.0 instead of any host. Glad you figured this out.