Wednesday, January 11, 2017

terminate pppoe session on mikrotik from radius server

1- on mikrotik, we need to enable "radius accept-incoming", use the following command
/radius incoming set accept=yes port=3799

2- on radius server need to collect the following informaiton
-session id
-nas ip

below is the sample file to disconnection pppoe session of user:user8,
Acct-Session-Id = "8140000d"
User-Name = "user8"
NAS-IP-Address =

save above line as disconnect.txt

then use it to disconnect the user with the following command
$ cat disconnect.txt | radclient -x disconnect ''secret''

No comments:

Post a Comment