vmps documentation?
bmccorkle
network.administrator at gahanna.gov
Mon Mar 31 17:25:41 CEST 2008
Ok, that info helped me out but not all the way. I created another virtual
server 'vmps' in the sites available folder and linked the file to
sites-enabled. I got this code off of another post here that uses a sql
db...
vmps {
# the mac address can be in several places...
if ("%{VMPS-Ethernet-Frame}" =~
/0x............(..)(..)(..)(..)(..)(..).*/) {
update request {
MyMac = "%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"
}
}
else {
update request {
MyMac = "%{%{VMPS-Cookie}:-%{VMPS-MAC}}"
}
}
# required VMPS reply attributes
update reply {
VMPS-Packet-Type = VMPS-Join-Response
VMPS-Cookie = "%{MyMac}"
}
# lookup the zone in sql
update reply {
VMPS-VLAN-Name = "%{sql:select ... where mac='%{MyMac}'}"
}
}
I created a text file with Mac Addresses and Vlan Groups from what
rlm_passwd says but I'm still having trouble understanding how to make the
comparison.
If I do this...
update reply {
VMPS-VLAN-Name = "VLAN5"
}
then the request gets properly assigned to VLAN 5. But how do I modify this
line to check the text file for the mac to vlan mapping? Nothing I tried
seemed to work. I'm trying to do something like this...
If "Mac Address" = "Mac address in Text File" then
VMPS-VLAN-NAME = "VLAN Group in Text File"
Else
VMPS-VLAN-NAME = "Guest Access Group"
--
View this message in context: http://www.nabble.com/vmps-documentation--tp16315996p16396500.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.
More information about the Freeradius-Users
mailing list