- Clone repository:
git clone https://github.com/mrauhu/docker-openvpn-http-ssh-proxy
cd docker-openvpn-http-ssh-proxy
- Create the
config/
directory:
mkdir -p config
-
Copy your OpenVPN client config with certificates to the
config/
directory. -
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=
- 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.
docker-compose up -d
docker-compose down -v