LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2016, 11:31 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,650
Blog Entries: 4

Rep: Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936
Setting-up Ubuntu OpenVPN to be simultaneously a client and a server


I need for a single OpenVPN machine to simultaneously be "an OpenVPN server," to which external Internet clients can connect, and "an OpenVPN client," which will allow machines on this network to access a secure remote system (located somewhere on the Internet).

The specific purpose is to facilitate MySQL replication of a database hosted on that remote machine.

The replicator (operating from a different VM within the cluster) will connect to the remote by means of the tunnel which the OpenVPN Server machine will create.

It is my understanding that you basically have to set up another ".cnf" file in the /etc/openvpn directory, which specifies "client mode" and which contains all the magic-mojo needed to connect.

But, am I missing anything? Do I need to, for example, specify a UDP port-number other than the default?

(P.S.: "yes, this network topology is 'the way it has to be.'"
 
Old 08-19-2016, 03:08 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,650

Original Poster
Blog Entries: 4

Rep: Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936Reputation: 3936
Well, "plunging blindly forward ..." although the request to start the new configuration "completes with no errors," I now get system-log messages like these:

Code:
Control Channel Authentication: using 'cloud-client/ta-cloud-client.key' as a OpenVPN static key file
Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Socket Buffers: R=[212992->212992] S=[212992->212992]
UDPv4 link local: [undef]
UDPv4 link remote: [AF_INET]198.57.94.92:1194
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Well, just for kicks, I tried specifying port 1194 in the configuration, while specifying port#1193 in the remote statement.

I also specified dev tun1 to complement the existing configuration.
 
  


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
Problem using OpenVPN to connect a Windows client to Ubuntu server pwythes Linux - Networking 1 03-08-2016 09:36 AM
Directing OpenVPN client's traffic through the OpenVPN server mohtasham1983 Linux - Networking 1 01-17-2012 06:44 PM
LXer: Setting Up An OpenVPN Server With Authentication Against OpenLDAP On Ubuntu 10.04 LTS LXer Syndicated Linux News 0 09-29-2010 12:30 PM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:46 PM.

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