56 lines
918 B
Django/Jinja
56 lines
918 B
Django/Jinja
# -*- text -*-
|
|
##
|
|
## proxy.conf -- Proxy and home_server configuration
|
|
##
|
|
## Managed by Ansible — do not edit manually.
|
|
##
|
|
|
|
# CoA/Disconnect home_server for each NAS
|
|
{% for nas in freeradius_nas_clients %}
|
|
home_server coa-{{ nas.shortname }} {
|
|
type = coa
|
|
ipaddr = {{ nas.nasname }}
|
|
port = 3799
|
|
secret = {{ nas.secret }}
|
|
coa {
|
|
irt = 2
|
|
mrt = 16
|
|
mrc = 5
|
|
mrd = 30
|
|
}
|
|
}
|
|
home_server_pool coa-pool-{{ nas.shortname }} {
|
|
type = fail-over
|
|
home_server = coa-{{ nas.shortname }}
|
|
virtual_server = originate-coa-relay
|
|
}
|
|
{% endfor %}
|
|
|
|
# Originate CoA response handler virtual server
|
|
server originate-coa-relay {
|
|
post-proxy {
|
|
switch &proxy-reply:Packet-Type {
|
|
case CoA-ACK {
|
|
ok
|
|
}
|
|
case CoA-NAK {
|
|
ok
|
|
}
|
|
case Disconnect-ACK {
|
|
ok
|
|
}
|
|
case Disconnect-NAK {
|
|
ok
|
|
}
|
|
case {
|
|
fail
|
|
}
|
|
}
|
|
Post-Proxy-Type Fail-CoA {
|
|
ok
|
|
}
|
|
Post-Proxy-Type Fail-Disconnect {
|
|
ok
|
|
}
|
|
}
|
|
}
|