User Tools

Site Tools


informatique:logiciels:socat
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


informatique:logiciels:socat [2019/07/11 13:22] (current) – created pteu
Line 1: Line 1:
 +======socat======
  
 +[[http://www.dest-unreach.org/socat/|socat]] est un outil en ligne de commande pour manipuler les sockets réseau. Il permet notamment de rediriger une socket vers une autre (sens bidirectionnel).
 +
 +<code bash>
 +# rediriger le port 2222 local vers le serveur SSH de la machine test.fr
 +socat TCP4-LISTEN:2222,reuseaddr,fork TCP4:test.fr:22 &
 +
 +# test
 +telnet 127.0.0.1 2222
 + Trying 127.0.0.1...
 + Connected to 127.0.0.1.
 + Escape character is '^]'.
 + SSH-2.0-OpenSSH_7.4
 + ^]
 +</code>
informatique/logiciels/socat.txt · Last modified: 2019/07/11 13:22 by pteu