Sign inSign up

ebey/openvpn-client

By ebey

•Updated about 9 years ago

openvpn client with ssh and rsync

Image
0

906

ebey/openvpn-client repository overview

⁠Docker OpenVPN Client

  1. You should add the generated openvpn client config to a directory, you can call it client.ovpn
  2. Run the following, I recommend adding --auth-nocache
docker run -d --name vpn-client \
  --cap-add=NET_ADMIN \
  --device /dev/net/tun \
  -v /path/with/vpn/configs:/vpn \
  ebey/openvpn-client --config /vpn/client.ovpn --auth-nocache
⁠Route container traffic

Use --net=container:<container-id> -- routes available by the VPN client will be made available to the container.

docker run -it --rm \
  --net=container:vpn-client
  ubuntu /bin/bash

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

about 9 years ago

docker pull ebey/openvpn-client