We have an application that can only send TCP to one destination and we’d like to have the F5 do two things with each incoming packet: 1. Send original TCP packet to original destination. 2. Convert the TCP packet to UDP and send to a copy of the packet to a “mirror” destination.
This virtual server would be a protocol converter and “splitter” at the same time.
The client application we want to work on creates 4 TCP connections to the server on different TCP ports.
Clients 1 sends TCP from 10.10.10.10 to Server 1 at 20.20.20.20 on TCP port 8000 Clients 1 sends TCP from 10.10.10.10 to Server 1 at 20.20.20.20 on TCP port 8001 Clients 1 sends TCP from 10.10.10.10 to Server 1 at 20.20.20.20 on TCP port 8002 Clients 1 sends TCP from 10.10.10.10 to Server 1 at 20.20.20.20 on TCP port 8003
We would like to have this data flow after we insert the F5:
Client 1 sends TCP from 10.10.10.10 to F5 VIP on TCP port 8000, then F5 VIP sends to server 1 at 20.20.20.20 on TCP port 8000 and then UDP to server 2 at 30.30.30.30 on UDP port 8000 Client 1 sends TCP from 10.10.10.10 to F5 VIP on TCP port 8001, then F5 VIP sends to server 1 at 20.20.20.20 on TCP port 8001 and then UDP to server 2 at 30.30.30.30 on UDP port 8001 Client 1 sends TCP from 10.10.10.10 to F5 VIP on TCP port 8002, then F5 VIP sends to server 1 at 20.20.20.20 on TCP port 8002 and then UDP to server 2 at 30.30.30.30 on UDP port 8002 Client 1 sends TCP from 10.10.10.10 to F5 VIP on TCP port 8003, then F5 VIP sends to server 1 at 20.20.20.20 on TCP port 8003 and then UDP to server 2 at 30.30.30.30 on UDP port 8003
The pieces I need appear to be: 1. Conversion from TCP to UDP. I found an article where someone has done this. DevCentral - An F5 Technical Community 2. High speed logging. This feature seems to give me the ability to send a copy of the data of a packet.
I’m relatively new to F5, so here is what i was thinking the solution would be: 1. Standard TCP virtual server that forwards original TCP packet to original destination in a pool. 2. High speed logging rule in an iRule that will convert data to UDP and send to server 2, which is in a separate pool.
Questions: 1. Does the HSL command replace the need to include the TCP to UDP iRule commands? 2. Does the HSL command need to send to a specific type of pool? is it some kind of syslog pool or can it just be a pool i create? The documentation seems to indicate it’s just a normal pool 3. How do I tell the HSL command to take all of the user data in the TCP packet? 3. Is there a better way to do this?
Thank you very much in advance for your help! Damon