From: "cron2 (Code Review)" Date: Tue, 13 May 2025 09:44:32 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <75794f4ac75ca8ecc32ece72210bc364468b041c-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="v3AlYvoXVj8="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: apply settings via script on unixoid systems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: flichtenheld , plaisthos , openvpn-devel --v3AlYvoXVj8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/838?usp=3Demail ) Change subject: dns: apply settings via script on unixoid systems ...................................................................... Patch Set 23: Code-Review-1 (4 comments) Patchset: PS22: > So, tested on FreeBSD, script works. Great :-) [=E2=80=A6] What about incoming dhcp-options? These still do not make it into a `--dns= -updown` call - having that fixed in a later patch in the series is fine, b= ut I need to know what the intention is, to move ahead. Patchset: PS23: Getting closer - Gentoo ("resolv.conf") works now, OpenBSD breaks in more e= xciting ways, and I need an answer on the plan for dhcp-option handling. File distro/dns-scripts/resolvconf_file-dns-updown.sh: http://gerrit.openvpn.net/c/openvpn/+/838/comment/df4e47af_a1042fd9 : PS22, Line 85: > Done Still does not work, but it's way more interesting now. While OpenVPN runs ``` obsd75$ cat /etc/resolv.conf ### openvpn tun1 begin ###nnameserver 10.194.0.1nnameserver fd00:abcd:194::= 1n### openvpn tun1 end ###nlookup file bind nameserver 195.30.0.2 nameserver 195.30.0.1 nameserver 2001:608::2 ``` which hints at shell/echo/"\n" madness... After OpenVPN finishes, it "cleans up": `` obsd75$ cat /etc/resolv.conf obsd75$ ` ``` (this is on OpenBSD 7.6, the naming/prompt is a bit stale) File distro/dns-scripts/systemd-dns-updown.sh: http://gerrit.openvpn.net/c/openvpn/+/838/comment/d260ed1a_af935874 : PS22, Line 231: } > Done This works now! ``` gert@...2718... ~ $ cat /etc/resolv.conf ### openvpn tun8 begin ### nameserver 10.194.0.1 nameserver fd00:abcd:194::1 ### openvpn tun8 end ### # Generated by netifrc for interface enp2s1 domain ov.greenie.net nameserver 2001:608::2 nameserver 195.30.0.1 nameserver 195.30.0.2 ``` -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/838?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb3436fcdc71b10 Gerrit-Change-Number: 838 Gerrit-PatchSet: 23 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: d12fk Gerrit-Comment-Date: Tue, 13 May 2025 09:44:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: cron2 Comment-In-Reply-To: d12fk Gerrit-MessageType: comment --v3AlYvoXVj8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, flichtenheld, plaisthos. <= /p>

Patch set 23:Code-Review -1

V= iew Change

4 comments:

  • Patchset:

    • Patch Set #22:

      So, tested on F= reeBSD, script works. Great :-) [=E2=80=A6]

      What about incoming dhcp-optio= ns? These still do not make it into a `--dns-updown` call - having that fi= xed in a later patch in the series is fine, but I need to know what the int= ention is, to move ahead.

  • Patchset:

    • Patch Set #= 23:

      Gett= ing closer - Gentoo ("resolv.conf") works now, OpenBSD breaks in = more exciting ways, and I need an answer on the plan for dhcp-option handli= ng.

  • File distro/d= ns-scripts/resolvconf_file-dns-updown.sh:

    • Patch Set #22, Line 85:

      Done

      Still does not work, bu= t it's way more interesting now.

      While OpenVPN runs

      ```
      obsd75$ cat /etc/resolv.conf
      ### op= envpn tun1 begin ###nnameserver 10.194.0.1nnameserver fd00:abcd:194::1n### = openvpn tun1 end ###nlookup file bind
      nameserver 195.30.0.2
      nameserve= r 195.30.0.1
      nameserver 2001:608::2
      ```
      which hints at shell/echo= /"\n" madness...

      After OpenVPN finishes, it "cleans up":
      ``
      ob= sd75$ cat /etc/resolv.conf
      obsd75$ `
      ```

      (this is on OpenBSD 7.6, the naming/promp= t is a bit stale)

  • File distro/dns-scripts/systemd-dns-updown.sh:

    • Patch Set #22, Line 231: }

      Done

      This works now= !

      ```
      gert= @...2718... ~ $ cat /etc/resolv.conf
      ### openvpn tun8 begin ###
      names= erver 10.194.0.1
      nameserver fd00:abcd:194::1
      ### openvpn tun8 end ###=
      # Generated by netifrc for interface enp2s1
      domain ov.greenie.netnameserver 2001:608::2
      nameserver 195.30.0.1
      nameserver 195.30.0.2```

To view, visit change 838. To unsubscribe, or fo= r help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb= 3436fcdc71b10
Gerrit-Change-Number: 838
Gerrit-PatchSet: 23
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Tue, 13 May 2025 09:44:32= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2 <gert@...1296...= >
Comment-In-Reply-To: d12fk <heiko@...515...= >
Gerrit-MessageType: comment
--v3AlYvoXVj8=--