fbpx

Acessando o Mikrotik RouterOS via MAC Telnet a partir de uma caixa Linux

Acessando o Mikrotik RouterOS via MAC Telnet a partir de uma caixa Linux

Se você conhece Mikrotik Routers você sabe que você é capaz de acessá-los via MAC Telnet (veja aqui para mais detalhes) via Layer2 com Winbox. Mas executar o Winbox via Wine em um Linux não é tão bom para usar o MAC Telnet, e há uma maneira melhor .. basta usar MAC-Telnet de Håkon Nessjøen. No Ubuntu/Debian você pode simplesmente instalar o pacote com

sudo apt-get install mactelnet-client

e você vê sua característica assim:

$ mactelnet -h
MAC-Telnet 0.4.2
Usage: mactelnet <MAC|identity> [-h] [-n] [-a <path>] [-A] [-t <timeout>] [-u <user>] [-p <password>] [-U <user>] | -l [-B] [-t <timeout>]

Parameters:
MAC MAC-Address of the RouterOS/mactelnetd device. Use mndp to
discover it.
identity The identity/name of your destination device. Uses
MNDP protocol to find it.
-l List/Search for routers nearby (MNDP). You may use -t to set timeout.
-B Batch mode. Use computer readable output (CSV), for use with -l.
-n Do not use broadcast packets. Less insecure but requires
root privileges.
-a <path> Use specified path instead of the default: ~/.mactelnet for autologin config file.
-A Disable autologin feature.
-t <timeout> Amount of seconds to wait for a response on each interface.
-u <user> Specify username on command line.
-p <password> Specify password on command line.
-U <user> Drop privileges to this user. Used in conjunction with -n
for security.
-q Quiet mode.
-h This help.

Então, vamos tentar, primeiro com a busca do meu roteador doméstico

$ mactelnet -l
Searching for MikroTik routers... Abort with CTRL+C.
IP MAC-Address Identity (platform version hardware) uptime
10.x.x.x 0:xx:xx:xx:xx:xx jumpgate (MikroTik x.x.x. xxxx) up 139 days 5 hours XXXXX-XXXX vlanInternal

e então nos conectaremos

$ mactelnet 0:xx:xx:xx:xx:xx

e estamos conectados.

Deixe uma resposta

0