Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #198053
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | OpenVPN dhcp |
| Date | 2018-07-27 20:40 +0200 |
| Message-ID | <wgfOF-39b-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hello,
Is there a way to have an OpenVPN server push dhcp-options to the
clients that completely replace any existing entries in
/etc/resolv.conf?
Using these OpenVPN settings on the server:
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DNS fd00:10:8::1"
push "dhcp-option DOMAIN debian.org"
VPN'ed clients see this in /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 10.8.0.1
nameserver fd00:10:8::1
nameserver 8.8.8.8
search debian.org some-isp.tld
Note the ISP supplied "8.8.8.8" and "some-isp.tld" entries that remain
in /etc/resolv.conf after connecting to the VPN.
tia,
-Jim P.
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
OpenVPN dhcp Jim Popovitch <jim@k4vqc.com> - 2018-07-27 20:40 +0200
Re: OpenVPN dhcp Roberto C. Sánchez <roberto@debian.org> - 2018-07-27 21:00 +0200
Re: OpenVPN dhcp Jim Popovitch <jim@k4vqc.com> - 2018-07-28 18:50 +0200
Re: OpenVPN dhcp Erwan David <erwan@rail.eu.org> - 2018-07-28 19:40 +0200
Re: OpenVPN dhcp Jim Popovitch <jim@k4vqc.com> - 2018-07-28 20:10 +0200
Re: OpenVPN dhcp Roberto C. Sánchez <roberto@debian.org> - 2018-07-28 22:00 +0200
csiph-web