# Tür 05: SSHuttle

05.12.2024 · Zentonic Atzwentzkalender

Tür 05 des 2024 Atzwentzkalenders.

Heute krame ich einen Klassiker raus, der mir schon seit vielen Jahren treue Dienste leistet und auch heutzutags zwischen den Wireguards, den Tailscales, den Tincs und den Netbirds immer wieder zum Zuge kommt…

- [sshuttle](https://github.com/sshuttle/sshuttle)
- <https://www.zentonic.org/blog/88>

<figure>
<img src="https://podcast.zentonic.org/dmp/sshuttle.png" alt="tcl GUI" />
<figcaption aria-hidden="true">tcl GUI</figcaption>
</figure>

``` bash
## Beispiele

# connect zu example.org und "route" 10.29.98.0/24 über diese Verbindung
sshuttle -r holm@example.org 10.29.98.0/24

# connect zur c-base und nutze deren dns sowie route deren Netz durch die Verbindung
sshuttle -r holm@tunnel.c-base.org --dns --to-ns 10.0.1.254 10.0.0.0/23

# eine sshuttle Config Datei
cat ~/.ssh/sshuttle/gs6/ts20.conf
───────┬──────────────────────────────────────────────────────────────────────────
       │ File: /home/holm/.ssh/sshuttle/gs6/ts20.conf
───────┼──────────────────────────────────────────────────────────────────────────
   1   │ # Netz zwo
   2   │ 10.2.0.0/16
   3   │ # BlackJack
   4   │ 10.17.4.0/24
   5   │ # Management (Essen) 
   6   │ 10.13.2.0/24
   7   │ --remote
   8   │ aliasfuerjumphost
───────┴──────────────────────────────────────────────────────────────────────────

# Aufruf der Config
sshuttle @/home/holm/.ssh/sshuttle/gs6/ts20.conf
```

---

- **Folgenseite:** <https://advent.podcast.zentonic.org/episodes/2024-05.html>
- **Audio:** <https://advent.podcast.zentonic.org/audio/2024-05.mp3>
- **Mitwirkende:** holm / Christian Müller
- **Dauer:** 00:07:06
- **Folge:** 05
- **Staffel:** 2024

