summaryrefslogtreecommitdiffstats
path: root/sshuttle/firewall.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/firewall.py')
-rw-r--r--sshuttle/firewall.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sshuttle/firewall.py b/sshuttle/firewall.py
index 1e8d325..5a3b0e7 100644
--- a/sshuttle/firewall.py
+++ b/sshuttle/firewall.py
@@ -114,6 +114,11 @@ def main(method_name, syslog):
ssyslog.start_syslog()
ssyslog.stderr_to_syslog()
+ if not method.is_supported():
+ raise Fatal("The %s method is not supported on this machine. "
+ "Check that the appropriate programs are in your "
+ "PATH." % method_name)
+
debug1('ready method name %s.\n' % method.name)
stdout.write('READY %s\n' % method.name)
stdout.flush()