summaryrefslogtreecommitdiff
path: root/data/templates/conserver/conserver.conf.tmpl
blob: 4e7b5d8d710fe319efb29324638c885859e51cb9 (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_console-server.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 localhost;
    allowed localhost;
}