From 7d37f12b93b4bab9ec8fea4018f201bf219f652c Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Fri, 9 Feb 2024 22:54:57 +0100 Subject: [PATCH] add dns forwarding to connect script --- scripts/connect_basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/connect_basic.py b/scripts/connect_basic.py index 5b91169..e5567a8 100644 --- a/scripts/connect_basic.py +++ b/scripts/connect_basic.py @@ -67,7 +67,10 @@ def wireguard(): ] ) subprocess.run( - ["nsenter", "--net=/run/vpn/net", "/snacks/wireguard/scripts/inner_basic.sh"], + ["/snacks/wireguard/scripts/inner_basic.sh"], + ) + subprocess.run( + ["nft", "-f", "/snacks/wireguard/scripts/dns.nft"], )