Celebrating 700K+ Installs Up to 35% OFF! View Details β†’

Websocket passthrough

Published 2 years ago

# SafeLine WAF
# πŸ’‘ feature
# βœ… done

Published 2 years ago

profile_photo

Naldela Teleyal

Updated 2 years ago

0

Adding support for websockets via HTTP/1.1 would be nice. I don't think, that they have to be β€œdecrypted” by the WAF, but are simply passed through, to protect software like gotify, ntfy, Zammad, Minio, Rocket.Chat, ...

Nginx needs to set the following proxy settings, to enable websocket support:

1map $http_upgrade $connection_upgrade_keepalive {
2    default upgrade;
3    ''      close;
4}
1proxy_http_version          1.1;
2proxy_set_header Connection $http_connection;
3proxy_set_header Upgrade    $http_upgrade;
profile_photo

Naldela Teleyal

Updated 2 years ago

0

OK, with the Module "Scanner" in Audit mode websockets work as expected πŸ€”

profile_photo

Naldela Teleyal

Updated 2 years ago

0

It would be amazing, when you could switch these modes domain based

profile_photo

Monster

Updated 2 years ago

0

Safeline supports websockets naturally, so no configuration is required.

Websocket passthrough | CyberServal | CyberServal