Skip to content

crash problem when runing with dns listener with IPv6 enabled. OSError: [Errno 65] No route to host #1069

@rosorio

Description

@rosorio

After reinstalling my laptop with IPv4/IPv6 enabled (this is the only notable change), sshuttle start to crashing from time to time.
My home network has support for IPv4/IPv6, but the remote host has only IPv4.

Before that, it was rock solid for many years without issue.

This is the command I run sshuttle --dns -r rodrigo@remote 0.0.0.0/0

File "/usr/local/bin/sshuttle", line 8, in <module>
   sys.exit(main())
            ^^^^^^
 File "/usr/local/lib/python3.11/site-packages/sshuttle/cmdline.py", line 109, in main
   return_code = client.main(ipport_v6, ipport_v4,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.11/site-packages/sshuttle/client.py", line 1159, in main
   return _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.11/site-packages/sshuttle/client.py", line 803, in _main
   ssnet.runonce(handlers, mux)
 File "/usr/local/lib/python3.11/site-packages/sshuttle/ssnet.py", line 612, in runonce
   h.callback(s)
 File "/usr/local/lib/python3.11/site-packages/sshuttle/ssnet.py", line 500, in callback
   self.handle()
 File "/usr/local/lib/python3.11/site-packages/sshuttle/ssnet.py", line 488, in handle
   self.got_packet(channel, cmd, data)
 File "/usr/local/lib/python3.11/site-packages/sshuttle/ssnet.py", line 446, in got_packet
   callback(cmd, data)
 File "/usr/local/lib/python3.11/site-packages/sshuttle/client.py", line 586, in <lambda>
   mux.channels[chan] = lambda cmd, data: dns_done(
                                          ^^^^^^^^^
 File "/usr/local/lib/python3.11/site-packages/sshuttle/client.py", line 567, in dns_done
   method.send_udp(sock, srcip, dstip, data)
 File "/usr/local/lib/python3.11/site-packages/sshuttle/methods/__init__.py", line 78, in send_udp
   sock.sendto(data, dstip)
OSError: [Errno 65] No route to host

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions