ProtonVPN
Installation des dépendances
Bash |
---|
| apt install openvpn dialog python3-pip python3-setuptools -y
|
Installation de iptables
Bash |
---|
| apt purge nftables -y && apt install iptables -y
|
Installation
Bash |
---|
| pip3 install protonvpn-cli
|
Initialisation
Text Only |
---|
| protonvpn init # renseigner ses identifiants
|
Création d'un service
Bash |
---|
| nano /etc/systemd/system/protonvpn.service
|
Text Only |
---|
| [Unit]
Description=ProtonVPN-CLI auto-connect
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
Environment=root
ExecStart=/usr/local/bin/protonvpn c --p2p
ExecReload=/usr/local/bin/protonvpn c --p2p
ExecStop=/usr/local/bin/protonvpn disconnect
Restart=always
[Install]
WantedBy=multi-user.target
|
Activer le service au démarrage et le lancer
Bash |
---|
| systemctl enable protonvpn --now
|
Configuraton du kill switch
Le kill switch permet de ne laisser aucun paquets sortir sur Internet si le VPN n'est pas connecté
Bash |
---|
| protonvpn configure # choix 5 puis 2
|