Here are a few commands useful for pptpd server admin:
Find out who is Online:
last | grep ppp | grep still
Get a list of user’s connection time:
ac -d -p
If you don’t have ac on your server, run:
apt-get install acct
Disconnect a User
- find out user’s ip (we know it from “Find out who is Online” part)
- use command below to find out process id
ps -ef | grep | grep pppd - end user’s process
killĀ <process id>