Has anyone tried setting up sshuttle under Qubes?
After setting up root@netvm to be able to ssh to another machine ("ssh
speed"), I ran
sshuttle -v -r speed 0/0 -x 10/8
and expected that outgoing TCP connections would be transparently
proxied via the ssh connection. The sshuttle program reported that it
was doing
iptables -t nat -N sshuttle-12300
iptables -t nat -F sshuttle-12300
iptables -t nat -I OUTPUT 1 -j sshuttle-12300
iptables -t nat -I PREROUTING 1 -j sshuttle-12300
iptables -t nat -A sshuttle-12300 -j RETURN --dest
127.0.0.0/8 -p tcp
iptables -t nat -A sshuttle-12300 -j RETURN --dest
10.0.0.0/8 -p tcp
iptables -t nat -A sshuttle-12300 -j REDIRECT --dest
0.0.0.0/0 -p tcp --to-ports 12300 -m ttl ! --ttl 42
as I expected, and outgoing TCP connections _from netvm_ were proxied as
I expected, but outgoing TCP connections from other VMs failed with "no
route to host".
I haven't explored how the Qubes intra-host networking setup works,
haven't started debugging with tcpdump, etc.; I'm just hoping that
someone else has already looked at this.
---Dan