From 16b1401194783a049009ddf58fc230849ea18cb3 Mon Sep 17 00:00:00 2001 From: William Frank Date: Tue, 1 Feb 2022 20:00:57 -0500 Subject: [PATCH] do not capture local systemd dns traffic to localhost, as it's the systemd dns proxy itself. We only need to capture the remote servers. --- sshuttle/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sshuttle/helpers.py b/sshuttle/helpers.py index 8ff536a..d74e7cc 100644 --- a/sshuttle/helpers.py +++ b/sshuttle/helpers.py @@ -89,7 +89,8 @@ def resolvconf_nameservers(systemd_resolved): # second file will fail. files = ['/etc/resolv.conf'] if systemd_resolved: - files += ['/run/systemd/resolve/resolv.conf'] + # If it's systemd based system - do not capture the stub service. Only remote servers + files = ['/run/systemd/resolve/resolv.conf'] nsservers = [] for f in files: