comms/set2net configuration after 4.6.4
Since 2019, set2net has introduced a new configuration format based on YAML. The set2net package provide two main sources of information, the ser2net.yaml(5)
Simplest configuration
The following configuration has a connection named "test" who exposes the serial device '/dev/cuaU0' at 115200 bitrate accessible through telnet on tcp port 4000. As an option, at every connection the the banner "Connected to test" is displayed.
connections: test: accepter: telnet(rfc2217),tcp,4000 connector: serialdev,/dev/cuaU0,115200 options: banner: "Connected to \o\r\n"
Example:
% telnet testbench 4000 Trying 192.168.1.10... Connected to testbench.home. Escape character is '^]'. Connected to test