LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-15-2010, 12:56 AM   #1
tquang
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
OpenVPN Site-to-Site TLS problem unestablish


Before post new question, i found and read http://readthefuckingmanual.net/error/383/
However, it not useful for me.

I'm building VPN follow kind Site-to-Site with secure by TLS [Virtual Machine].

Quote:
Originally Posted by My Server A
WAN: 192.168.1.20
LAN: 172.16.0.20
File config below
Code:
local 192.168.1.20
dev tun
port 1194
proto udp
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server1.crt
key /etc/openvpn/keys/server1.key
dh /etc/openvpn/keys/dh1024.pem
tls-server
ifconfig 192.168.3.20 192.168.3.21
push "route 10.0.0.0 255.255.255.0"
route 10.0.0.0 255.255.255.0
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
log-append  openvpn.log
verb 3
Quote:
Originally Posted by My Server B
WAN: 192.168.2.21
LAN: 10.0.0.21
File config below
Code:
client
local 192.168.2.21
remote 192.168.1.20
dev tun
port 1194
proto udp
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server2.crt
key /etc/openvpn/keys/server2.key
tls-client
ifconfig 192.168.3.21 192.168.3.20
push "route 172.16.0.0 255.255.255.0"
route 172.16.0.0.0 255.255.255.0
keepalive 10 120
nobind
persist-key
persist-tun
comp-lzo
status openvpn-status.log
log         openvpn.log
log-append  openvpn.log
verb 3
======================
Not connect and error

Quote:
Originally Posted by My Server A
Mon Nov 15 13:53:51 2010 TLS Error: Unroutable control packet received from 192.168.2.21:42845 (si=3 op=P_CONTROL_V1)
Quote:
Originally Posted by My Server B
Mon Nov 15 13:53:44 2010 Local Options hash (VER=V4): '41690919'
Mon Nov 15 13:53:44 2010 Expected Remote Options hash (VER=V4): '530fdded'
Mon Nov 15 13:53:44 2010 UDPv4 link local: 192.168.2.21
Mon Nov 15 13:53:44 2010 UDPv4 link remote: 192.168.1.20:1194
Mon Nov 15 13:53:44 2010 TLS: Initial packet from 192.168.1.20:1194, sid=1cc61bfa c0fe7994
Mon Nov 15 13:53:44 2010 VERIFY OK: depth=1, /C=VN/ST=TQuang/L=Saigon/O=TQuang/OU=TQuang/CN=server/emailAddress=phungthanhquang@gmail.com
Mon Nov 15 13:53:44 2010 VERIFY OK: depth=0, /C=VN/ST=TQuang/O=TQuang/OU=TQuang/CN=centos.vps/emailAddress=phungthanhquang@gmail.com
Mon Nov 15 13:54:44 2010 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Nov 15 13:54:44 2010 TLS Error: TLS handshake failed
Mon Nov 15 13:54:44 2010 TCP/UDP: Closing socket
Mon Nov 15 13:54:44 2010 SIGUSR1[soft,tls-error] received, process restarting
Mon Nov 15 13:54:44 2010 Restart pause, 2 second(s)
Mon Nov 15 13:54:46 2010 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Mon Nov 15 13:54:46 2010 Re-using SSL/TLS context
Mon Nov 15 13:54:46 2010 LZO compression initialized
Mon Nov 15 13:54:46 2010 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Mon Nov 15 13:54:46 2010 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
 
Old 11-15-2010, 01:25 AM   #2
tquang
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Thank you when you reading this thread. I was fixed it.

Recheck steps create/general KEY, CA. Thank!

SOLVED

=========
Here my mistake
Code:
#Tạo CA [Quá trình tạo ra 2 file: ca.crt ca.key]
./build-ca

#Create Server Certificate (server1)
./build-key-server server1

#Create Client Certificate (server2): lưu ý, bước này hơi khác bước trên 1 chút, vì ở trên là của CA
./build-key-server server2
Above are steps wrong, exactly are
Code:
#Tạo CA [Quá trình tạo ra 2 file: ca.crt ca.key]
./build-ca

#Create Server Certificate (server1)
./build-key-server server1

#Create Client Certificate (server2): lưu ý, bước này hơi khác bước trên 1 chút, vì ở trên là của CA
./build-key server2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Site to Site openVPN Server turiyain Linux - Server 2 09-02-2010 02:31 AM
Enabling full routing site to site with openvpn, not using masquerading. Tried quagga pwn Linux - Networking 3 07-30-2010 06:31 AM
Basics of a multiple site OpenVPN setup Meson Linux - Networking 3 09-21-2009 01:38 AM
Apache site redirects using what rule? foo.site.com -> www.site.com/foo LaughingBoy Linux - Server 2 04-16-2009 09:51 PM
multiple site-2-site openvpn connections? licht Linux - Networking 2 07-20-2007 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration