Using webmin 1.130
PoPToP version 1.1.4-b4
There are active PPP VPN connections, but none of them
are listed. They are however listen in SYSTEM: Running
Processes.
pptp-server-lib.pl
lists:
# list_connections()
# Returns a list of active PPTP connections by checking
the process list.
# Each element of the list is an array containing the PPP
PID, PPTP PID,
# client IP, interface, local IP and remote IP and start
time
sub list_connections
{
local @rv;
&foreign_require("proc", "proc-lib.pl");
&foreign_require("net", "net-lib.pl");
local @procs = &proc::list_processes();
local @ifaces = &net::active_interfaces();
foreach $p (@procs) {
if ($p->{'args'} =~ /pptpd\s*\[([0-9\.]+)/) {
# Found a PPTP connection process .. get
the child PPP proc
local $rip = ;
local ($ppp) = grep { $_->{'ppid'} == $p->
{'pid'} } @procs;
if ($ppp && $ppp->{'args'} =~ /([0-9\.]+):
([0-9\.]+)/) {
# Find the matching interface
local ($iface) = grep { $_->{'address'}
eq &&
$_->{'ptp'} eq }
@ifaces;
if ($iface) {
push(@rv, [ $ppp->{'pid'}, $p->
{'pid'},
$rip, $iface->
{'fullname'},
, $iface->{'ptp'} ||
,
$ppp->{'_stime'} ] );
}
}
elsif ($ppp) {
# PPP process doesn't include IPs
push(@rv, [ $ppp->{'pid'}, $p->{'pid'},
$rip, undef, undef, undef,
$ppp->{'_stime'} ] );
}
}
}
return @rv;
}
Probably a new way of calling program lines with PID from
proc-lib.pl and net-lib.pl.
That this standard module cannot handle.
And there lists the active connections as none....
Logged In: YES
user_id=129364
The pptp processes on your system are probably different
from what Webmin is expecting.
What does the command
ps --cols 500 -eo user,ruser,group,rgroup,pid,ppid,pgid,pcpu,v
sz,nice,etime,time,stime,tty,args
output on your system when a few connections are active?
Logged In: NO
Very strange,
Cause it used to work under webmin 1.120
Output as listed sent to your E-mail address.
Cannot post it all here as it contains system specific
information. Sorry about that.
Logged In: YES
user_id=129364
Thanks for the file. I have found the bug, and it will be
fixed in the next Webmin release ..