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
-username
-nas ip

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


save above line as disconnect.txt

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

No comments:

Post a Comment