127 lines
1.3 KiB
Django/Jinja
127 lines
1.3 KiB
Django/Jinja
# -*- text -*-
|
|
##
|
|
## sites-available/default -- default virtual server
|
|
##
|
|
## Managed by Ansible — do not edit manually.
|
|
##
|
|
|
|
server default {
|
|
|
|
listen {
|
|
type = auth
|
|
ipaddr = *
|
|
port = 0
|
|
limit {
|
|
max_connections = 16
|
|
lifetime = 0
|
|
idle_timeout = 30
|
|
}
|
|
}
|
|
|
|
listen {
|
|
ipaddr = *
|
|
port = 0
|
|
type = acct
|
|
limit {
|
|
}
|
|
}
|
|
|
|
listen {
|
|
type = auth
|
|
ipv6addr = ::
|
|
port = 0
|
|
limit {
|
|
max_connections = 16
|
|
lifetime = 0
|
|
idle_timeout = 30
|
|
}
|
|
}
|
|
|
|
listen {
|
|
ipv6addr = ::
|
|
port = 0
|
|
type = acct
|
|
limit {
|
|
}
|
|
}
|
|
|
|
authorize {
|
|
filter_username
|
|
preprocess
|
|
chap
|
|
mschap
|
|
digest
|
|
suffix
|
|
cache {
|
|
ok = return
|
|
}
|
|
files
|
|
sql
|
|
expiration
|
|
logintime
|
|
pap
|
|
}
|
|
|
|
authenticate {
|
|
Auth-Type PAP {
|
|
pap
|
|
}
|
|
Auth-Type CHAP {
|
|
chap
|
|
}
|
|
Auth-Type MS-CHAP {
|
|
mschap
|
|
}
|
|
mschap
|
|
digest
|
|
}
|
|
|
|
preacct {
|
|
preprocess
|
|
acct_unique
|
|
suffix
|
|
files
|
|
}
|
|
|
|
accounting {
|
|
detail
|
|
unix
|
|
-sql
|
|
exec
|
|
attr_filter.accounting_response
|
|
}
|
|
|
|
session {
|
|
sql
|
|
}
|
|
|
|
post-auth {
|
|
if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
|
|
update reply {
|
|
&User-Name !* ANY
|
|
}
|
|
}
|
|
update {
|
|
&reply: += &session-state:
|
|
}
|
|
-sql
|
|
cache
|
|
exec
|
|
|
|
Post-Auth-Type REJECT {
|
|
-sql
|
|
attr_filter.access_reject
|
|
remove_reply_message_if_eap
|
|
}
|
|
|
|
Post-Auth-Type Challenge {
|
|
}
|
|
}
|
|
|
|
pre-proxy {
|
|
}
|
|
|
|
post-proxy {
|
|
}
|
|
|
|
}
|