add dns forwarding to connect script

This commit is contained in:
Roy Olav Purser 2024-02-09 22:54:57 +01:00
parent 83caf49675
commit 7d37f12b93
Signed by: roypur
GPG Key ID: 063DAA01D56E28CB

View File

@ -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"],
)