Skip to content

mrauhu/docker-openvpn-http-ssh-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker compose OpenVPN client with HTTP and SSH proxy

Setup

  1. Clone repository:
git clone https://github.com/mrauhu/docker-openvpn-http-ssh-proxy 
cd docker-openvpn-http-ssh-proxy 
  1. Create the config/ directory:
mkdir -p config 
  1. Copy your OpenVPN client config with certificates to the config/ directory.

  2. Create the .env.local file and set values:

OPENVPN_USERNAME= OPENVPN_PASSWORD= # Comma separated list, like: `a.example.com,b.example.com,*.internal.example.com` OPENVPN_TUNNEL_HOSTS= # Name of config file, like: `config.ovpn` OPENVPN_CONFIG_FILE=
  1. Use the http://127.0.0.1:8081 address:
  • macOS

    In System Preferences — Network — Proxies — Automatic Proxy Configuration protocol as Proxy Configuration File URL.

  • Windows

    In Settings — Network & Internet — Proxy as Script address.

    And set:

    • Automatically detect settings;
    • Use script setup.

Usage

Start in background

docker-compose up -d 

Down

docker-compose down -v