Author Topic: Case study: how to interconnect sites using Zentyal VPN  (Read 2309 times)

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Case study: how to interconnect sites using Zentyal VPN
« on: September 13, 2012, 08:46:38 am »
Hi Christian,

I red your Case Study on Zentyal OpenVPN and would like to thank you for sharing it. I have a question though.

After Enabling the OpenVPN Service in both sides (Zentyal Central Office and Zentyal Client), I'm assuming the Zentyal Client will get a VPN IP address from the Server as it is usually the case, right? Because this doesn't happen on my deployment.

In the Dashboard it says VPN Interface Address: Not active.

I'm looking for the logs but don't see anything. How can I verify that the VPN was established with the Remote Zentyal Client?

Thanks and looking forward for your answer.



christian

  • Guest
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #1 on: September 13, 2012, 09:38:37 am »
Do you mean document I posted in HowTo section ?

How did you set up your "client"? Using bundle or manually?

Edit: I just read again what I posted months ago  :o there is a lot of typo and sentences hardly understandable  :-[ I do need to work on it again  :-[
« Last Edit: September 13, 2012, 09:40:46 am by christian »

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #2 on: September 13, 2012, 10:02:58 am »
Do you mean document I posted in HowTo section ?

How did you set up your "client"? Using bundle or manually?

Edit: I just read again what I posted months ago  :o there is a lot of typo and sentences hardly understandable  :-[ I do need to work on it again  :-[

Thanks for the reply.

Yes, the Howto section and I used the bundle...

No worries, you have done a great job and the Howto is very helpful.  ;)
« Last Edit: September 13, 2012, 11:21:52 am by c4rdinal »

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #3 on: September 13, 2012, 12:56:36 pm »
C4rdinal, if you somehow succeed in connecting the remote sites, it would be fantastic if you could share your findings.
I'm about to "deploy" a Zentyal 3.0 server with a company here, and they absolutely need VPN...
It's always a good thing to be prepared for possible pitfalls.

Cheers.
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

christian

  • Guest
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #4 on: September 13, 2012, 01:31:07 pm »
what if you restart VPN client side ?

Sam Graf

  • Guest
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #5 on: September 13, 2012, 03:03:41 pm »
In the case of 2.0 at least is was possible to add a dashboard widget on the server end that would display the status of a VPN connection, including letting you know if there were no users connected. That widget could provide at-a-glance confirmation of a connection at the server end.

But if the client machine is showing "VPN Interface address: Not active," I'm pretty sure that there is no connection. There should be an IP address from the VPN address space for that VPN server in that section. For example, "VPN interface address 192.168.2.2/24" at the client end, where you have "VPN interface address 192.168.2.1/24" at the server end.

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #6 on: September 14, 2012, 05:19:03 am »
what if you restart VPN client side ?

Already restarted several times but it doesn't help.

From the Main Office I have 2 WAN Connections. I notice in the Firewall log that there were traffic Sourced from WAN2 IP Address and is being DROPPED. It OpenVPN should be routed back using WAN1 which is the CONNECTED TARGET.

I created a MultiWAN policy to route traffic:

SOURCE: ANY
DESTINATION: ANY
SERVICE: OPENVPN (UDP 1194)
GATEWAY: WAN1

However, I see that the traffic coming out my WAN2 using OPENVPN Service still go on... I don't know why. :(


c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #7 on: September 14, 2012, 05:23:56 am »
C4rdinal, if you somehow succeed in connecting the remote sites, it would be fantastic if you could share your findings.
I'm about to "deploy" a Zentyal 3.0 server with a company here, and they absolutely need VPN...
It's always a good thing to be prepared for possible pitfalls.

Cheers.

I have succeeded configuring Zentyal and remote Clients. I already posted the complete process on my post here: http://forum.zentyal.org/index.php/topic,11987.0.html

And if anybody have any questions on other details, I'll be more than glad to share them.

My Zentyal-to-Zentyal VPN experiment is almost complete, I will share the complete setup when it's done. ;)

Thanks


c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #8 on: September 14, 2012, 05:27:07 am »
In the case of 2.0 at least is was possible to add a dashboard widget on the server end that would display the status of a VPN connection, including letting you know if there were no users connected. That widget could provide at-a-glance confirmation of a connection at the server end.

But if the client machine is showing "VPN Interface address: Not active," I'm pretty sure that there is no connection. There should be an IP address from the VPN address space for that VPN server in that section. For example, "VPN interface address 192.168.2.2/24" at the client end, where you have "VPN interface address 192.168.2.1/24" at the server end.

Yes, this is also what I'm expecting... the client should have acquired an IP coming from the Zentyal VPN Server (by default 192.168.160.0). I'm expecting this will be displayed on the OpenVPN Daemon at the Dashboard.

In the logs I see:

Fri Sep 14 11:38:33 2012 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Fri Sep 14 11:38:33 2012 TLS Error: TLS handshake failed
Fri Sep 14 11:38:33 2012 TCP/UDP: Closing socket
Fri Sep 14 11:38:33 2012 SIGUSR1[soft,tls-error] received, process restarting
Fri Sep 14 11:38:33 2012 Restart pause, 2 second(s)
Fri Sep 14 11:38:35 2012 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Fri Sep 14 11:38:35 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Sep 14 11:38:35 2012 Re-using SSL/TLS context
Fri Sep 14 11:38:35 2012 LZO compression initialized
Fri Sep 14 11:38:35 2012 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Sep 14 11:38:35 2012 Socket Buffers: R=[262144->131072] S=[262144->131072]
Fri Sep 14 11:38:35 2012 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Fri Sep 14 11:38:35 2012 Local Options hash (VER=V4): 'd79ca330'
Fri Sep 14 11:38:35 2012 Expected Remote Options hash (VER=V4): 'f7df56b8'
Fri Sep 14 11:38:35 2012 UDPv4 link local: [undef]
Fri Sep 14 11:38:35 2012 UDPv4 link remote: [AF_INET]115.84.224.36:1194

I'll try to work it out and post the any progress....

« Last Edit: September 14, 2012, 05:39:56 am by c4rdinal »

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: Case study: how to interconnect sites using Zentyal VPN
« Reply #9 on: September 14, 2012, 06:44:34 am »
UPDATE..

Finally, I was successful with Zentyal-to-Zentyal VPN. I shall post the procedure as soon as I find time.

Cheers!