If what you are looking for is a virtual LAN network (like hamachi and tunngle used to be) then I suggest you check out ZeroTier. I had great success using that to easily LAN different machines together over the internet, including the ones on different continents.
Very stable, straightforward, doesn't introduce much latency and everything you need is provided in a free tier. Ping, gaming, etc - all works well.
You use the website to administer the network but the clients can join just by using the network code.
Let me know if you run into any troubles with it and I'll try to help you out.