Learning F5 BIG-IP on a real data-centre fabric running on SONiC switches (part 8): SSL offload and re-encryption with a lab CA

Part 8. TLS on the F5 BIG-IP: certificates from a lab certificate authority, client SSL and server SSL profiles, SSL offload and re-encryption, enabling TLS 1.3, and validating the servers' certificates.
Hand-drawn spine-leaf fabric with a firewall, a BIG-IP and an app: part 8, SSL offload

On this page

This is part 8 of a series on learning F5 BIG-IP Local Traffic Manager on a real data-centre fabric running on SONiC switches. Each part goes with a video on the LevelUP I.T. YouTube channel. Part 7 covered persistence. This part puts the BIG-IP in the middle of HTTPS: certificates from a lab certificate authority, SSL offload, and re-encryption to the servers.

Two virtual server designs show the same padlock in the browser, with very different traffic behind the BIG-IP. With SSL offload, the BIG-IP decrypts and sends plain HTTP to the servers. With re-encryption, it decrypts, reads the request, and encrypts again to the servers' own HTTPS, checking their certificates against the lab CA. When that check was pointed at the wrong CA on purpose, every user request failed while every pool member stayed green.

SSL offload and re-encryption: the same padlock, different traffic behind the BIG-IP
SSL offload and re-encryption: the same padlock, different traffic behind the BIG-IP

What you'll see

  • Why the BIG-IP decrypts at all, the TLS handshake, and the two separate TLS sessions.
  • Certificates, keys and chains, the lab CA, and importing a pair in the web UI.
  • A client SSL profile and an HTTPS virtual server: SSL offload, from curl and from Firefox.
  • Why the first connection used TLS 1.2, and enabling TLS 1.3 with a cipher group.
  • Re-encryption with a server SSL profile that validates the servers, and what happens when it can't.
  • Cookie persistence over HTTPS, the HTTP to HTTPS redirect, SNI, client certificates, renewals and a design checklist.

TLS on a load balancer

The BIG-IP can only use what it can read. Cookie persistence, X-Forwarded-For, redirects and iRules all need HTTP, and inside TLS it sees nothing. On a virtual server there are two separate TLS sessions: on the client side a client SSL profile makes the BIG-IP the server, and on the server side a server SSL profile makes it the client. Each negotiates its own version, cipher and certificate.

Two separate TLS sessions: client SSL and server SSL
Two separate TLS sessions: client SSL and server SSL

That gives three designs: pass-through (no SSL profiles, no HTTP features), SSL offload (client SSL only) and re-encryption (client SSL and server SSL).

This post is for paying subscribers only

Subscribe to LevelUp I.T. newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox. It's free!
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!