On Wed, 2 Mar 2005, Chan Min Wai wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chan Min Wai wrote: > > Dustin Doris wrote: > > > > > >>>>the variable for this script is > >>>>1) the NAS ip (the dhcp object class) > >>>>2) the Client MAC address > >>>>3) the ip address from ippool > >>>>4) the subnet from the ippool > > > > Strange ... I've it solved by this way... > > exec test { > wait = yes > program = "/bin/bash /usr/local/bin/test %{Calling-Station-id} > %{Nas-Ip-Address}" > input_pairs = reply > output_pairs = reply > } > > /usr/local/bin/test > # !/usr/bin/bash > #testing script > printenv > /tmp/exec-program-wait > echo $FRAMED_IP_ADDRESS $FRAMED_IP_NETMASK > /tmp/radtest > echo $1 >> /tmp/radtest > echo $2 >> /tmp/radtest > exit > > cat /tmp/radtest > 192.168.0.206 255.255.255.0 > 00-11-09-5f-a9-8b > 192.168.0.16 > > Interesting :) > > > Is this the right way? >
That will work, good idea. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html