Skip to content

chdalski/openconnect-remote-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenConnect remote minimal

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.

Prerequisites

  • copy company.cer, user.key and user.pem into certs directory
  • create .vpn-env file (copy sample) and fill out the missing values

Build devcontainer

docker compose build

Start the devcontainer (automatically connects to vpn)

docker compose up -d

Attach vscode

  • 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) or Cmd + Shift + P (mac) -> "Dev Containers: Attach to running container"

Using the Proxy locally

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.

About

A template for creating a VPN development container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages