linux安装了pptpd vpn服务器,可使用last查看:
last | grep still | grep ppp
回车后可以看到:
[root@iZ62unea9cgZ ~]# last | grep still | grep ppp
mycard ppp1 44.55.44.55 Wed Oct 11 18:13 still logged in
查看在线用户别名
如果你觉得繁琐,你可以将它写到环境变量中.
# cat /etc/profile | grep vpn
alias ttlsavpn='last | grep still | grep ppp'
使用ttlsavpn命令