Je possède un serveur VPS chez OVH sur lequel j'ai installé un serveur OpenVPN.
J'arrive à m'y connecter avec networkmanager-openvpn sans problème mais impossible de ping quoi que ce soit.
Mon client.ovpn :
Code : Tout sélectionner
# Config Client
client
dev tun
proto tcp-client
remote 5.196.18.72 443
resolv-retry infinite
cipher AES-256-CBC
# Certificats + Cles
ca ca.crt
cert perru.crt
key perru.key
tls-auth ta.key 1
# Config Securite
nobind
persist-key
persist-tun
comp-lzo
verb 3
Code : Tout sélectionner
#############################
# Configuration #
# VPN #
#############################
# port et mode
mode server
proto tcp
port 443
dev tun
# certificats + cles
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
cipher AES-256-CBC
# Config reseau
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 4.4.4.4"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
# Config securite
user nobody
group nogroup
chroot /etc/openvpn/jail
persist-key
persist-tun
comp-lzo
# Config des logs
verb 3
mute 20
status openvpn-status.log
log-append /var/log/openvpn.log
Code : Tout sélectionner
Thu Dec 25 16:56:29 2014 MULTI: multi_create_instance called
Thu Dec 25 16:56:29 2014 Re-using SSL/TLS context
Thu Dec 25 16:56:29 2014 LZO compression initialized
Thu Dec 25 16:56:29 2014 Control Channel MTU parms [ L:1560 D:168 EF:68 EB:0 ET:0 EL:0 ]
Thu Dec 25 16:56:29 2014 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Dec 25 16:56:29 2014 Local Options hash (VER=V4): '9915e4a2'
Thu Dec 25 16:56:29 2014 Expected Remote Options hash (VER=V4): '2f2c6498'
Thu Dec 25 16:56:29 2014 TCP connection established with [AF_INET]37.160.110.47:39328
Thu Dec 25 16:56:29 2014 TCPv4_SERVER link local: [undef]
Thu Dec 25 16:56:29 2014 TCPv4_SERVER link remote: [AF_INET]37.160.110.47:39328
Thu Dec 25 16:56:29 2014 37.160.110.47:39328 TLS: Initial packet from [AF_INET]37.160.110.47:39328, sid=2e5206b2 5efe93e9
Thu Dec 25 16:56:47 2014 37.160.110.47:39328 VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=changeme/name=changeme/emailAddress=mail@host.domain
Thu Dec 25 16:56:47 2014 37.160.110.47:39328 VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=perru/name=changeme/emailAddress=mail@host.domain
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Dec 25 16:56:48 2014 37.160.110.47:39328 [perru] Peer Connection Initiated with [AF_INET]37.160.110.47:39328
Thu Dec 25 16:56:48 2014 perru/37.160.110.47:39328 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=1::1900:0:8f7f:0
Thu Dec 25 16:56:48 2014 perru/37.160.110.47:39328 MULTI: Learn: 10.8.0.6 -> perru/37.160.110.47:39328
Thu Dec 25 16:56:48 2014 perru/37.160.110.47:39328 MULTI: primary virtual IP for perru/37.160.110.47:39328: 10.8.0.6
Thu Dec 25 16:56:51 2014 perru/37.160.110.47:39328 PUSH: Received control message: 'PUSH_REQUEST'
Thu Dec 25 16:56:51 2014 perru/37.160.110.47:39328 send_push_reply(): safe_cap=960
Thu Dec 25 16:56:51 2014 perru/37.160.110.47:39328 SENT CONTROL [perru]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 4.4.4.4,dhcp-option DNS 8.8.8.8,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Thu Dec 25 16:57:06 2014 perru/37.160.110.47:39328 Connection reset, restarting [0]
Thu Dec 25 16:57:06 2014 perru/37.160.110.47:39328 SIGUSR1[soft,connection-reset] received, client-instance restarting
Thu Dec 25 16:57:06 2014 TCP/UDP: Closing socket
Thu Dec 25 17:00:27 2014 MULTI: multi_create_instance called
Thu Dec 25 17:00:27 2014 Re-using SSL/TLS context
Thu Dec 25 17:00:27 2014 LZO compression initialized
Thu Dec 25 17:00:27 2014 Control Channel MTU parms [ L:1560 D:168 EF:68 EB:0 ET:0 EL:0 ]
Thu Dec 25 17:00:27 2014 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Dec 25 17:00:27 2014 Local Options hash (VER=V4): '9915e4a2'
Thu Dec 25 17:00:27 2014 Expected Remote Options hash (VER=V4): '2f2c6498'
Thu Dec 25 17:00:27 2014 TCP connection established with [AF_INET]37.187.65.250:51342
Thu Dec 25 17:00:27 2014 TCPv4_SERVER link local: [undef]
Thu Dec 25 17:00:27 2014 TCPv4_SERVER link remote: [AF_INET]37.187.65.250:51342
Thu Dec 25 17:00:27 2014 37.187.65.250:51342 Connection reset, restarting [-1]
Thu Dec 25 17:00:27 2014 37.187.65.250:51342 SIGUSR1[soft,connection-reset] received, client-instance restarting
Thu Dec 25 17:00:27 2014 TCP/UDP: Closing socket