Chaining sshuttle commands over two hops

I have the following scenario:

  • Host A: Mi machine
  • Host B: Server – 192.168.1.1
  • Host C: Hop node – 192.168.2.1
  • Network N: 192.168.3.0/24

Using sshuttle what’s the best way to forward and be able to reach machines of network N (192.168.3.0/24) from Machine A, passing thru B and C?

I can actually run:

sshuttle -r root@192.168.1.1 -v 192.168.3.0/24 &
ssh root@192.168.1.1
sshuttle -r root@$192.168.2.1 -v 192.168.3.0/24 &

If I open in the browser for example http://192.168.3.5 from Machine A I’m receiving the TCP packages in the destination node, but not getting routed correctly the answer.

Related:

Leave a Reply