1. Fillout DXCIDR, attach checks in PC61 and logins. Login that fail will
simply disconnect, like locked out callsigns
2. Fix qrz.com URL in stock Internet.pm.
+3. Fix DXHash issues (baddx, badnode, badspotter etc)
30Dec22=======================================================================
1. Add more BadWords (regex) checks.
01Dec22=======================================================================
--- /dev/null
+#
+# load list of bad dx nodes
+#
+# Copyright (c) 2023 - Dirk Koopman G1TLH
+#
+#
+my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->remotecmd;
+# are we permitted?
+return (1, $self->msg('e5')) if $self->priv < 6;
+
+my @out;
+
+my $count = 0;
+eval{ $count += DXCIDR::load(); };
+return (1, "load/badip: $_ $@") if $@;
+
+push @out, "load/badip: added $count entries";
+return (1, @out);
sub add
{
+ my $count = 0;
+
for my $ip (@_) {
# protect against stupid or malicious
next if /^127\./;
next;
}
$ipv4->add_any($ip);
+ ++$count;
++$count4;
} elsif (/:/) {
if ($ipv6->find($ip)) {
next;
}
$ipv6->add_any($ip);
+ ++$count;
++$count6;
LogDbg('DXProt', "DXCIDR: Added IPV6 $ip address");
}
$ipv6->prep_find;
_put($ipv6, 6);
}
+ return $count;
}
sub save