I started a PPTP VPN Server on my Debian Sarge Server with Webmin 1.470. When I go to "Active Connections" I can not see the Username of connected Users. There is always written "Unknown".....
Is ist possible to change this?
Additionally I would like to log how many traffic every User used. Is that possible?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello folks,
I started a PPTP VPN Server on my Debian Sarge Server with Webmin 1.470. When I go to "Active Connections" I can not see the Username of connected Users. There is always written "Unknown".....
Is ist possible to change this?
Additionally I would like to log how many traffic every User used. Is that possible?
Thanks in advance
I read this:
PPTP VPN Server
Usernames for active connections are now show, if logged in /var/log/messages.
But i dont know how to do that
Did somebody know how to fix this? thanks
I'm having this same problem in autal version in ubuntu. And how could not find a solution, I created my own.
In my case, I changed the file "pptp-server-lib.pl" in webmin folder, under "sub list_connections":
from: if (/pppd\[(\d+)\].*authentication\s+succeeded\s+for\s+(\S+)/i) {
to: if (/pppd\[(\d+)\].*logwtmp\.so\s+ip-up\s+ppp\d+\s+(\S+)/i) {
obs:. The line in the log (/var/log/syslog) is different from expected.
from: Local ($iface) = grep { $_->{'address'} eq $lip && $_->{'ptp'} eq $rip } @ifaces;
to: Local ($iface) = grep { $_->{'address'} eq $lip && $_->{'ptp'} eq $rip2 } @ifaces;
obs:. because "$_->{'ptp'}" don't returns the external IP of the remote client.
Last edit: Sandro Santos 2014-01-21