summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/pptp.config.j2
blob: daafd6e92917a5a9173ab763c0babdc4f1b9a59c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
### generated by accel_pptp.py ###
[modules]
log_syslog
pptp
shaper
{# Common authentication backend definitions #}
{% include 'accel-ppp/config_modules_auth_mode.j2' %}
ippool
{# Common authentication protocols (pap, chap ...) #}
{% if authentication.require is vyos_defined %}
{%     if authentication.require == 'chap' %}
auth_chap_md5
{%     elif authentication.require == 'mschap' %}
auth_mschap_v1
{%     else %}
auth_{{ authentication.require.replace('-', '_') }}
{%     endif %}
{% endif %}

[core]
thread-count={{ thread_count }}

[common]
{% if max_concurrent_sessions is vyos_defined %}
max-starting={{ max_concurrent_sessions }}
{% endif %}

[log]
syslog=accel-pptp,daemon
copy=1
level=5

{# Common DNS name-server definition #}
{% include 'accel-ppp/config_name_server.j2' %}

{% if wins_server is vyos_defined %}
[wins]
{%     for server in wins_server %}
wins{{ loop.index }}={{ server }}
{%     endfor %}
{% endif %}


[pptp]
ifname=pptp%d
{% if outside_address is vyos_defined %}
bind={{ outside_address }}
{% endif %}
verbose=1
ppp-max-mtu={{ mtu }}
mppe={{ authentication.mppe }}
echo-interval=10
echo-failure=3
{% if default_pool is vyos_defined %}
ip-pool={{ default_pool }}
{% endif %}

[client-ip-range]
0.0.0.0/0

{# Common IP pool definitions #}
{% include 'accel-ppp/config_ip_pool.j2' %}

[ppp]
verbose=5
check-ip=1
single-session=replace

{# Common chap-secrets and RADIUS server/option definitions #}
{% include 'accel-ppp/config_chap_secrets_radius.j2' %}

{# Common RADIUS shaper configuration #}
{% include 'accel-ppp/config_shaper_radius.j2' %}

[cli]
tcp=127.0.0.1:2003