.TH ser2net.yaml 5 06/02/01 "Serial to network proxy configuration file" .SH NAME /etc/ser2net/ser2net.yaml \- Serial to network proxy configuration file .SH 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. .SH 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 subtitution. You define an alias with the following: .IP define: &aliasname alias text .PP This will create an alias with the given name. Then you can use it elsewhere like: .IP banner: *aliasname .PP and the banner will be "alias text". Unlike standard YAML, you can also use this inside strings using .IP *(aliasname) .PP so if you have .IP banner: My banner *(aliasname) is here .PP 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: .IP define: &aliasname "alias text" banner: "My banner *(aliasname) is here" .PP If you for some reason need "*(" in your text, use "*(*" for that. .SH 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 "*{*". .SH CONNECTION SPECIFICATION A connection is a structure that describes how to connect an accepting gensio to a connecting gensio. An accepter specification looks like: .RS connection: & .RS accepter: .br timeout: .br enable: on|off .br connector: .br options: .RS