Kind Sir,
I understand what you are saying. When installing workstations in a DC environment every PC needs a unique name, and the same is true for a small LAN sharing a workgroup. However, I plan to have MY LAN using “WORKGROUP” on a typical 192.168.1.n network, and establishing an “off-site” (remote office) that will have a different workgroup name, as well as be on a 192.168.2.n schema. So all requests for SMB shares at the main site will route out the VPN to the 192.168.1.n network. I have done this using “sonicwalls” (Firewall/Router/VPN devices, now owned by Dell) for doctor’s offices that have multiple locations and need access to the “1” network (where the server/database is located.
So (on this much smaller scale), as long as the RBPi2 on the remote site is in a different workgroup and, of course, has a route from it’s remote 192.168.2.n to the server’s 192.168.1.n network (where all the media backups are housed) then both workgroups (named for example workgroup1 and remote1) will show up under video, files, SMB, and then there will be two workgroups to choose from, and the simple routing would look for 192.168.2.0 (i think as I do not have the GUI in front of me) and when it reaches the remote site, it will look for a node named OSMC. Since it’s on a different subnet and over a VPN i don’t see a problem.
If i missed something please let me know. Like SSH, as long as you don’t type osmc@osmc and just use the osmc@ipaddress i don’t foresee a problem. A route will tell a request from the “2” network looking for a node on the “1” network to take the VPN tunnel. Both sites will use the VPN connection to share the storage drives, (and maybe printers) and all class C (“Public”) IP requests (websites that are off the 192.168.n.n schema, etc.) To use their local gateway.
If, say, a RBPi2 on the remote site (say it is 192.168.2.200) tries to leave the LAN (for a destination on the “1” network, the VPN client will redirect it to the tunnel, and the VPN device on the other side SHOULD tell it where to go. Depending on the speed between locations, I am thinking of changing the buffer settings. Bridge both site’s docsis3 modems so that the ASUS RT-AC3200’s can connect without a problem. PS The ASUS RT-AC3200 allows you to switch a LAN port into a dual WAN port for I suppose load balancing and such. Plus there’s CFW by Merlin for it. Sorry to sound like a salesman but I cannot wait to get this up and going.
Thanks, @dandnsmith for the refresher…
Any interest in this router heres a link… https://www.asus.com/us/Networking/RTAC3200/specifications/
and here’s “Merlin’s” homepage that will show screenshots and has links to forums and firmwares:
http://asuswrt.lostrealm.ca/
Again thanks I shall keep you posted on this work in progress, as I am SURE to mess it up somehow–but that’s half the fun
EDIT: one thing I overlooked after updating my LAN router’s FW was that when it came back up, no SMB shares could be found on any nodes, wireless OR wired. Turned out that the radio button on the router for “Force as master browser” had ben undone, and not wanting to wait to see if a discovery protocol would eventually find the shares, I re-enabled that radio button and every node saw the shares in seconds. Just in case that happens to anyone else, I just saved you a headache and 10-20 minutes.