Sign inSign up

imzami/proxy-openvpn

By imzami

Updated about 1 year ago

A Privoxy container with OpenVPN Built on Alpine Linux so tiny, fast, light and awesome.

Image
Networking
0

1.2K

imzami/proxy-openvpn repository overview

OpenVPN Proxy

A Privoxy container with OpenVPN
Built on Alpine Linux so tiny, fast, light and awesome.

Setup

Docker

Use this command to set up an IPsec VPN server on Docker:

docker run -d \
    --name proxy-openvpn \
    --device=/dev/net/tun \
    --cap-add=NET_ADMIN \
    --dns=45.90.28.89 --dns=45.90.30.89 \
    -e "OPENVPN_FILENAME=imzami-aes128.ovpn" \
    -e "LOCAL_NETWORK=0.0.0.0/0" \
    -e "ONLINECHECK_DELAY=300" \
    -v ./openvpn-config:/app/ovpn/config \
    -p 98:98 \
    imzami/proxy-openvpn
Volume

1 volume needs to be mapped to /app/ovpn/config within the container.
This volume should include any ovpn config files to be used and, credentials.txt.

VPN Config

I've tested with PIAs ovpn configs but will probably work with any, just make sure to include the following line somewhere:

auth-user-pass /app/ovpn/config/credentials.txt
Credentials

Create ./credentials.txt in the directory which is mapped to /app/ovpn/config.
On the 1st line put the username, on the 2nd line the password.

Environment Variables

LOCAL_NETWORK

The CIDR mask of the local IP addresses which will be acessing the proxy. This is so the response to a request makes it back to the requestee.

OPENVPN_FILENAME

The .ovpn file to use. This file should be in the directory which is mapped to /app/ovpn/config.

ONLINECHECK_DELAY

Will make a web request to Google every x seconds (default 300 (5 minutes)). If the request fails, OpenVPN will be restarted.

Tag summary

Content type

Image

Digest

sha256:dc3955d74

Size

5.3 MB

Last updated

about 1 year ago

docker pull imzami/proxy-openvpn