Skip to content

OpenVPN Pritunl

matveynator edited this page Aug 13, 2024 · 32 revisions

Tested on Debian 10/11 (mongodb uses "buster" apt repo for "bullseye" (not an error)). Docs: https://docs.pritunl.com/docs.

Install Pritunl:

curl -L https://raw.githubusercontent.com/matveynator/sysadminscripts/main/pritunl | sudo bash

Uninstall:

For full uninstall edit /etc/rc.local

apt-get --purge remove pritunl* mongodb-* openvpn
# Добавляем черные дыры для немаршрутизируемых адресов, а pritunl (openvpn) добавит от себя исключающий маршрут на свою внутрянку если что
ip route add blackhole 10.0.0.0/8
ip route add blackhole 172.16.0.0/12
ip route add blackhole 192.168.0.0/16
ip route add blackhole 169.254.0.0/16
ip route add blackhole 224.0.0.0/4
ip route add blackhole 240.0.0.0/4
Clone this wiki locally