diff options
Diffstat (limited to 'sshuttle/methods/__init__.py')
-rw-r--r-- | sshuttle/methods/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sshuttle/methods/__init__.py b/sshuttle/methods/__init__.py index 36a3f79..6d776e6 100644 --- a/sshuttle/methods/__init__.py +++ b/sshuttle/methods/__init__.py @@ -102,12 +102,14 @@ def get_method(method_name): def get_auto_method(): if _program_exists('iptables'): method_name = "nat" + elif _program_exists('nft'): + method_name = "nft" elif _program_exists('pfctl'): method_name = "pf" elif _program_exists('ipfw'): method_name = "ipfw" else: raise Fatal( - "can't find either iptables or pfctl; check your PATH") + "can't find either iptables, nft or pfctl; check your PATH") return get_method(method_name) |