<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Community:<BR>
 <BR>
I have coded a patch to support class matching based on the value returned by an execute() command. The execute command will allow a retuned value of 0 to 65535 in ascii format (5 chars). If anything different is returned the return value will be 0. Below you have an example of configuration and a shell script for testing. This has been tested in linux<BR>
 <BR>
Any comments are welcome.<BR>
 <BR>
 <BR>
class "Allowed Stations" {<BR>match if (execute("/root/verifymac.sh",binary-to-ascii (16, 8, ":", substring(hardware, 1, 6))) = 2);<BR>}<BR> <BR>class "Denied Stations" {<BR>match if (execute("/root/verifymac.sh",binary-to-ascii (16, 8, ":", substring(hardware, 1, 6))) = 1);<BR>}<BR> <BR>range 172.18.1.2 172.18.1.254;<BR>allow members of "Allowed Stations";<BR><BR>range 172.18.2.2 172.18.2.254;<BR>allow members of "Denied Stations";<BR><BR>Here is the shell script i have used for testing<BR> <BR>------------<BR>verifymac.sh <BR>------------<BR> <BR>VALIDMAC="01:02:03:04:05:06"<BR>if [ "$1" = "$VALIDMAC" ]<BR>then<BR>echo 2;<BR>else<BR>echo 1;<BR>fi<BR>
 <BR>
<RTE_TEXT></RTE_TEXT><BR><br /><hr />Suspicious message? There’s an alert for that.  <a href='http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008' target='_new'>Get your Hotmail® account now.</a></body>
</html>