Sign inSign up

derkades/ovpn-client

By derkades

•Updated almost 3 years ago

Image
0

2.9K

derkades/ovpn-client repository overview

⁠ovpn-client

A simple openvpn client container.

⁠Features

  • "Killswitch": traffic can only go through the vpn and is blocked if the vpn connection drops
  • Supports connecting other containers to this container and exposing ports to the local network.
  • Based on alpine so tiny container size. Even more negligible if you already have other containers using alpine as a base image
  • Frequent updates, like my other containers
  • ARM support

⁠docker-compose example

version: '2'

services:

  vpn:
    image: derkades/ovpn-client
    ports: # forward ports for other services here
      - '8080:8080'
    volumes: ['/path/to/client.ovpn:/client.ovpn']
    dns: ['1.1.1.1', '8.8.8.8']
    cap_add: ['net_admin']
    devices: ['/dev/net/tun:/dev/net/tun']
    environment:
      LOCAL_NETWORK: 192.168.1.0/24

  example_service:
    image: linuxserver/qbittorrent
    network_mode: 'service:vpn' # in same network as vpn container
    environment:
      WEBUI_PORT: 8080

Tag summary

Content type

Image

Digest

sha256:34f90e7b1…

Size

4.1 MB

Last updated

almost 3 years ago

docker pull derkades/ovpn-client