DevKB
Web Development Knowledge Base
HOME | TOP 20 | WRITE AN ARTICLE |
Sections :



RSS RSS Feed

You too, please publish your useful code snippets in any programming language :
write an article !


Valid HTML 4.0 Transitional

Plateforme d'envoi de gros fichiers en ligne
Dépannage site web
Blog infogérance
Hébergement e-mail

Olivier Ligny - - 21/08/2012 - vue 41831 fois

TCP tunnel (port forwarding) using Netcat

Here is how to establish a tunnel using netcat to a given host and port.

netcat -L 127.0.0.1:22 -p 8080 -vvv
Listen on port 8080 of the server, and when somebody tries to connect, establish a link with 127.0.0.1:22 (i.e.: SSH server).

netcat -L google.fr:80 -p 25000 -vvv
Listen on port 25000 of the server, and when somebody tries to connect, connect him to Google web server.

Warning : you need a recent version of GNU netcat (GNU netcat 0.7.1 +)
GNU netcat download : http://netcat.sourceforge.net/download.php




Write a comment :
Your name :     E-mail (optional) :

AntiSpam : what animal is visible on this picture ? :

Nos partenaires : iPhone 8 Cases & Protection