Run OpenVPN Access Server in Docker @i12bretro
Run OpenVPN Access Server in Docker  @i12bretro
Uploaded July 2024 | Updated November 2026, 2 hours ago
#OpenVPN #Docker #Containerize

Full steps can be found at i12bretro.github.io/tutorials/0946.html

--------------------------------------------------------------------
What is OpenVPN Access Server?
--------------------------------------------------------------------
OpenVPN Access Server, [a] self-hosted VPN solution, simplifies the rapid deployment of a secure remote access and site-to-site solution with a web-based administration interface and built-in OpenVPN Connect app distribution with bundled connection profiles. - openvpn.net/access-server
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y
         # add docker gpg key
         curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         # add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         # install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running OpenVPN Access Server
--------------------------------------------------------------------
   01. Now that Docker is installed, run the following commands to setup the OpenVPN Access Server Docker container and run it
         # create working directory
         mkdir ~/docker/openvpn-as -p
         # run openvpn access server container
         docker run -d --name openvpn-as --cap-add=NET_ADMIN -p 943:943 -p 8443:443 -p 1194:1194/udp -v ~/docker/openvpn-as:/openvpn openvpn/openvpn-as
         # find the temporary password
         docker logs openvpn-as | grep 'Auto-generated pass'
   02. Locate the line Auto-generated pass = and copy the password to your clipboard
   03. Open a web browser and navigate to https://DNSorIP:943/admin
   04. Login with the username openvpn and the Auto-generated password located earlier
   05. Click the Agree button to accept the EULA
   06. Click User Management ≫ User Permissions in the left navigation
   07. Click the edit icon next to the openvpn user
   08. Enter a new password in the Password field ≫ Click the Save Settings button
   09. Click Logout at the bottom of the left navigation
   10. Log back in with the username openvpn and the updated password
   11. Welcome to OpenVPN Access Server running in Docker
 
Source:  openvpn.net/as-docs/docker.html
 


### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Run OpenVPN Access Server in DockerInstall Dashy Application Dashboard on WindowsUsing WatchTower To Keep Docker Images UpdatedRun RetroArch - Retro Emulation Frontend - In DockerInstall EmuDeck on LinuxRun Activepieces - Open-Source Business Automation - In DockerRun the Official Debian Rolling Release - Sid - in a Proxmox VE VMAmlogic S912 vs Intel Celeron N3060Install MkDocs - Read the Docs Alternative - on WindowsRoll Your Own Self-Hosted PHP Sandbox PageRunning a MX Linux VM in Proxmox VECreate and Apply SSL Certificate to TrueNAS Web UI
i12bretro |

Run OpenVPN Access Server in Docker

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER