The Great Escape - Tunnel your way to freedom with SSH

JohnDalton33 220 views 35 slides Mar 15, 2016
Slide 1
Slide 1 of 35
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35

About This Presentation

SSH is something that many developers and most sysadmins and devops folk use on a daily basis, but we usually barely scratch the surface of what it's capable of. These slides are from my talk at #OSDC2015, showing how you can use SSH to create different types of tunnels that can allow any kind o...


Slide Content

The Great Escape
Tunnel your way to freedom with SSH
@johndalton

The Great Escape
Tunnel your way to freedom with SSH
@johndalton

https://help.ubuntu.com/community/SSH_VPN

+---------------+ OpenSSH 4.3 +---------------+
| Machine A | tun0 -- Tunnel Interface -- tun0 | Machine B |
| Has a tunnel | <------------------------------->| Has a tunnel |
| and ethernet | 10.0.0.100 10.0.0.200 | and ethernet |
+-------+-------+ point to point connection +-------+-------+
eth0 | creates a bridge | eth0
10.0.0.100 | that plugs machine B | 192.168.0.100
port 22 | into network A |
forwarded | |
here | |
+-------+-------+ +-~-~-~-~-~-~-~-+ +-------+-------+
| Network A | | | | Network B |
| 10.0.0.1/24 | 1.2.3.4 | The Internet | | 192.168.0.1/24|
| Has internet |<-------->| |<----->| Has internet |
| NAT gateway | Routable | | | NAT gateway |
+---------------+ Address +-~-~-~-~-~-~-~-+ +---------------+

https://github.com/sshuttle/sshuttle

brew install sshuttle
sudo sshuttle --dns -Dr
[email protected] 0/0

When all you have is a hammer…

When all you have is a hammer…
Multitool