Command Line connection
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Command Line connection
Folks,
I run an Ubuntu Linux system and often assist a friend who has a similar set up. I have a router that has a VPN server so she connects to my router, I then use VNC to view her desktop.
I am trying to get my head around this system, the suggestion is it is easy but I am not finding that so at the moment.
Before I get into trying to set up servers etc can I connect two machines temporarily with a simple command line code in a terminal?
Geffers
I run an Ubuntu Linux system and often assist a friend who has a similar set up. I have a router that has a VPN server so she connects to my router, I then use VNC to view her desktop.
I am trying to get my head around this system, the suggestion is it is easy but I am not finding that so at the moment.
Before I get into trying to set up servers etc can I connect two machines temporarily with a simple command line code in a terminal?
Geffers
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
D'you know, I am not silly with computers, I've done programming on other systems, built a computer, fiddle quite a bit with my Ubuntu systems BUT the 'simple' setup tells you the following;debbie10t wrote:Probably worth reading the HOWTO:
http://openvpn.net/index.php/open-sourc ... howto.html
How to create a pre shared key but NOT where to store it.
What to put in a simple config file but NOT where these files are or what they are called.
Suggests you run openvpn with the config file but NOT how to run it.
I'll sort it at some point but getting a simple setup going is not quite as easy as the 'easy' set up suggests.
Geffers
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
Yes, thanks Debbie.debbie10t wrote:Time to read the HOWTO in full:geffers wrote:D'you know, I am not silly with computers
And don't forget The Manual:
I have often wondered the value of forums if the replies say 'have you read the manual'. I have participated in many forums over the years and if I know the answer I'll give it. I have never replied 'Have you read the manual'.
Geffers
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Command Line connection
you are joking right?D'you know, I am not silly with computers, I've done programming on other systems, built a computer, fiddle quite a bit with my Ubuntu systems BUT the 'simple' setup tells you the following;
How to create a pre shared key but NOT where to store it.
What to put in a simple config file but NOT where these files are or what they are called.
Suggests you run openvpn with the config file but NOT how to run it.
if you read thisHow to create a pre shared key but NOT where to store it.
http://openvpn.net/index.php/open-sourc ... howto.html
there is the "secret" directive which as a parameter uses your key (yes you can use absolute path)
you can create them wherever you want,openvpn has --config directive which you use to tell openvpn whereWhat to put in a simple config file but NOT where these files are or what they are called.
and how its named your config...
you can always use openvpn --help...
Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
Michael,maikcat wrote: if you read this
http://openvpn.net/index.php/open-sourc ... howto.html
there is the "secret" directive which as a parameter uses your key (yes you can use absolute path)
you can create them wherever you want,openvpn has --config directive which you use to tell openvpn whereWhat to put in a simple config file but NOT where these files are or what they are called.
and how its named your config...
you can always use openvpn --help...
Michael.
Thank you, you have clarified at least the location of the various files; that was the article I read, the setup was straightforward but where to put the files not so. My apache server required config files in specific locations; hence my question.
I took a guess at locations and was unable to connect so at least I won't waste my time juggling file locations.
Obvious solutions are not so obvious when one has never used the program before.
Geffers
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
Debbie,debbie10t wrote:I often wonder why people don't read the documentation/manuals/howtos/examples/rules before they complain.geffers wrote:I have often wondered the value of forums if the replies say 'have you read the manual
Well, after I have explained to countless people how to do the same things, over and over, I eventually reverted back to the prescribed documentation because I don't have time to write to people personally for every little thing.geffers wrote:I have participated in many forums over the years and if I know the answer I'll give it. I have never replied 'Have you read the manual'.
The documentation is there for a reason and has been updated many times over the years to ensure people have all the information they need. So they don't have to use the forums until they get really stuck with something.
As all you want is:The HOWTO has a very simple example can you follow ...geffers wrote:Before I get into trying to set up servers etc can I connect two machines temporarily with a simple command line code in a terminal?
I appreciate you may well get many repetative questions asked on this forum but there will always be someone new who wants an answer to a simple question. Michael clarified what the 'simple' example failed to do and that was the location of the files it referred to.
Surely though it is not down to you to answer all the questions - with computers there are normally numerous ways to achieve the same objective so another newbie may well give some advice that an experienced user 'thinks' is obvious.
Geffers
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
Just a suggestion on the 'simple' example.
Here is an excellent example on the debian wiki page, tells you exactly where each file should be stored and how to run the command.
https://wiki.debian.org/OpenVPN
Geffers
Here is an excellent example on the debian wiki page, tells you exactly where each file should be stored and how to run the command.
https://wiki.debian.org/OpenVPN
Geffers
-
- OpenVpn Newbie
- Posts: 12
- Joined: Tue Jul 01, 2014 5:22 pm
Re: Command Line connection
Once I had the file locations confirmed by you I was able to iron out a couple of errors.maikcat wrote:
there is the "secret" directive which as a parameter uses your key (yes you can use absolute path)
you can create them wherever you want,openvpn has --config directive which you use to tell openvpn where
and how its named your config...
Michael.
I now have it working fine.
I did post a link to the Debian wiki which is better explained than the openvpn 'how to'.
Geffers