Hello,
I am trying to use the newly introduced PROXY Protocol support in OpenLiteSpeed 1.9.0 with an Nginx Stream proxy, but I have not been able to get it working.
Environment
Internet
│
▼
Nginx Stream (VPS)
│
WireGuard
│
OpenLiteSpeed (Home Server)
Nginx Stream configuration
stream {
upstream home_https {
server 10.100.100.2:443;
}
server {
listen 443;
proxy_pass home_https;
proxy_protocol on;
}
}
OpenLiteSpeed configuration
tuning {
proxyProtocolIP 10.100.100.1
}
10.100.100.1 is the WireGuard IP of the VPS and is the source IP that OpenLiteSpeed sees for incoming connections.
Behavior
Questions
Thank you.
I am trying to use the newly introduced PROXY Protocol support in OpenLiteSpeed 1.9.0 with an Nginx Stream proxy, but I have not been able to get it working.
Environment
- OpenLiteSpeed 1.9.0
- Nginx Stream on a VPS
- WireGuard tunnel between VPS and home server
Internet
│
▼
Nginx Stream (VPS)
│
WireGuard
│
OpenLiteSpeed (Home Server)
Nginx Stream configuration
stream {
upstream home_https {
server 10.100.100.2:443;
}
server {
listen 443;
proxy_pass home_https;
proxy_protocol on;
}
}
OpenLiteSpeed configuration
tuning {
proxyProtocolIP 10.100.100.1
}
10.100.100.1 is the WireGuard IP of the VPS and is the source IP that OpenLiteSpeed sees for incoming connections.
Behavior
- If proxy_protocol on; is disabled on Nginx Stream, the website loads normally over HTTPS.
- If proxy_protocol on; is enabled, HTTPS immediately fails in the browser with ERR_SSL_VERSION_OR_CIPHER_MISMATCH.
Questions
- Is the above configuration sufficient to enable PROXY Protocol in OpenLiteSpeed?
- Is proxyProtocolIP the only required setting, or are there additional directives needed?
- Does PROXY Protocol currently work with HTTPS listeners in OpenLiteSpeed 1.9.0?
- Is there a working example of OpenLiteSpeed behind Nginx Stream using PROXY Protocol?
Thank you.