asignacion de vlan lista
This commit is contained in:
@@ -40,7 +40,28 @@ server default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post-auth {
|
post-auth {
|
||||||
# Añadir atributos dinámicos (VLAN/BW) también en EAP (outer reply)
|
# Asignación de VLAN dinámica por usuario
|
||||||
rest
|
if (&User-Name == "user1") {
|
||||||
|
update reply {
|
||||||
|
Tunnel-Type := VLAN
|
||||||
|
Tunnel-Medium-Type := IEEE-802
|
||||||
|
Tunnel-Private-Group-Id := "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elsif (&User-Name == "user2") {
|
||||||
|
update reply {
|
||||||
|
Tunnel-Type := VLAN
|
||||||
|
Tunnel-Medium-Type := IEEE-802
|
||||||
|
Tunnel-Private-Group-Id := "5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
# Fallback opcional: comentar si no quieres valor por defecto
|
||||||
|
update reply {
|
||||||
|
Tunnel-Type := VLAN
|
||||||
|
Tunnel-Medium-Type := IEEE-802
|
||||||
|
Tunnel-Private-Group-Id := "2"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
package.json
Normal file
13
package.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "radiusnucleo-stack",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"dev": "docker compose up -d --build",
|
||||||
|
"restart": "docker compose up -d --build --force-recreate",
|
||||||
|
"logs": "docker compose logs -f",
|
||||||
|
"down": "docker compose down",
|
||||||
|
"ps": "docker compose ps"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user