https://github.com/pbrisbin/docker-openvpn-proxy
Proxy through an OpenVPN client connection
https://github.com/pbrisbin/docker-openvpn-proxy
Last synced: about 2 months ago
JSON representation
Proxy through an OpenVPN client connection
- Host: GitHub
- URL: https://github.com/pbrisbin/docker-openvpn-proxy
- Owner: pbrisbin
- Created: 2015-12-06T23:17:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-06T23:17:54.000Z (about 10 years ago)
- Last Synced: 2025-05-07T02:04:19.022Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> [!NOTE]
> All of my GitHub repositories have been **archived** and will be migrated to
> Codeberg as I next work on them. This repository either now lives, or will
> live, at:
>
> https://codeberg.org/pbrisbin/docker-openvpn-proxy
>
> If you need to report an Issue or raise a PR, and this migration hasn't
> happened yet, send an email to me@pbrisbin.com.
Proxy through an OpenVPN client connection.
## Usage
```console
docker run \
--name vpn \
--cap-add=NET_ADMIN \
--publish 8118:8118 \
--env VPN_USER=xxx \
--env VPN_PASS=xxx \
--env VPN_GATEWAY=ch1.vpn.giganews.com \
--env VPN_CERTIFICATE=ca.vyprvpn.com.crt \
--detach \
pbrisbin/openvpn-proxy
```
**Note**: `VPN_CERTIFICATE` can be an absolute path or relative to
`/etc/openvpn`. If the cert you intend to use is not present on the basic Alpine
system, be sure to pass it in via `--volume`.
```console
% curl ifconfig.me
% http_proxy=http://localhost:8118 curl ifconfig.me
```