Usando o radclient
filed in outros on Jan.12, 2009
Simulando um pacote de accouting:
radclient your_server_here acct your_secret_here
Acct-Session-Id = “6000006B”
User-Name = “Fnord”
NAS-IP-Address = 192.168.3.5
NAS-Port-Id = 32
NAS-Port-Type = Async
Acct-Status-Type = Start
Connect-Info = “46000 LAPM/V42BIS”
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 192.168.5.66
Acct-Delay-Time = 0
—–
Simulando autenticação:
echo “User-Name = test” | radclient localhost auth s3cr3t
echo “User-Name=test,Password=mypass,Framed-Protocol=PPP ” | radclient localhost auth s3cr3t
Abraços