Forum Discussion
Matt_May_64216
Nimbostratus
Oct 06, 2005Reading TCP:Payload from a SSL'd Virtual Server
Im trying to read the first few bytes of a incomming connection to decide where it goes. When i have a SSL Profile (Client) setup on the Virtual server the TCP::Payload returns the encrypted data. Is there a way to read the decrypted message?
when CLIENT_ACCEPTED {
TCP::collect 5
}
when CLIENT_DATA {
log "Received Client date ... [TCP::payload]"
if {[TCP::payload ] starts_with "UK" } {
pool UAT-UK
log "UK"
} elseif {[TCP::payload] starts_with "Ofex" } {
pool UAT-Ofex
log "Ofex"
} else {
log "Lookup Failed"
}
}
Kind regards
Matt May
- unRuleY_95363Historic F5 AccountUnfortunately, we don't yet have an SSL::collect, SSL::payload or an SSL_DATA event and that would be needed to inspect the unencrypted data.
- Matt_May_64216
Nimbostratus
Do you know if ther are any plans to include those commands in the near future? - drteeth_127330Historic F5 AccountWe have been planning to add collect and release functionality to the STREAM module. I believe this could be used in conjuction with SSL to accomplish your task. Unfortunately, I can't provide you with a definite release date or version.
- Brian_Gupta_115
Nimbostratus
What would happen if I put a VIP in a pool? - drteeth_127330Historic F5 AccountI don't think it will be rejected by the GUI. However, it probably won't work as you would hope. Assuming that there is a matching interface route, BIG-IP will simply try to connect to a node with the given IP. The fact that the IP matches the destination of a vip doesn't result in any special treatment. We are planning support vips as pool members in a future release.
- Brian_Gupta_115
Nimbostratus
I just want to clarify... Are you saying that the following would work? (Please note this would all be configured on one BigIP, with all VIPs on the same VLAN/Interface). - drteeth_127330Historic F5 AccountNo, you misunderstood. BIG-IP will look for a node with the same address as the vip from step one, and it won't find one. This would work if you follow Unruley's suggestion and use a patch cable to connect one network port to another.
- Brian_Herr_1028
Nimbostratus
Has the ability to collect data after the SSL decryption been added since this thread was last updated? We have need of this ability to meet certain security/regulatory constraints. We are ultimately looking for an event that fires after the SSL decryption like the CLIENT_DATA does on an unencrypted socket. I hear that using the STREAM: is the answer. Is this true? - Deb_Allen_18Historic F5 AccountNo, there haven't been any new events added to that flow yet.
- wmazanek_98800
Nimbostratus
Yet another way to direct traffic from ssl vserver to standard vserver where payload is unencrypted is doing it by an iRule.
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