qusal/salt/sys-wireguard/files/server/network-hooks.d/50-sys-wireguard
2024-01-29 16:49:54 +01:00

12 lines
310 B
Bash
Executable File

#!/bin/sh
# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set -eu
ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf
/rw/config/qubes-firewall.d/50-sys-wireguard-var
nft -f /rw/config/qubes-firewall.d/60-sys-wireguard-nat