pense-bête de bruno sanchiz

Accueil > Données Privées > VPN

VPN

Publié le 8 avril 2017, dernière mise-à-jour le 3 mai 2017, 1 visites, 24396 visites totales.

openvpn

tiré de https://openvpn.net/index.php/open-source/documentation/manuals/65-openvpn-20x-manpage.html#lbAV

Ordi1 : IP1=192.168.1.11 ; Ordi2 : IP2:192.168.1.22

Example 1 : A simple tunnel without security
Ordi1 : IP1=10.4.0.1 ; Ordi2 : IP2:10.4.0.2

Ordi1 et Ordi2 :

apt-get install openvpn && mknod /dev/net/tun c 10 200 &&  modprobe tun

Ordi1 :

openvpn --remote 192.168.1.22 --dev tun1 --ifconfig 10.4.0.1 10.4.0.2 --verb 

Ordi2 :

openvpn --remote 192.168.1.11 --dev tun1 --ifconfig 10.4.0.1 10.4.0.2 --verb 

Example 2 : A tunnel with static-key security (i.e. using a pre-shared secret)

Ordi1 : openvpn --genkey --secret clef
envoi de clef sur ordi2 par scp
ordi 1 : openvpn --remote 192.168.1.22 --dev tun1 --ifconfig 10.4.0.1 10.4.0.2 --verb 5 --secret clef
ordi 2 : openvpn --remote 192.168.1.11 --dev tun1 --ifconfig 10.4.0.2 10.4.0.1 --verb 5 --secret clef


https://www.debian-fr.org/t/open-vpn-impossible-de-se-connecter/73358/3
https://www.ipvanish.com/visualguides/OpenVPN/Ubuntu/
https://support.ipvanish.com/customer/portal/articles/1969179-openvpn-linux-command-line-
https://helpdesk.privateinternetaccess.com/hc/en-us/articles/219458787-How-can-I-make-OpenVPN-remember-my-username-and-password-
auth-user-pass pass.txt

Tu crées à côté un fichier pass.txt dans lequel tu y mets en 1° ligne ton login et en 2° ligne ton mot de passe, comme ici par exemple :

[bruno sanchiz]