Sign inSign up

skopciewski/openvpn

By skopciewski

Updated almost 2 years ago

Personal openvpn image

Image
1

100K+

skopciewski/openvpn repository overview

Usage

    docker run -d --rm --name openvpn -p 1194:1194/udp --cap-add=NET_ADMIN -v /my/openvpn_dir:/mnt/openvpn skopciewski/openvpn

Entrypoint

Redirects all params to the openvpn command. Workdir is /mnt/openvpn.

Default params
    --config server.conf
Escape to

If you want to execute other command than openvpn, run docker container with escto as first param:

    docker run -it --rm --name openvpn -p 1194:1194/udp --cap-add=NET_ADMIN -v /my/openvpn_dir:/mnt/openvpn skopciewski/openvpn escto sh

Dependencies and requirements

  • mount /mnt/openvpn with:
    • server.conf - openvpn server config file
    • server certs - cacert.pem, server-cert.pem, server-key_wp.pem, dh.pem
    • ccd dir - with user files
  • internally, if in the ccd file is push "redirect-gateway" directive, iptables is configured for forwarding traffic from that client
  • server should be configured to use port 1194/udp (remap using -p 445:1194/udp)

Tag summary

Content type

Image

Digest

sha256:a5ac04baf

Size

5.8 MB

Last updated

almost 2 years ago

docker pull skopciewski/openvpn