Browse Source

New sshuttle helper function

master
Nicolas Petton 7 months ago
parent
commit
c4bf429eb0
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      local/tunnel.el

+ 7
- 0
local/tunnel.el View File

@@ -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)

Loading…
Cancel
Save