Pages : 1
#1 Le 09/08/2012, à 19:04
- kuassi
probleme connexion vpn
bjr à tous. j'essai de configurer une connexion vpn mais ca marche pa encore.j'ai installé ubuntu 12.04
voici mon fichier server.conf
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
;push "redirect-gateway def1 bypass-dhcp"
# DNS servers provided by opendns.com.
;push "dhcp-option DNS 208.67.222.222"
;push "dhcp-option DNS 208.67.220.220"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
;user nobody
;group nogroup
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
mon fichier client.conf
client
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote 213.136.125.139 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nogroup
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca ca.crt
cert pcportablconradgbaguidi.crt
key pcportablconradgbaguidi.key
ns-cert-type server
;tls-auth ta.key 1
;cipher x
comp-lzo
verb 3
;mute 20
pour vérifier le fichier server.conf je tape:openvpn server.conf voici ce que ca me donne
openvpn server.conf
Tue Aug 14 10:39:43 2012 OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 30 2012
Tue Aug 14 10:39:43 2012 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Tue Aug 14 10:39:43 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Aug 14 10:39:43 2012 Diffie-Hellman initialized with 1024 bit key
Tue Aug 14 10:39:43 2012 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Aug 14 10:39:43 2012 Socket Buffers: R=[229376->131072] S=[229376->131072]
Tue Aug 14 10:39:43 2012 ROUTE default_gateway=192.168.1.1
Tue Aug 14 10:39:43 2012 TUN/TAP device tun1 opened
Tue Aug 14 10:39:43 2012 TUN/TAP TX queue length set to 100
Tue Aug 14 10:39:43 2012 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Aug 14 10:39:43 2012 /sbin/ifconfig tun1 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Tue Aug 14 10:39:43 2012 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
SIOCADDRT: File exists
Tue Aug 14 10:39:43 2012 ERROR: Linux route add command failed: external program exited with error status: 7
Tue Aug 14 10:39:43 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Aug 14 10:39:43 2012 UDPv4 link local (bound): [undef]
Tue Aug 14 10:39:43 2012 UDPv4 link remote: [undef]
Tue Aug 14 10:39:43 2012 MULTI: multi_init called, r=256 v=256
Tue Aug 14 10:39:43 2012 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Tue Aug 14 10:39:43 2012 ifconfig_pool_read(), in='changeme,10.8.0.4', TODO: IPv6
Tue Aug 14 10:39:43 2012 succeeded -> ifconfig_pool_set()
Tue Aug 14 10:39:43 2012 IFCONFIG POOL LIST
Tue Aug 14 10:39:43 2012 changeme,10.8.0.4
Tue Aug 14 10:39:43 2012 Initialization Sequence Completed
pour vérifier le fichier client.conf je tape:openvpn client.conf voici ce que ca me donne aussi
openvpn client.conf
Thu Aug 9 17:56:34 2012 OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 30 2012
Thu Aug 9 17:56:34 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Aug 9 17:56:34 2012 LZO compression initialized
Thu Aug 9 17:56:34 2012 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Aug 9 17:56:34 2012 Socket Buffers: R=[229376->131072] S=[229376->131072]
Thu Aug 9 17:56:34 2012 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Aug 9 17:56:34 2012 Local Options hash (VER=V4): '41690919'
Thu Aug 9 17:56:34 2012 Expected Remote Options hash (VER=V4): '530fdded'
Thu Aug 9 17:56:34 2012 UDPv4 link local: [undef]
Thu Aug 9 17:56:34 2012 UDPv4 link remote: [AF_INET]213.136.125.139:1194
Thu Aug 9 17:56:34 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 9 17:56:36 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 9 17:56:40 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Thu Aug 9 17:56:48 2012 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
^CThu Aug 9 17:56:54 2012 event_wait : Interrupted system call (code=4)
Thu Aug 9 17:56:54 2012 TCP/UDP: Closing socket
Thu Aug 9 17:56:54 2012 SIGINT[hard,] received, process exitin
si quelqu’un peut m'aider, ça me fera vraiment plaisir.j'attends impatiemment votre aide
merci par avance
Dernière modification par kuassi (Le 14/08/2012, à 11:43)
Hors ligne
#2 Le 12/08/2012, à 21:34
- popololo
Re : probleme connexion vpn
Salut,
Compression LZO activée?
Hors ligne
#3 Le 13/08/2012, à 09:53
- kuassi
Re : probleme connexion vpn
Compression LZO est activée
Hors ligne
#4 Le 14/08/2012, à 11:47
- kuassi
Re : probleme connexion vpn
déjà, comment corriger l'erreur route au demarrage du serveur vpn
ERROR: Linux route add command failed: external program exited with error status: 7
Hors ligne
Pages : 1