summaryrefslogtreecommitdiff
path: root/data/templates/conserver/conserver.conf.tmpl
blob: 329a9b4ae8cd9f66e35af4b0aa070505c5d90a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
### Autogenerated by service_serial-proxy.py ###

# See https://www.conserver.com/docs/conserver.cf.man.html for additional options

config * {
    primaryport 3109;
    daemonmode false;
}

default * {
    motd "VyOS Console Server";
    rw *;
}

##
## list of consoles we serve
##
{% for key, value in device.items() %}
{#   Depending on our USB serial console we could require a path adjustment #}
{%   set path = '/dev' if key.startswith('ttyS') else '/dev/serial/by-bus' %}
console {{ key }} {
    master localhost;
    type device;
    device {{ path }}/{{ key }};
    baud {{ value.speed }};
    parity {{ value.parity }};
    options {{ "!" if value.stop_bits == "1" }}cstopb;
}
{% endfor %}

##
## list of clients we allow
##
access * {
    trusted 127.0.0.1;
    allowed 127.0.0.1;
}