Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: steve288 on June 01, 2013, 01:38:05 PM
-
I have sme 7.6
How can I list who is connected via VPN through our SME server and then terminate individual connections.
Im not looking at blocking them, but rather seeing who is connected then dropping them so they disconnect.
Sometimes we have vendors who connect up to get to the network and then forget to disconnect.
Thanks.
-
I think you can identify the login ids using the 'last' command. Nevertheless you can find connections by searching for pptp and ppp in the messages logfile. To disconnect, identify the process id of the pppd process which is controlling that connection, and then kill it.
-
I use radiusContext to view (accumulated) VPN Usage, but live view and drop I presume Charlie's hint is the way forward.
-
Thanks CB I will look at those ideas. I had forgotten about the last command.
Cant say Im familier with radiuscontext.
I have been looking at netstat and iptstat.
Regards
-
I always look at:
The start-time of the ppp processes , it gives me the login-time of the ppp-process and an ip-address
root 9977 9976 0 21:13 ? 00:00:00 /usr/sbin/pppd local file /etc/ppp/options.pptpd 460800 10.0.1.150:10.0.1.198
then I check
/var/log/radius/accounting.log
this gives me for that login-time a username
and using
pppstats
I get a live view of the total traffic. To split the trafic for different users, you could use iptraf .
-
Thanks Curly thanks for your tips.