Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #209394

Openvpn cli vs. Openvpn Networkmanager

From basti <mailinglist@unix-solution.de>
Newsgroups linux.debian.user
Subject Openvpn cli vs. Openvpn Networkmanager
Date 2019-05-29 23:30 +0200
Message-ID <y3eiZ-5ne-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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,

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Openvpn cli vs. Openvpn Networkmanager basti <mailinglist@unix-solution.de> - 2019-05-29 23:30 +0200
  Re: Openvpn cli vs. Openvpn Networkmanager Reco <recoverym4n@enotuniq.net> - 2019-05-30 08:20 +0200

csiph-web