Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openvpn not updating resolv.conf when using systemd [solved]
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
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 354
Location: Oleiros

PostPosted: Sat Dec 14, 2013 5:26 pm    Post subject: Openvpn not updating resolv.conf when using systemd [solved] Reply with quote

Hi,

I'm trying to migrate from openrc to systemd and I'm having some problems...among them: openvpn doesn't update resolv.conf when run through the systemd service ("systemctl start openvpn@XXX")... When I check "/var/log/openvpn.log" everything seems fine (it reaches the "Initialization Sequence Completed" message), but I cannot resolve names (with ssh, e.g.) which the remote server is aware of... You would think this is a problem with my client or server configuration (over which, I have no control whatsoever) but this was not happening before with openrc and the classic /etc/init.d/openvpn.XXX start

I have another OpenVPN setup of my own which works perfectly with systemd, but it doesn't require any DNS push stuff...

Any ideas?

Cheers!!

EDIT:

Solved: I just had to add

Code:

script-security 2
down-pre
down /etc/openvpn/down.sh
up /etc/openvpn/up.sh


to the .conf (client) file. The init.d script was doing this through arguments passed to the daemon.
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