On 29/05/21 04:14 AM, sergio wrote:

> resolv.conf left configured after tunnel down due to lack of down script

No, the Debian supplied script is supposed to be used for both

---
$ head /etc/openvpn/update-resolv-conf
#!/bin/bash
# 
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
---

and handles down just fine.

> If you will be updating the current debian update-resolv-conf with
> client.up / client.down from openwrt, please pay attention, that
> client.up calls resolvconf with '-p' so it fails on debian.

I won't be updating the resolvconf scripts myself, but I would accept
tested patches for it. 

The scripts in
https://github.com/OpenVPN/openvpn/tree/master/contrib/pull-resolv-conf
are not acceptable (they fiddle with /etc/resolv.conf directly if
resolvconf is not available).

Bernhard

Reply via email to