Skip to content

Install OpenVPN on Debian 11

homepage-banner

TL; DR

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Config

cat /etc/openvpn/server/server.conf
## manual run as daemon
openvpn --config /etc/openvpn/ovpn.conf --daemon

Service Control

sudo systemctl cat openvpn-iptables.service
sudo systemctl stop openvpn-server@server.service
sudo systemctl start openvpn-server@server.service
sudo systemctl status openvpn-server@server.service

Reference

  • https://github.com/Nyr/openvpn-install
  • https://ubuntu.com/server/docs/service-openvpn
  • https://www.webhi.com/how-to/how-to-install-openvpn-server-on-ubuntu/

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.com, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No personal information is collected
  5. Partial content rewritten by AI, verified by humans
Feedback