View previous topic :: View next topic |
Author |
Message |
shoelesshunter78 n00b
Joined: 24 May 2010 Posts: 58
|
Posted: Tue Mar 11, 2014 4:11 pm Post subject: openvpn.conf |
|
|
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 |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Tue Mar 11, 2014 4:37 pm Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Tue Mar 11, 2014 4:46 pm Post subject: |
|
|
Look under /usr/share/doc/openvpn*/examples _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
shoelesshunter78 n00b
Joined: 24 May 2010 Posts: 58
|
Posted: Tue Mar 11, 2014 11:46 pm Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Mar 12, 2014 12:05 am Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
mubai n00b
Joined: 10 Jul 2004 Posts: 32 Location: Sweden
|
Posted: Wed Mar 12, 2014 6:30 am Post subject: |
|
|
There's a USE-flag for generating examples.
Regards,
Johan |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Mar 12, 2014 9:44 am Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Wed Mar 12, 2014 9:51 am Post subject: |
|
|
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..... |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Mar 12, 2014 10:45 am Post subject: |
|
|
This is from the README in the sample-config-files examples directory.
I've only used the client side of it, not the server side. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
shoelesshunter78 n00b
Joined: 24 May 2010 Posts: 58
|
Posted: Wed Mar 12, 2014 11:57 pm Post subject: |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Thu Mar 13, 2014 12:14 am Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Thu Mar 13, 2014 1:00 am Post subject: |
|
|
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 |
|
|
shoelesshunter78 n00b
Joined: 24 May 2010 Posts: 58
|
Posted: Mon Mar 17, 2014 10:14 pm Post subject: |
|
|
Thank you. NetworkManager did the trick.
However...
I can only access and change settings when logged in as root. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Mar 17, 2014 10:41 pm Post subject: |
|
|
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. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|