[mirror-admin] MM & dynamic DNS behind NAT?

Douglas Wade Needham cinnion at ka8zrt.com
Mon Jun 29 13:13:21 EDT 2009


Trying to remember who I had this conversation with off-list right as
I was trying to get onto the list.  It may not be doable right now,
but one scheme I could see would be to do the following:

1) Save the IP address of the last server reporting for the record in
   the record for a given server.  So for example, if your ISP has
   given you a mapping of say 74.75.76.77 for your public IP address,
   that would be recorded in your server record along with the last
   time reported.

2) Add code which looks for a site-local netblock of something like

	0.0.0.0/32

   or even 

	0.0.0.0/29

   And then substitute the last reporting IP in the data which is used
   to map to the list of mirrors.

BTW... One advantage I saw to this is that instead of having to
constantly delete one site-local netblock and add another one
(churning through record IDs), it would mean that you would have a
single long-term netblock declaration for that host.  Unfortunately, if
you ever changed your network block size (say from a /30 to a /27),
you would still have to delete your netblock and add a new one (since
there is no ability to edit them yet).

Also, when you think about it, this would work even for having
multiple hosts going through a netblock of any size, so long as I
define the netmask in the netblock properly.  For example, my domain
(ka8zrt.com) has two internal mirrors right now (one mirrors from the
other).  As the mirror list is generated from the database, both
downbelow and panparis would map to their respective external IPs,
which would be stored with the "Last Checked In" date, and then in
processing the host records, the IPs and netblock netmask would yield
the appropriate netblocks.

- Doug

Quoting Axel Thimm (Axel.Thimm at ATrpms.net):
> Hi,
> 
> is there a way to use MM for a non-static IP like a typical home
> network?
> 
> I was using the guru/Dax Kelson DNS/httpd trick, but that doesn't work
> with metalinks. Also people claim that MM can do everything the guru
> scripts could, so I hope this is just some report_mirror config.
> -- 
> Axel.Thimm at ATrpms.net



> --

-- 
Douglas Wade Needham - KA8ZRT        UN*X Consultant & UW/BSD kernel programmer
Email:  cinnion @ ka8zrt . com       http://www.ka8zrt.com
Disclaimer: My opinions are my own.  Since I don't want them, why
            should my employer, or anybody else for that matter! 

--


More information about the Mirror-admin mailing list