hi
i find that :
to fix below abnormal logs, i have changed file Lookup.pm and AbuseWhois.pm
"use Socket6" to "Socket6->import(qw(pack_sockaddr_in6 unpack_sockaddr_in6
inet_pton getaddrinfo));" but then find ip lookup appear issue.
now i have roll back the change in pm file. and ingore below logs when i
starting nfsen. nfsen still started. and all is working well.ip lookup issue
was gone.
logs:
___
Subroutine Lookup::pack_sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/Lookup.pm line 42.
Subroutine Lookup::unpack_sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/Lookup.pm line 42.
Subroutine Lookup::sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/Lookup.pm line 42.
Subroutine AbuseWhois::pack_sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/AbuseWhois.pm line 43.
Subroutine AbuseWhois::unpack_sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/AbuseWhois.pm line 43.
Subroutine AbuseWhois::sockaddr_in6 redefined at
/usr/local/share/perl5/Exporter.pm line 66.
at /data/nfsen/libexec/AbuseWhois.pm line 43.
Subroutine AbuseWhois::pack_sockaddr_in6 redefined at
/data/nfsen/libexec/AbuseWhois.pm line 45.
Subroutine AbuseWhois::unpack_sockaddr_in6 redefined at
/data/nfsen/libexec/AbuseWhois.pm line 45.
Subroutine AbuseWhois::sockaddr_in6 redefined at
/data/nfsen/libexec/AbuseWhois.pm line 45.
___
-----Original Message-----
From: service<serv...@anlove.me>
To: "service" <serv...@anlove.me>, "Peter Rathlev" <pe...@rathlev.dk>
Cc: nfsen-discuss@lists.sourceforge.net
Date: Fri, 22 Feb 2019 11:45:05 +0800
Subject: Re: [Nfsen-discuss] [HELP] when installed nfsen 1.3.6, all work
well but ip lookup was not.
hi Peter,
i have try to comment below in AbuseWhois.pm .start line 384
sub Reverse_name($) {
my $ip = shift;
my $af = $ip =~ /:/ ? PF_INET6 : PF_INET;
# my $hostname = scalar gethostbyaddr(inet_pton($af, $ip), $af);
# if ( !defined $hostname ) {
# $hostname = '<not found>';
# }
# return $hostname;
return $af; #for test
} # End of Reverse_name
and then, the ip lookup is working . i can get the whois infromation but the
Reverse_name cannot got.
114.114.114.114 -> 2 <<<< this correct is the IP PRT record. now i got the
$af.
IP range : 114.114.0.0 - 114.114.255.255
Network name : XFInfo
Infos : NanJing XinFeng Information Technologies, Inc.
Infos : Room 207, Building 53, XiongMao Group, No.168 LongPanZhong
Road
Infos : Xuanwu District, Nanjing, Jiangsu, China
Infos : China Unicom Shandong Province network
Infos : Addresses from CNNIC
Country : China (CN)
Abuse email : i...@cnnic.cn
E-mail : p...@greatbit.com
Source : APNIC
-----Original Message-----
From: service<serv...@anlove.me>
To: "Peter Rathlev" <pe...@rathlev.dk>, "service" <serv...@anlove.me>
Cc: nfsen-discuss@lists.sourceforge.net
Date: Fri, 22 Feb 2019 08:52:45 +0800
Subject: Re: [Nfsen-discuss] [HELP] when installed nfsen 1.3.6, all work
well but ip lookup was not.
Hi,
thanks for you help.Peter, i have rebuild new server system and nfsen using
a same install IOS. but new server all work well.
but so strange.
due to all packages installed by yum,except nfsen.
i have checked the new server and old server,rpm packages, the old server
totally contained the new's installed. but the old has whois issue.
thank you agian.
-----Original Message-----
From: Peter Rathlev <pe...@rathlev.dk>
To: service <serv...@anlove.me>
Cc: nfsen-discuss@lists.sourceforge.net
Date: Thu, 21 Feb 2019 13:25:14 +0100
Subject: Re: [Nfsen-discuss] [HELP] when installed nfsen 1.3.6, all work
well but ip lookup was not.
On Thu, 2019-02-21 at 17:49 +0800, service wrote:
> yes, it is completely empty yellow-ish window with a green bar at the
> top. i donot konw if my server missing some packets?
>
> $ perl -e 'use Socket6 qw( inet_pton );'
> EXEC this in termimnal no any logs show.
That means it works.
> but with "use Socket6 qw( inet_pton )" in AbuseWhois.pm file, when
> i start/stop nfsen will be show below logs;
>
> Subroutine AbuseWhois::pack_sockaddr_in6 redefined at
> /usr/local/share/perl5/Exporter.pm line 66.
> at /data/nfsen/libexec/AbuseWhois.pm line 45.
> Subroutine AbuseWhois::unpack_sockaddr_in6 redefined at
> /usr/local/share/perl5/Exporter.pm line 66.
> at /data/nfsen/libexec/AbuseWhois.pm line 45.
> Subroutine Lookup::pack_sockaddr_in6 redefined at
> /usr/local/share/perl5/Exporter.pm line 66.
> at /data/nfsen/libexec/Lookup.pm line 43.
> Subroutine Lookup::unpack_sockaddr_in6 redefined at
> /usr/local/share/perl5/Exporter.pm line 66.
> at /data/nfsen/libexec/Lookup.pm line 43.
I seem to remember something like this when we were running 1.3.6p1
with a newer-ish Perl version. As far as I remember it didn't have any
negative impact on the whois function in the webinterface though. They
were just warnings. We don't see this on 1.3.8.
> also i have to install Nfsen 1.3.8 but when i start it also show my
> some issue logs. i googled but no any one sovled same issue with me.
We had a few difficulties with 1.3.8 too that had to be patched. I have
collected our patches in one file here:
https://ampere.rathlev.dk/nfsen-1.3.8-rmnet-20190114.patch
The important part is the DoRebuild related patching of install.pl and
libexec/NfProfile.pm and the patching of NfAlert.pm was to avoid panic
on sending an email. I have heard other versions of the latter and
other fixes, but this one did it for us.
--
Peter
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss