Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openvpn.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Tue Mar 11, 2014 4:11 pm    Post subject: openvpn.conf Reply with quote

I have installed openvpn. when I do
Code:
/etc/init.d/openvpn start

I experience the following:
Code:
* Starting openvpn ...
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory
Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/openvpn.conf
Use --help for more information.
 * start-stop-daemon: failed to start `/usr/sbin/openvpn'
 * Check your logs to see why startup failed                                           [ !! ]
 * ERROR: openvpn failed to start

indeed there is no
Code:

/etc/openvpn/openvpn.conf

but shouldn't that file generate during the openvpn installation?

help needed here to configure my vpn service
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2583

PostPosted: Tue Mar 11, 2014 4:37 pm    Post subject: Reply with quote

OpenVPN is quite versatile, and there are many ways to run it, many options, etc. As such, it isn't the kind of thing that you can do any sort of default configuration upon installation.

By that same token, there are many HowTo, Quick-Start, etc guides for OpenVPN. Start with one of those. Google is your friend.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Tue Mar 11, 2014 4:46 pm    Post subject: Reply with quote

Look under /usr/share/doc/openvpn*/examples
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Tue Mar 11, 2014 11:46 pm    Post subject: Reply with quote

I looked there. No examples. My question is why in my last installation, openvpn did not require me to write a config. Why now?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Wed Mar 12, 2014 12:05 am    Post subject: Reply with quote

shoelesshunter78 wrote:
I looked there. No examples. My question is why in my last installation, openvpn did not require me to write a config. Why now?


are you sure you looked under examples???


/usr/share/doc/openvpn-2.3.2/examples/sample/sample-config-files $ ls
client.conf.bz2 loopback-server.bz2 README.bz2 tls-home.conf.bz2
firewall.sh.bz2 office.up.bz2 server.conf.bz2 tls-office.conf.bz2
home.up.bz2 openvpn-shutdown.sh.bz2 static-home.conf.bz2 xinetd-client-config.bz2
loopback-client.bz2 openvpn-startup.sh.bz2 static-office.conf.bz2 xinetd-server-config.bz2


You do have to copy one of them and rename it!!!!
And possibly modify it for your purposes.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
mubai
n00b
n00b


Joined: 10 Jul 2004
Posts: 22
Location: Sweden

PostPosted: Wed Mar 12, 2014 6:30 am    Post subject: Reply with quote

There's a USE-flag for generating examples.
Regards,
Johan
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Wed Mar 12, 2014 9:44 am    Post subject: Reply with quote

mubai wrote:
There's a USE-flag for generating examples.
Regards,
Johan


You're right, I did set mine. If he'll set the examples flag and re-emerge he should have some samples to use.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1241
Location: 42.68n 85.41w

PostPosted: Wed Mar 12, 2014 9:51 am    Post subject: Reply with quote

can we document this @ wiki plz? i tried taking a stab at openvpn and it was just too much...... i setup a hamachi stub that is suffice means to my ends, and a pptp stub that was fruitless though seemed to be my next best option over hamachi.... afaik pptp is a microsoft product? a "just works" config server & config client example would be very very helpful to configuring it any other way i would want.....
_________________
cat /etc/*-release
Funtoo Linux - baselayout 2.2.0
consider this warning no. 1
https://wiki.gentoo.org/index.php?title=Special:Contributions/666threesixes666&offset=&limit=500&target=666threesixes666
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Wed Mar 12, 2014 10:45 am    Post subject: Reply with quote

This is from the README in the sample-config-files examples directory.

Quote:
Sample OpenVPN Configuration Files.

These files are part of the OpenVPN HOWTO
which is located at:

http://openvpn.net/howto.html


I've only used the client side of it, not the server side.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Wed Mar 12, 2014 11:57 pm    Post subject: Reply with quote

I did copy the sample into place. thank you.

a side note of sorts: when I use NetworkManager to graphically import a VPN configuration, I am unable to edit anything in the GUI-- connection name, auth type, drop-downs... where there were once the ability to edit the configurations, there is none.
please help.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Thu Mar 13, 2014 12:14 am    Post subject: Reply with quote

Can't help you there, as I don't use networkmanager.

I do "sudo vi /etc/openvpn/openvpn.conf" instead. (substitute another editor for vi if that is what you use)

But perhaps someone can come by that does use networkmanager.

Glad to see you're getting there.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 332
Location: Canada

PostPosted: Thu Mar 13, 2014 1:00 am    Post subject: Reply with quote

I used
Quote:
http://openvpn.net/index.php/open-source/documentation/howto.html#pki


both to set up openvpn servers on my tomato shibby firmware e3000 router and clients on my ipod and laptop.

I don't use the init system to start the clients but use the methods from the above link, after the internet connection has completed. However I have (some time ago) tested both openrc and systemd for this purpose and both worked well.
Back to top
View user's profile Send private message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Mon Mar 17, 2014 10:14 pm    Post subject: Reply with quote

Thank you. NetworkManager did the trick.

However...

I can only access and change settings when logged in as root.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2368
Location: Dallas area

PostPosted: Mon Mar 17, 2014 10:41 pm    Post subject: Reply with quote

I think that's because the configuration files are owned by root.

I start openvpn with sudo (effectively root)

Not sure if it can be started by a regular user.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.15.9-zen, glibc-2.17, gcc-4.7.3-r1, eudev
xorg-server-1.16, openbox w/lxpanel, nouveau, oss4
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum