G'day Adam,

On 15/01/2021 13:28, A. J. Trickett via Hampshire wrote:
Hi,

Happy New Year!

Happy 2021 :-)

For the longest time I had one IP and one name per system, on my
simple home network. Everything was connected to everything else
and I used NAT to hide everything on a private network.

I recently added WireGuard VPNs, so now everything has two IP
addresses, and overtime I've added more dual wired/wireless kit,
which has two IPs to start with.

My current ISP provides an IPv4 and IPv6 address for the house
which technically isn't static, but as far they have never
actually changed. So now most of my boxes have two IPv6 addresses
as well.

If I want to SSH to a box from another box it may now have two
IPv4 addresses and two IPv6 addresses, I don't actually care which
I use, but I'd rather not give everything one name per IP and I'd
prefer to SSH to a name not an IP...

What have other people done, if anything?


I tend to use separate subdomains for my LAN and VPN. That allows me to set up my hosts files so that from any given machine, the short name will be on the most appropriate entry for any given machine. For example, ragnar.teched-creations.com (an AWS EC2 instance at the moment) has the following entry on caprica.lan.teched-creations.com and galactica.lan.teched-creations.com:

  192.168.10.1    ragnar.vpn.teched-creations.com ragnar

while galactica has the following entry on ragnar:

  192.168.10.2    galactica.vpn.teched-creations.com galactica

and the following entries on caprica:

  192.168.1.2     galactica.lan.teched-creations.com      galactica
  ...
  192.168.10.2    galactica.vpn.teched-creations.com

That way, the short names work, and I can directly address whichever interface I like using a name.

Cheers

Brad

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

-- 
Please post to: [email protected]
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to