RaDius

TableOfContents

* NoCatsplashpage * RadiusAndWiana

Login script
{{{

=
==================== prefix="/usr/local" exec_prefix="${prefix}" bindir="/hj"
 * 1) echo "$*" >>/tmp/cw.log

Just remove the # from the first line Then if you want the date just add it in, like so

echo "`date` $*" >>/tmp/cw.log prefix="/usr/local" exec_prefix="${prefix}" bindir="/hj"

And now you have /tmp/cw.log logging just like it is supposed to, with the additional date field

modified the cwradius1 script to log all logins to a file.

prefix="/usr/local" exec_prefix="${prefix}" bindir="/hj" !!!!!!! date=`date` echo $date >>/drv2/logins echo "username:-$1, Password:-$2,  MAC:-$3 " >>/drv2/logins !!!!!!! usage { echo "Usage: radtest user passwd radius-server[:port] nas-port-number secret [ppphint] [nasname]" >&2 exit 100 }
 * 1) echo "$*" >>/tmp/cw.log

the bit that I added in in-between the !!!!!!!!, don't include the !!!!!!!!

This writes all logins to a file called logins into the drv2 folder. From this you can see exactly who has logged in with username,password and MAC address. Once you have found what username is being used change the settings in your realm for that user to username password and Mac Address using the Mac address of the correct user.. That will stop them but if the correct user changes their wifi card then you will have to change the Mac address.

Any one out there know if there is a way of telling what mac address logged on with what username and password. Not talking about wiana. We are talking within the mesh box. I.e you have a unknown mac address that is passing a lot of traffic, but you do not know that mac address! its not one of your registered customers (hacker or some sharing there user name)is there a way of showing the username and password that it logged in with. }}}

Free radius
[:Online management system]

[:Trouble shooting]