A template for creating a vpn development container.
It can be used to:
- proxy traffic via a vpn
- used as remote development container with visual studio code
- run docker in docker
NOTE: See OpenConnect container minimal for a version suitable for Development Containers.
- copy company.cer, user.key and user.pem into
certs
directory - create
.vpn-env
file (copy sample) and fill out the missing values
docker compose build
docker compose up -d
- Open a new vscode window
- Attach vscode to the running container by either
- Selecting "Open Remote Window" (blue icon in the left down corner) -> "Attach to running container"
- Pressing
Crtl + Shift + P
(linux) orCmd + Shift + P
(mac) -> "Dev Containers: Attach to running container"
The Proxy is forwarded to localhost:3128
and currently configured to allow http and https connections (see squid.conf).
Use Foxy Proxy or similar tools in your browser to access it.