ser2net.yaml(5) File Formats Manual ser2net.yaml(5) NAME /etc/ser2net/ser2net.yaml - Serial to network proxy configuration file DESCRIPTION ser2net used to be a program for connection network connections to serial ports. It's now a program for connecting accepter gensio to connecting gensios. See gensio(5) for details on gensios. ser2net is configured with yaml, which is flexible and easy to use. Look at yaml documentation on the internet for how that works. DEFINE SPECIFICATION YAML has the ability to create aliases that can be used elsewhere in the configuration file. These can be used for tying things together between parts of the file, or (as an extension to YAML) for string substitution. You define an alias with the following: define: &aliasname alias text This will create an alias with the given name. Then you can use it elsewhere like: banner: *aliasname and the banner will be "alias text". Unlike standard YAML, you can also use this inside strings using *(aliasname) so if you have banner: My banner *(aliasname) is here The banner will be "My banner alias text is here". See the YAML documentation for how spaces are handled, but as a note, use quotes if you are not sure, like: define: &aliasname "alias text" banner: "My banner *(aliasname) is here" If you for some reason need "*(" in your text, use "*(*" for that. INCLUDING OTHER FILES A YAML file may include another file at the main level, with: include: This filename can include globs, and all referenced files are included. These must be full yaml files, but are included in context at this point, with all the defines, connection names, etc. This can let you have individual connections in individual files to ease management. USING EXTERNAL FILES You may want to store passwords and such in external files for better security. Putting "*{filename}" in a YAML scalar will put the file's contents into the scalar at that point. If you need a "*{" in the string for some reason, use "*{*". CONNECTION SPECIFICATION A connection is a structure that describes how to connect an accepting gensio to a connecting gensio. An accepter specification looks like: connection: & accepter: timeout: enable: on|off connector: options: