Project

General

Profile

Anomalie #1043

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

Added by Loïc Dachary over 9 years ago. Updated almost 3 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.

History

#2

Updated by Loïc Dachary over 9 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

#3

Updated by Loïc Dachary over 9 years ago

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

Updated by Quentin Gibeaux almost 3 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF