listo funcionmiento por usuario y contraseña

This commit is contained in:
2025-09-24 16:08:16 -06:00
parent 4f409cb4ec
commit c77ec9943b
9 changed files with 140 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
server inner-tunnel {
listen {
type = auth
ipaddr = 127.0.0.1
port = 18120
}
authorize {
# Primero obtenemos credenciales del usuario desde el API
rest.authorize_inner_tunnel
# Luego dejamos que EAP procese (PEAP/MSCHAPv2)
eap
# mschap puede establecer Auth-Type si procede
mschap
}
authenticate {
# Autenticación EAP (PEAP/MSCHAPv2)
eap
Auth-Type MS-CHAP {
mschap
}
}
post-auth {
# Aquí podríamos añadir lógica adicional de auditoría si se desea
# No agregamos atributos de reply aquí; se añadirán en el outer post-auth
}
}