Re: [Hampshire] dealing with multiple IPs on a single system

Top Page
Author: Brad Macpherson via Hampshire
Date:  
To: hampshire
CC: Brad Macpherson
Subject: Re: [Hampshire] dealing with multiple IPs on a single system

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x5857a100.hantslug.org.uk.32198': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Fri Jan 15 16:15:33 2021 GMT
gpg: using RSA key 898A78DCF0DC9B14FF90997EB472A863FC94FD2A
gpg: Can't check signature: No public key
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

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------