View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Utilizar socat para emular un udp telnet

Instalación en el servidor


  1. Se instala el socat:
    # apt-get install socat
  2. Se arranca en un fichero de arranque del sistema:
    # echo '#/bin/sh' > /etc/rcS.d/S41socat
    # echo '/usr/bin/socat udp4-listen:10000 exec:/bin/bash &' >> /etc/rcS.d/S41socat
    # chmod 755 /etc/rcS.d/S41socat
    # /etc/rcS.d/S41socat

Cliente


  1. te conectas con un simple nc (netcat):
    $ nc -u ip_servidor 10000

NOTA: No escribir exit o cerrarás el servidor (siomplemente haz ctrl+c)