Solved Py27-sshuttle/Sshuttle crashes

I am trying to run sshuttle on an ARMv6 but if fails as shown in the below. I ran the command with and without 'sudo' but no luck.

Code:
 s: <  channel=0 cmd=PING len=7                                                                                                                                                                                    
 s:  > channel=0 cmd=PONG len=7 (fullness=166)                                                                                                                                                                     
 s: mux wrote: 15/15                                                                                                                                                                                               
 s: Waiting: 1 r=[4] w=[] x=[] (fullness=173/0)                                                                                                                                                                    
firewall manager: undoing changes.                                                                                                                                                                                 
firewall manager: undoing IPv4 changes.                                                                                                                                                                            
firewall manager: Error trying to undo IPv4 firewall.                                                                                                                                                              
firewall manager: ---> Traceback (most recent call last):                                                                                                                                                          
firewall manager: --->   File "/usr/local/lib/python2.7/site-packages/sshuttle/firewall.py", line 244, in main                                                                                                     
firewall manager: --->     method.restore_firewall(port_v4, socket.AF_INET, udp)                                                                                                                                   
firewall manager: --->   File "/usr/local/lib/python2.7/site-packages/sshuttle/methods/nat.py", line 85, in restore_firewall                                                                                       
firewall manager: --->     if ipt_chain_exists(family, table, chain):                                                                                                                                              
firewall manager: --->   File "/usr/local/lib/python2.7/site-packages/sshuttle/linux.py", line 26, in ipt_chain_exists                                                                                             
firewall manager: --->     p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, env=env)                                                                                                                           
firewall manager: --->   File "/usr/local/lib/python2.7/subprocess.py", line 390, in __init__                                                                                                                      
firewall manager: --->     errread, errwrite)                                                                                                                                                                      
firewall manager: --->   File "/usr/local/lib/python2.7/subprocess.py", line 1025, in _execute_child                                                                                                               
firewall manager: --->     raise child_exception                                                                                                                                                                   
firewall manager: ---> OSError: [Errno 2] No such file or directory                                                                                                                                                
firewall manager: undoing /etc/hosts changes.                                                                                                                                                                      
Traceback (most recent call last):                                                                                                                                                                                 
  File "/usr/local/bin/sshuttle", line 11, in <module>                                                                                                                                                             
    load_entry_point('sshuttle==0.78.1', 'console_scripts', 'sshuttle')()                                                                                                                                          
  File "/usr/local/lib/python2.7/site-packages/sshuttle/cmdline.py", line 25, in main                                                                                                                              
    return firewall.main(opt.method, opt.syslog)                                                                                                                                                                   
  File "/usr/local/lib/python2.7/site-packages/sshuttle/firewall.py", line 196, in main                                                                                                                            
    socket.AF_INET, subnets_v4, udp)                                                                                                                                                                               
  File "/usr/local/lib/python2.7/site-packages/sshuttle/methods/nat.py", line 34, in setup_firewall                                                                                                                
    self.restore_firewall(port, family, udp)                                                                                                                                                                       
  File "/usr/local/lib/python2.7/site-packages/sshuttle/methods/nat.py", line 85, in restore_firewall                                                                                                              
    if ipt_chain_exists(family, table, chain):                                                                                                                                                                     
  File "/usr/local/lib/python2.7/site-packages/sshuttle/linux.py", line 26, in ipt_chain_exists                                                                                                                    
    p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, env=env)                                                                                                                                                  
  File "/usr/local/lib/python2.7/subprocess.py", line 390, in __init__                                                                                                                                             
    errread, errwrite)                                                                                                                                                                                             
  File "/usr/local/lib/python2.7/subprocess.py", line 1025, in _execute_child                                                                                                                                      
    raise child_exception                                                                                                                                                                                          
OSError: [Errno 2] No such file or directory                                                                                                                                                                       
c : fatal: cleanup: ['sudo', '-p', '[local sudo] Password: ', 'PYTHONPATH=/usr/local/lib/python2.7/site-packages', '--', '/usr/local/bin/python2.7', '/usr/local/bin/sshuttle', '-v', '-v', '--method', 'nat', '--f
irewall'] returned 1                                                                                                                                                                                               
$  s:   Ready: 1 r=[4] w=[] x=[]
 
Never used it before but looking at the errors I'm assuming you need to configure it. It appears to be trying something with iptables, which only works on Linux.
 
Thanks.
I got it working by adding the user running sshuttle to the wheel group. I am now more worried about sshguard repeatedly adding my IP address to its blacklist despite that I have added the IP addr block to the sshguard.whitelist file. This matter makes me go back to the rescue mode to remove the IP addr from the blacklist.

Interestingly, the IP address gets added to the blacklist every time I sshed via the ARM board, in addition sshing via the other PC(s).
 
Back
Top