Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker openvpn

openvpn:
    image: "kylemanna/openvpn:latest"
    container_name: openvpn
    ports:
        - "1194:1194/udp"
    volumes:
        - "~/openvpn/data:/etc/openvpn"
    cap_add:
        - NET_ADMIN
    restart: always
Comment

docker openvpn

docker-compose up -d
Comment

openvpn client docker

docker run 
  --cap-add NET_ADMIN 
  --device /dev/net/tun 
  --volume /home/me/vpnConfiguration/:/vpn/config 
  --name vpn
Comment

docker openvpn

docker run -v ~/openvpn/data:/etc/openvpn --log-driver=none --rm -it kylemanna/openvpn easyrsa build-client-full nom_client
Comment

docker openvpn

docker run -v ~/openvpn/data:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
Comment

docker openvpn

docker run -v ~/openvpn/data:/etc/openvpn --log-driver=none --rm kylemanna/openvpn ovpn_genconfig -u udp://vpn.nom_de_domaine.com
Comment

docker openvpn

mkdir -p ~/openvpn/data
Comment

docker openvpn

docker run -v ~/openvpn/data:/etc/openvpn --log-driver=none --rm -it kylemanna/openvpn ovpn_initpki
Comment

PREVIOUS NEXT
Code Example
Shell :: make directory in linux 
Shell :: how to checkout a remote branch in git 
Shell :: how to skip .pyc file adding into github repository 
Shell :: fork git ubuntu 
Shell :: undo git amend 
Shell :: negative if statement bash 
Shell :: unmount linux 
Shell :: windows powershell 
Shell :: git initial commit 
Shell :: Running a local script on a remote machine (or remote on local) 
Shell :: append to multiple files bash 
Shell :: recover a merged commit git 
Shell :: install go on mac brew 
Shell :: cut powershell 
Shell :: get version of mongodb server 
Shell :: dos2unix 
Shell :: delete remote git branches matching pattern 
Shell :: rpi install kodi 
Shell :: cli50 documentation 
Shell :: How to remove a directory from git repository? 
Shell :: tricks to do with ubuntu 
Shell :: windows xp enable remote desktop cmd 
Shell :: git reset uncommitted changes 
Shell :: pull from other branch 
Shell :: installer-snap change in progress 
Shell :: upload file ssh terminal 
Shell :: logitech g hub not installing windows 10 
Shell :: install rabbitmq in ubuntu 20.04 
Shell :: git force overwrite of local files 
Shell :: renaming branch in git 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =