FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-10-2011, 11:38 AM
Timothy Murphy
 
Default OpenVPN under Fedora-16

Is anyone running this?
There does not appear to be an entry for openvpn in /etc/init.d/ .
Why is this?
(Starting openvpn from the command line does not work.)
Any suggestions?

--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-10-2011, 11:45 AM
Joachim Backes
 
Default OpenVPN under Fedora-16

On 11/10/2011 01:38 PM, Timothy Murphy wrote:
> Is anyone running this?
> There does not appear to be an entry for openvpn in /etc/init.d/ .
> Why is this?
> (Starting openvpn from the command line does not work.)
> Any suggestions?
>

Hi Tim,

I'm running F16 openvpn not server controlled, but by cmd line:

/usr/sbin/openvpn --config /etc/openvpn/<configfile>

No flaw detected!

--
Joachim Backes <joachim.backes@rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-10-2011, 11:51 AM
Reindl Harald
 
Default OpenVPN under Fedora-16

"/etc/init.d" is legacy sysvinit!
look in /lib/systemd/system/

there are openvpn@-services i never understood how they are working
and so i rebuilt the whole package throwing this away and replace
it with my own systemd-unit for F15 where it was not converted

but you can create your own systemd-units and enable them
like "systemctl enable openvpn.service"

[root@rh:~]$ cat /etc/systemd/system/openvpn.service
[Unit]
Description=OpenVPN
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/openvpn/openvpn.pid
ExecStartPre=
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config openvpn.conf
ExecStopPost=
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target

Am 10.11.2011 13:38, schrieb Timothy Murphy:
> Is anyone running this?
> There does not appear to be an entry for openvpn in /etc/init.d/ .
> Why is this?
> (Starting openvpn from the command line does not work.)
> Any suggestions?


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-10-2011, 12:32 PM
Timothy Murphy
 
Default OpenVPN under Fedora-16

Joachim Backes wrote:

>> Is anyone running this?
>> There does not appear to be an entry for openvpn in /etc/init.d/ .
>> Why is this?
>> (Starting openvpn from the command line does not work.)
>> Any suggestions?

> I'm running F16 openvpn not server controlled, but by cmd line:
> /usr/sbin/openvpn --config /etc/openvpn/<configfile>

Thanks very much.
That does indeed work.
-----------------------------------
[tim@blanche ~]$ sudo /usr/sbin/openvpn --config /etc/openvpn/client.conf

[tim@blanche ~]$ ping helen-vpn [On different desktop]
PING helen-vpn (192.168.5.1) 56(84) bytes of data.
64 bytes from helen-vpn (192.168.5.1): icmp_req=1 ttl=64 time=223 ms
-----------------------------------

I thought I had tried this, but maybe I didn't do it as root.

--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-10-2011, 01:22 PM
Mike Wohlgemuth
 
Default OpenVPN under Fedora-16

On 11/10/2011 07:38 AM, Timothy Murphy wrote:
> Is anyone running this?
> There does not appear to be an entry for openvpn in /etc/init.d/ .
> Why is this?
> (Starting openvpn from the command line does not work.)
> Any suggestions?
>

It looks like openvpn has been migrated to systemd. The old command:

service openvpn start

should still start it, but the systemd style command is

systemctl start openvpn.service

The systemd file that is the closest equivalent to /etc/init.d/openvpn is

/lib/systemd/system/openvpn@.service

Mike
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-10-2011, 01:36 PM
Timothy Murphy
 
Default OpenVPN under Fedora-16

Mike Wohlgemuth wrote:

> It looks like openvpn has been migrated to systemd. The old command:
>
> service openvpn start
>
> should still start it, but the systemd style command is
>
> systemctl start openvpn.service
>
> The systemd file that is the closest equivalent to /etc/init.d/openvpn is
>
> /lib/systemd/system/openvpn@.service

Yes, I found this after looking at
<https://bugzilla.redhat.com/show_bug.cgi?id=744244>

In fact I have to run
[tim@blanche ~]$ sudo systemctl status openvpn@client.service
because my config file is /etc/openvpn/client.conf .

