[systemd-devel] networkd - how to (partially) manage OpenVPN interfaces?

Susant Sahani ssahani at vmware.com
Wed Sep 25 17:56:23 UTC 2019



On 22/09/19, 5:35 PM, "systemd-devel on behalf of Marc Haber" <systemd-devel-bounces at lists.freedesktop.org on behalf of mh+systemd-devel at zugschlus.de> wrote:

    Hi,
    
    On Mon, Sep 16, 2019 at 12:54:23PM +0200, Marc Haber wrote:
    > when I run an OpenVPN interface, OpenVPN manages the interface itself:
    > It handles creation, destruction and assignment of the IP address. The
    > IP address can be controlled by the remote site, so the OpenVPN daemon
    > is kind of the only thing that can configured the Interface.
    > 
    > I would, however, like systemd-resolved to ask DNS servers that are
    > reachable over the VPN for certain domains, such as ka51.zugschlus.de.
    > 
    > Dumping a tun0.network containing:
    > [Match]
    > Name=tun0
    > 
    > [Network]
    > Domains=~ka51.zugschlus.de
    > DNS=2a01:238:4071:3281::35:100
    > DNS=2a01:238:4071:328e::35:100
    > DHCP=no
    > IPv6AcceptRA=no
    > 
    > into /e/s/n doesn't work since that clears up the IP addresses that
    > OpenVPN has correctly assigned.
    
    No hints? Is this behavior - maybe - a bug?

Did you tried with KeepConfiguration=?
    -----------------------------------------------------------------------------
    Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
    Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
    Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421
    _______________________________________________
    systemd-devel mailing list
    systemd-devel at lists.freedesktop.org
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fsystemd-devel&data=02%7C01%7Cssahani%40vmware.com%7Ca1042d3fdd6644a7d53a08d73f5526f7%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637047507269625407&sdata=%2Fu2cyfmbygDu9kU1bAec%2BGi%2FIRocE9fFMazLDIw%2FvQk%3D&reserved=0



More information about the systemd-devel mailing list