summaryrefslogtreecommitdiff
path: root/data/templates/conserver/conserver.conf.j2
blob: ffd29389d1d733da4868ce2ade03eb7d5323f20d (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
38
39
40
### 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;
{%     if value.alias is vyos_defined %}
    aliases "{{ value.alias }}";
{%     endif %}
}
{% endfor %}

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