Project

General

Profile

Actions

Anomalie #1043

closed

les instructions generation de clés pour le VPN ne fonctionnent pas

Added by Loïc Dachary about 12 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normale
Assignee:
Category:
Task
Target version:
Start date:
11/20/2012
Due date:
11/20/2012
% Done:

100%

Estimated time:
Spent time:
Difficulté:
2 Facile

Description

En exécutant les instructions de http://127.0.0.1:8080/dokuwiki/doku.php?id=sysadm:configuration:vpn on obtient:

root@pavot:~# cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/ /tmp && cd /tmp/2.0/ # Copie locale
. ./vars # Chargement des variables
root@pavot:/tmp/2.0# NOTE: If you run ./clean-all, I will be doing a rm -rf on /tmp/2.0/keys
root@pavot:/tmp/2.0# ./build-key loic.dachary
  Please edit the vars script to reflect your configuration,
  then source it with "source ./vars".
  Next, to start with a fresh PKI configuration and to delete any
  previous certificates and keys, run "./clean-all".
  Finally, you can run this tool (pkitool) to build certificates/keys.
root@pavot:/tmp/2.0# export KEY_COUNTRY="FR" 
export KEY_PROVINCE="" 
export KEY_CITY="Paris" 
export KEY_ORG="OpenVPN" 
root@pavot:/tmp/2.0# root@pavot:/tmp/2.0# root@pavot:/tmp/2.0# root@pavot:/tmp/2.0# export KEY_EMAIL="admins@april.org" 
root@pavot:/tmp/2.0# 
root@pavot:/tmp/2.0# 
root@pavot:/tmp/2.0# ./build-key loic.dachary
  Please edit the vars script to reflect your configuration,
  then source it with "source ./vars".
  Next, to start with a fresh PKI configuration and to delete any
  previous certificates and keys, run "./clean-all".
  Finally, you can run this tool (pkitool) to build certificates/keys.

Actions #2

Updated by Loïc Dachary about 12 years ago

Dans le fichier cdd il faut mettre le peer comme obtenu par ip a

82: tun2: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
    link/none 
    inet 192.168.0.42 peer 192.168.0.41/32 scope global tun2

Actions #3

Updated by Loïc Dachary about 12 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 30 to 100
Actions #4

Updated by Quentin Gibeaux over 5 years ago

  • Status changed from Résolu to Fermé
Actions

Also available in: Atom PDF