Table of Contents

Serial Tunneling

Introduction

The NetModule Router serial port server can forward serial lines to virtual COM ports of a PCs. This allows you to remotely access to PLCs and other serial attached devices.

Configuration

Router

On Windows

Another example:

Test

On Linux

The socat tool can be used to access the serial interface tunnel via the console using TCP.

The first command is for the connection between IP address and ser2net server on the router

USER
~ $ socat PTY,link=/dev/“virtual interface”,echo=0,wait-slave TCP:“IP-adresse”:“port-nummer”,retry=5

In a second console, the virtual interface is then used for the connection to the serial interface.

USER
~ $ socat STDIO,raw,echo=0,escape=0x03 /dev/“virtual interface“,raw,echo=0 NB2700 login: root Password: NB2700 © 2004-2023, NetModule AG BusyBox v1.30.1 (2023-07-31 14:09:01 UTC) built-in shell (ash) ~ $