I’m pretty new to real networking, moving from from ‘twiddle until it works’ to understanding and predicting how things will work.
Currently, I’m working to set up reverse proxy for a few services I want to expose publicly. They’re on proxmox, on a VLAN, with their own pfSense interface. DNS works for both subnets.
I’m having trouble reverse proxying Bitwarden. I watched all of @LTS_Tom’s most excellent videos on haproxy, including troubleshooting.
Where I am:
- Internal CA works well (quite familiar with that)
- LetsEncrypt wildcard domain cert works fine (*.example.com)
- Bitwarden’s nginx has a self-signed cert, and runs on 443 (10.10.1.15:443).
- I can access bitwarden internally via IP and via URL (like internal.example.home.arpa).
- haproxy health check works - Bitwarden is active.
- created a reverse proxy test server (
10.10.1.14:80). haproxy forwards them properly; 'https://proxytest.example.com` works with the trusted LetsEncrypt certificate.
What I’ve done:
- backend for bitwarden is ssl, but no checks. Health check is
HTTP GET. Otherwise, the backend is defaults. - frontend for all is bound to WAN interface. The frontend cert is properly chosen. The frontend works (see
proxytest.example.com) above.
What doesn’t work:
passwords.example.comseems to get to the Bitwarden server. Bitwarden’s nginx returns:400 Bad Request“The plain HTTP request was sent to HTTPS port”.
I’m not clear why a plain request is being sent to the Bitwarden server. The server is configured for Encrypt (SSL) but SSL Checks are not enabled.
Side issue: The pfsense System Logs > Packages > haproxy logs are blank. I can’t see any logging for haproxy.
What am I missing?