You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
3.0 KiB

  1. #
  2. # This is a minimal example configuration file for ser2net. For a version with
  3. # detailed comments and all possible configuration directives, please visit:
  4. # https://github.com/cminyard/ser2net/blob/master/ser2net.conf
  5. #
  6. # On OpenWrt/LEDE systems, this configuration serves as a base configuration.
  7. # During boot of the system, the UCI configuration file /etc/config/ser2net is
  8. # parsed and converted to additional configuration lines which are _appended_
  9. # to this file. The ser2net daemon is then started with the combined
  10. # configuration file /tmp/ser2net.conf.
  11. #
  12. # A basic service configuration line has the following format:
  13. # <network port>:<state>:<timeout>:<device>:<options>
  14. # network port
  15. # Name or number of the port to accept connections
  16. # from for this device. A port number may be of the form
  17. # [ipv4,|ipv6,][tcp,|udp,][host,]port, such as
  18. # 127.0.0.1,2000 or ipv4,tcp,localhost,2000. If the host is
  19. # specified, it will only bind to the IP address
  20. # specified. Otherwise it will bind to all the ports on the
  21. # machine. If ipv4 or ipv6 is specified, it will only bind
  22. # to that network type.
  23. #
  24. # state
  25. # Either raw or rawlp or telnet or off. off disables
  26. # the port from accepting connections. It can be
  27. # turned on later from the control port. raw enables
  28. # the port and transfers all data as-is between the
  29. # port and the long. rawlp enables the port and
  30. # transfers all input data to device, device is open
  31. # without any termios setting. It allow to use
  32. # /dev/lpX devices and printers connected to them.
  33. # telnet enables the port and runs the telnet proto-
  34. # col on the port to set up telnet parameters. This
  35. # is most useful for using telnet.
  36. #
  37. # timeout
  38. # The time (in seconds) before the port will be dis-
  39. # connected if there is no activity on it. A zero
  40. # value disables this function.
  41. #
  42. # device
  43. # The name of the device to connect to. This
  44. # must be in the form of /dev/<device>.
  45. #
  46. # options
  47. # Sets operational parameters for the serial port.
  48. # For a serial device (not IPMI SOL):
  49. # Options 300, 1200, 2400, 4800, 9600, 19200, 38400,
  50. # 57600, 115200 set the various baud rates. EVEN,
  51. # ODD, NONE (MARK and SPACE if supported) set the parity.
  52. # Note that MARK and SPACE are not available on all systems
  53. # or hardware, if it is not supported then it will be
  54. # silently set to ODD or EVEN parity.
  55. # 1STOPBIT, 2STOPBITS set
  56. # the number of stop bits. 5DATABITS, 6DATABITS,
  57. # 7DATABITS, 8DATABITS set the number of data bits.
  58. # [-]XONXOFF turns on (- off) XON/XOFF support.
  59. # [-]RTSCTS turns on (- off) hardware flow control,
  60. # [-]LOCAL turns off (- on) monitoring of the modem lines,
  61. # and [-]HANGUP_WHEN_DONE turns on (- off) lowering the
  62. # modem control lines when the connection is done.
  63. # [-]NOBREAK disables automatic setting of the break
  64. # setting of the serial port.
  65. #
  66. # The "[-]remctl" option allow remote control (ala RFC
  67. # 2217) of serial-port configuration.
  68. #
  69. # Example:
  70. # 5000:telnet:0:/dev/ttyAPP0:115200 8DATABITS NONE 1STOPBIT -XONXOFF -LOCAL -RTSCTS remctl