871 B
Executable File
871 B
Executable File
Dockerized OpenConnect-SSO with noVNC and Cloudflared
Setup
-
Copy
.env.exampleto.envand fill values (URLs, servercert pins, VNC passwords, cloudflared tokens). -
First-time SSO: leave
OC_SSO_ARGS_*=--browser-display-mode visible. -
Build and start: docker compose build docker compose up -d vpn_a
Open http://localhost:6901, complete SSO.
After success, attach app containers or start cloudflared_a.
-
Optional: switch to headless after first login: Set
OC_SSO_ARGS_*=--browser-display-mode hidden(orheadless) and restart the vpn service.
Notes
- Each VPN runs in its own net namespace; routes from one cannot affect the other or the host.
- DNS from the VPN applies within its container namespace and attached services only.
- Persisted state lives in the named volumes mounted at
/root(Playwright cache, configs).