I’m trying to get networkd to connect to a wireguard endpoint, specifically ProtonVPN, in case it matters. I just can’t get it to connect. Has anyone had success with that? Specifically without using wg-quick.

  • 2xsaiko
    link
    fedilink
    English
    arrow-up
    6
    ·
    5 months ago

    I use it for Mullvad and a couple internal things but yeah it works for me.

      • 2xsaiko
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 months ago

        Seems fine to me except for all the firewall and special routing stuff, I’m not familiar with that. Does the wg command show received or only sent data? For the record, this is my config:

        spoiler
        # /etc/systemd/network/mullvad.netdev
        [NetDev]
        Description=Mullvad
        Kind=wireguard
        Name=mullvad
        
        [WireGuard]
        PrivateKeyFile=/var/keys/mullvad/pk
        
        [WireGuardPeer]
        AllowedIPs=::/0
        AllowedIPs=0.0.0.0/0
        Endpoint=146.70.126.194:51820
        PublicKey=ApOUMLFcpTpj/sDAMub0SvASFdsSWtsy+vvw/nWvEmY=
        
        # /etc/systemd/network/mullvad.network
        [Match]
        Name=mullvad
        
        [Network]
        Address=10.64.130.96/32
        Address=fc00:bbbb:bbbb:bb01::1:825f/128
        
        [Route]
        Destination=::/0
        Metric=16384
        
        [Route]
        Destination=0.0.0.0/0
        Metric=16384