Govroam

The Roaming solution for the public sector

User Tools

Site Tools


siteadmin:radsecproxy_vlan_assignment

RADSECProxy VLAN Assignment

### Used to add RADIUS attributes to drop all users onto VLAN 7
### The leading "'" is important as the number should be sent as a string
rewrite AddVLANAssignment {
    # Tunnel-Private-Group-Id = 7
    RemoveAttribute 81
    AddAttribute 81:'7

    # Tunnel-Type = VLAN
    RemoveAttribute 64
    AddAttribute 64:13

    # Tunnel-Medium-Type = IEEE-802
    RemoveAttribute 65
    AddAttribute 65:6

    # Filter-Id = 7
    RemoveAttribute 11
    AddAttribute 11:'7
}

server roaming0.govroam.uk {
           type = udp
           secret "secret"
           StatusServer minimal

           RewriteIn AddVLANAssignment
}
server roaming1.govroam.uk {
           type = udp
           secret "secret"
           StatusServer minimal

           RewriteIn AddVLANAssignment
}
server roaming2.govroam.uk {
           type = udp
           secret "secret"
           StatusServer minimal

           RewriteIn AddVLANAssignment
}
server roaming3.govroam.uk {
           type = udp
           secret "secret"
           StatusServer minimal

           RewriteIn AddVLANAssignment
}
siteadmin/radsecproxy_vlan_assignment.txt · Last modified: 2021/03/09 14:49 by admin