Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd vs openvpn
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
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Tue Apr 16, 2013 11:18 am    Post subject: systemd vs openvpn Reply with quote

Ok, so I've migrated to systemd to see what the fuss is all about, and I don't dislike what I see. But I'm having problems with openvpn: I understand I have to systemctl enable openvpn@openvpn, where the second openvpn is due to my configuration being in openvpn.conf. That works, but only after I have modprobed tun by hand. Otherwise it fails. With openrc, tun was auto loaded. I think I can use /etc/modules-load.d/ to load the tun module at boot, but should't systemd load it when needed (i.e., when starting openvpn@whatever)?
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 481
Location: Oleiros

PostPosted: Sat Apr 20, 2013 8:49 am    Post subject: Reply with quote

Damn (i.e. córcholis :) ) , I was about to try systemd myself and I also use openvpn... I'm glad that you tried first :P Did you get to solve it?
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Sat Apr 20, 2013 9:10 am    Post subject: Reply with quote

I think the way is that you have your extra modules needed in, for example /etc/modules-load.d/tun.conf (so yes, you thought right :D).

> but should't systemd load it when needed (i.e., when starting openvpn@whatever)?
Does openrc load the tun module on demand or at boot? Anyway I don't believe kernel modules are, maybe you are confused with the on-demand service/socket/etc loading?
Back to top
View user's profile Send private message
Fran
Guru
Guru


Joined: 29 Feb 2004
Posts: 530
Location: Coruña (Spain)

PostPosted: Sat Apr 20, 2013 3:17 pm    Post subject: Reply with quote

mani001 wrote:
Damn (i.e. córcholis :) ) , I was about to try systemd myself and I also use openvpn... I'm glad that you tried first :P Did you get to solve it?

Yep, just load tun at boot (echo "tun" > /etc/modules-load.d/tun.conf). Not the most elegant solution but hey, it works.

rorgoroth wrote:
Does openrc load the tun module on demand or at boot? Anyway I don't believe kernel modules are, maybe you are confused with the on-demand service/socket/etc loading?

hmmm... IDK, maybe the init.d/openvpn script modprobed tun. I can't check it now; I removed all traces of openrc in etc/init.d :D (after finding a replacement for the essential /etc/init.d/functions.sh).

Anyway, I think the openvpn@.service should take care of loading the tun module somehow.
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