In this video, learn how to set up a remote port forwarding tunnel to enable access inside a network using SSH.
- [Instructor] Let's look at remote port forwarding.…To do this, I'll use my Ubuntu Server as a gateway.…This is on the subnet that's addressed 10.0.2.12.…I'd like to SSH into my Tiny Core Linux system…on IP address 10.1.1.5,…but this isn't directly accessible from my network.…However, I can make an SSH connection to my Ubuntu host…as a DMZ server, and have that present an SSH port…for Tiny Core Linux through its secondary network.…
I can then route traffic through to Tiny Core Linux…via my Ubuntu host.…We need to make one change to the SSH configuration…in the Ubuntu Server to enable gateways.…Here we can see the line I've added, GatewayPorts yes.…In my Tiny Core Linux system,…I'll issue the SSH command to open a port on Ubuntu.…The -R switch tells SSH,…this is a remote port forwarding tunnel,…and asks for port 2222 to be opened on host 10.1.1.7,…and to connect back to my SSH on port 22.…
I haven't backgrounded SSH in this case, but I could have.…Back in Kali, I can now use port 2222 on the Ubuntu host.…And I've successfully routed through Ubuntu…
- How tunneling works
- Running a local SSH tunnel
- Dynamic SSH tunneling
- Pivoting with Armitage and Metaspoit
- Exfiltrating using DET and DNS
- Covert exfiltration with Cachetalk
- Using PyExfil to exfiltrate over HTTPS
Skill Level Advanced
Ethical Hacking: Penetration Testingwith Lisa Bock1h 20m Intermediate
Penetration Testing Essential Trainingwith Malcolm Shore2h 29m Intermediate
Penetration Testing: Advanced Kali Linuxwith Malcolm Shore2h 22m Intermediate
1. Preparing the Lab
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.