So the only remaining problem for me with Fedora-16
(but I'm afraid one that means I will stay with Fedora-15
until it is sorted) is KMail, with the dreaded
"Failed to fetch the resource collection"
which as far as I can see has baffled the greatest minds.

--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 01-05-2012, 11:10 PM
Timothy Murphy
 
Default Openvpn under Fedora-16

I can start openvpn with
[tim@blanche ~]$ sudo systemctl start openvpn@client.service
(My openvpn config file is /etc/openvpn/client.conf ,
which I think is more or less standard.)

But I don't know how to turn it on permanently, eg I get
[tim@blanche ~]$ sudo systemctl enable openvpn@client.service
Failed to issue method call: No such file or directory

The whole thing seems to me extraordinarily badly documented,
even by Linux standards.
Or is it a bug?


--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 01-06-2012, 10:40 AM
Louis Lagendijk
 
Default Openvpn under Fedora-16

On Fri, 2012-01-06 at 01:10 +0100, Timothy Murphy wrote:
> I can start openvpn with
> [tim@blanche ~]$ sudo systemctl start openvpn@client.service
> (My openvpn config file is /etc/openvpn/client.conf ,
> which I think is more or less standard.)
>
> But I don't know how to turn it on permanently, eg I get
> [tim@blanche ~]$ sudo systemctl enable openvpn@client.service
> Failed to issue method call: No such file or directory
>
> The whole thing seems to me extraordinarily badly documented,
> even by Linux standards.
> Or is it a bug?
>
Do you want to run as client or as server? Clients are run from
NetworkManager (I am running openvpn under F16 that way). And there is
a /lib/systemd/system/openvpn@.service so you have to manually creeate
a /etc/systemd/system/openvpn@<yourconfigname>.service and enable that.
Have a look at the vncserver service file for some details

And, yes, I agree: documentation is pretty thin
Louis

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 01-06-2012, 11:40 AM
Timothy Murphy
 
Default Openvpn under Fedora-16

Louis Lagendijk wrote:

>> I can start openvpn with
>> [tim@blanche ~]$ sudo systemctl start openvpn@client.service
>> (My openvpn config file is /etc/openvpn/client.conf ,
>> which I think is more or less standard.)
>>
>> But I don't know how to turn it on permanently, eg I get
>> [tim@blanche ~]$ sudo systemctl enable openvpn@client.service
>> Failed to issue method call: No such file or directory

> Do you want to run as client or as server? Clients are run from
> NetworkManager (I am running openvpn under F16 that way).

Is this essential?

I'd much rather not involve NM, if that is possible.
I find openvpn much more reliable than NM, to put it mildly.
NM usually works for me, but on the occasions when it does not
it is a nightmare.
A recent addition to the NM farce is the appearance of a little window
in the middle of the screen, I think entitled "Secrets",
which asks me to enter a password but unfortunately rejects any input
(ie I cannot write in the space provided).
If I press on Cancel the window simply re-appears, endlessly.

In my view, the apparent decision to allow NM to play a central role
in communication in Fedora is a serious error.
I wish NM would concentrate on its primary task, namely to facilitate WiFi.

> And there is
> a /lib/systemd/system/openvpn@.service so you have to manually creeate
> a /etc/systemd/system/openvpn@<yourconfigname>.service and enable that.
> Have a look at the vncserver service file for some details

Thanks.
I'll certainly have a look.
But I'd have to say that while VNC is not in the same class of horror as NM,
I've always found it problematical to use,
particularly when looking at a Windows machine.


--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 01-06-2012, 12:21 PM
Reindl Harald
 
Default Openvpn under Fedora-16

Am 06.01.2012 12:40, schrieb Louis Lagendijk:
> Do you want to run as client or as server?

uninteresting because only the openvpn-config makes
the difference running the service as server or client

> Clients are run from NetworkManager

you will wonder but there are people out there which
uninstalled NM completly since nobody needs additional
crap for static connections




--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 09:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org