Personally, I use 192.168.2.0/23 as a subnet on my home network, I.e. 192.168.2.0-192.168.3.255.
I then have my router on 192.168.2.1, all my static things on 2.x, and 3.x is my DHCP pool.
VPN clients are on their own subnet.
OK, I'm using /24 because I don't know enough about networking but (after reading a bit) also because I have four VPN connections between sites and each of those needs to ne on lits own subnet. As far as I understand. So if I ran a 192.168.1.0/23 LAN here I couldn't have the the office which uses 192.168.2.0 VPN in.
So VPN on their own subnet but I want to have access to file shares on the office LANs. If I come in on a different subnet I won't be able to access them.
Jings, this seemed simple and the original answer was. Now we're down on of them rabbit holes...
Having VPN connections on their own subnet isn't what determines whether they will have access to file shares.
One should still check if they have added any firewall rules affecting traffic between internal networks.
However sometimes people rely to heavily on local network browsing to discover shares, and if this is depending on multicast or broadcast across the same network that's when they might not automatically show up.
However any shares should be on computers or servers that have consistent names in DNS, and specifying an internal DNS server for VPN clients use, so that one can list the shares by browsing to the named computer.
For Windows-like shares historically a computer browse list spanning multiple networks was centralised using WINS,
but having DNS resolve properly is the more generalised way for connections between computers and services. There is a reason we moved away from distributing a big hosts file by scripting!
Note that trying \\computername\sharename often relies on LLMNR or a fallback to the older NBNS (NetBIOS Name Service) both of which will fail unless the VPN has hacks to act as a kind of repeater (which doesn't scale well to multiple sites and/or remote clients).
Worst case for client-to-site remote access they may be broadcasting these requests locally to them instead of over the VPN potentially accessing a third party's computer.
Whereas \\fully.qualified.domain.name\sharename should first translate the FQDN to an IP then browse the target machine (unicast).
Try to avoid your FQDNs using .local otherwise devices will trying to do mDNS (aka Bonjour formerly Rendezvous) which again is local multicast rather than a routeable protocol.
prlzx on Zen: FTTC (VDSL) at ~40Mbps / 10Mbps
with IP4/6 (no v6? - not true Internet)
Edited by prlzx (Mon 14-Mar-22 13:17:45)