• Avery Pennarun's avatar
    iptables: more resilient startup/cleanup. · a21e8c7a
    Avery Pennarun authored
    Now the sudo iptables subprocess persists for the entire life of sshuttle.
    The benefits of this are:
    
    - no need to authenticate again at shutdown (failure of which could cause us
      to not clean up iptables)
    
    - if the main process dies unexpectedly, iptables still gets cleaned up
    
    - the password prompt can happen *before* starting the ssh/server process,
      which means it'll stand out and the password prompt won't be overwritten.
    a21e8c7a
ssh.py 1.52 KB