Web lists-archives.com

Openvpn cli vs. Openvpn Networkmanager




Hello,
I try to setup Openvpn. Frist of all I use the cli client to connect and
all works fine.

config is like follows:

...
 Only on (debian) client, you also need following directives

# resolvconf must be installed

up /etc/openvpn/update-resolv-conf

down /etc/openvpn/update-resolv-conf

...

The result is that resolv.conf:

cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.30.2 	<-- from VPN
nameserver 192.168.30.6		<-- from VPN
nameserver 192.168.0.1		<-- local
search vpn vpn.example.com my.localdomain.com localdomain.com


Then I setup it with networkmanger the connection is established, but
resolv.conf looks different with the result that i cant resolve hosts on
the other site of vpn.

cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1		<-- local
nameserver 192.168.30.2 	<-- from VPN
nameserver 192.168.30.6		<-- from VPN
search my.localdomain.com localdomain.com vpn vpn.example.com

Is there a way to fix this? or to use /etc/openvpn/update-resolv-conf
with network-manager?

Best regards,