[Dxspider-support] DXSpider mojo branch build 482

Kin ea3cv at cronux.net
Sun Jan 22 16:57:00 GMT 2023


Kjell,

 

No, it's a fixed favor being assigned via set/var.

 

What you can do every time you start the cluster, is ask what your public IP is and automatically change the variable.

 

You can use something like this which is tested and works:

 

#!/usr/bin/perl

 

# 20230120 Kin

 

use 5.10.1;

use Path::Tiny qw(path);

use strict;

use warnings;

 

# Determinar ip publica

 

my $ip = `curl -s ifconfig.me`;

 

my $filename = '/root/volumenes/dxspider/nodo-3/scripts/startupold';

my $file = path($filename);

my $data = $file->slurp_utf8;

$data =~ s/set\/var \$main::localhost_alias_ipv4 = '(.*)'/set\/var \$main::localhost_alias_ipv4 = '$ip'/g;

print $data;

$file->spew_utf8( $data );

 

# End

 

Or improve it...

 

Kin

 

 

 

De: Dxspider-support <dxspider-support-bounces at tobit.co.uk> En nombre de Kjell Jarl via Dxspider-support
Enviado el: domingo, 22 de enero de 2023 17:30
Para: The DXSpider Support list <dxspider-support at tobit.co.uk>
CC: Kjell Jarl <kjell.jarl at bahnhof.se>
Asunto: Re: [Dxspider-support] DXSpider mojo branch build 482

 

I answer myself;

sh/log sm7gvf-1 shows the external IP number in a PC92A message.

The trouble is to be aware if it changes, when a new DHCP address is given.

73

Kjell

 

On 2023-01-22 16:52, Kjell Jarl via Dxspider-support wrote:

Thanks Dirk,

If I understand correctly, my external address will be used as the spotter address when on local ip numbers.

Both interfaces are DHCP but changes rareley, is there a way to tell if it has been broken or I got it right in the first place?

73

Kjell

 

On 2023-01-22 15:15, Dirk Koopman via Dxspider-support wrote:

On 22/01/2023 11:37, Kjell Jarl via Dxspider-support wrote:

Hi

How are spots issued from my local network (192...) on the local interface treated? Will it  be dropped now or in the future?


Ah, you'll be one of my customers for the snippets below

TLDR:

Stick these lines in your startup script file
set/var $main::localhost_alias_ipv4 '<external IPV4 address of node>'
set/var $main::localhost_alias_ipv6 '<external IPV6 address of node>'  # if any
set/var @main::localhost_names ('127.0.0.1', '::1', '192.168.1.30')   # or whatever your internal net address(es) are

Kin EA3CV, for instance, has many more internal network addresses, over and above the localhost addresses. There is no theoretical limit. 
  
73 de Dirk G1TLH



73

Kjell, SM7GVF

On 2023-01-20 15:41, Dirk Koopman via Dxspider-support wrote:



20Jan23=======================================================================
1. Add the variable @main::localhost_names to allow other IP addresses to
   be treated in the same way as localhost in item 1 on 19Jan23 below. NOTE
   you must include ALL the normal localhost names + any other interface
   names that you might want to include:

      set/var @main::localhost_names qw(127.0.0.1 ::1 192.168.1.30)

   using the qw() construction is easier than:

      set/var @main::localhost_names ('127.0.0.1', '::1', '192.168.1.30')

   but either will work. You can define as many IP addresses as you like and
   they can be IPV4 or 6. 
   
   You do NOT need to fiddle with this unless you specifically have more
   than just the normal definitions of localhost. So for 'normal' nodes with
   one external interface, you DO NOT NEED TO DO ANY OF THIS. 
2. Added CTY-3304 prefix data
19Jan23=======================================================================
1. Introduce aliasing for localhost in DX Spots and outgoing PC92 A records
   on login. There are two variables which can be set with the alias to use:
      $main::localhost_alias_ipv4
      $main::localhost_alias_ipv6 
   These can be set in the /spider/scripts/startup, but this is only 
   necessary if the node has more than one interface, or virtual hosts. If 
   there is ONLY ONE ipv4 and/or ipv6 IP address on the node machine then 
   these variables will be automatically populated on first use. But the SAFE
   thing to do is to set them in the startup file.  

   THIS FEATURE IS EXPERIMENTAL... 






_______________________________________________
Dxspider-support mailing list
Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk> 
https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support





_______________________________________________
Dxspider-support mailing list
Dxspider-support at tobit.co.uk <mailto:Dxspider-support at tobit.co.uk> 
https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230122/e82fd44d/attachment.htm>


More information about the Dxspider-support mailing list