qusal/salt/sys-wireguard/files/server/qubes-firewall.d/50-sys-wireguard-pre

13 lines
321 B
Plaintext
Raw Normal View History

2023-11-13 09:33:28 -05:00
#!/bin/sh
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
2023-12-20 10:49:58 -05:00
echo "define qube_ip = $(qubesdb-read /qubes-ip)" \
| tee /rw/config/vpn/qube-ip.nft >/dev/null
2023-11-13 09:33:28 -05:00
nft -f /rw/config/vpn/dns-hijack.nft
## TODO: read https://www.wireguard.com/netns/