I have installed pptpd in my linode vps, and setup a few client accounts. The problem is how could I view current connected pptpd clients in commandline?
I have installed pptpd in my linode vps, and setup a few client accounts. The problem is how could I view current connected pptpd clients in commandline?
You can use the command
last |grep ppp
The above command uses
last
to display all logins of users. As all PPTP VPN are connected through ppp0 / ppp1 / pp2 / ... , you can get VPN user access history.Sample result:
ifconfig
should return the ppp[X] interface when you have a connected user. Use that withwho
andlast
(grep with 'ppp' to find out users who are connected via VPN) , and it should provide plenty of information to cross reference.