From c4bf429eb09e92fa971a60899aeeba9654512606 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Thu, 19 Mar 2020 13:26:11 +0100 Subject: [PATCH] New sshuttle helper function --- local/tunnel.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/local/tunnel.el b/local/tunnel.el index 09b95dd..c772c92 100644 --- a/local/tunnel.el +++ b/local/tunnel.el @@ -7,4 +7,11 @@ (with-current-buffer buffer (insert (concat "Starting tunnel on " host " port " port))))) +(defun sshuttle-tunnel (host) + (interactive "suser@host: ") + (let ((buffer "sshuttle")) + (async-shell-command + (format "sudo sshuttle --dns -r %s 0.0.0.0/0" host) + buffer))) + (provide 'tunnel)