Currently we use Hamachi, but apparently one can do the same with OpenVPN. After reading this claims many time sin various linux forums i also found this article:
http://lifehacker.com/5940565/why-you-should-start-using-a-vpn-and-how-to-choose-the-best-one-for-your-needs
highlights:
Put simply, a Virtual Private Network, or VPN, is a group of computers (or discrete networks) networked together over a public network—namely, the internet. Businesses use VPNs to connect remote datacenters, and individuals can use VPNs to get access to network resources when they're not physically on the same LAN (local area network), or as a method for securing and encrypting their communications when they're using an untrusted public network.
further down:
We've shown you how to roll your own VPN using Hamachi, and even how to set up Privoxy to secure your web browsing once you have your personal VPN set up. Hamachi isn't the only option: you can also download and configure OpenVPN (a free SSL VPN) on your own home server...
and this is just one of them referencing OpenVPN as replacement for Hamachi.
Now for the goal: it was highlighted above. 2 lans on same network - i.e. that i see the computer on other LAN as if they are on my LAN network.
This is the situation:
https://drive.google.com/file/d/0B2uTW36AgbQzVUQ1VVRnT1dOSFk/view?usp=sharing
Server has OpenVPN server installed. Others would use the client.
Now at the current setup the person from outside (LAN B) can connect to OpenVPN server, but how to give them same IP subdomain as other PC's in (LAN A) have? Those isnide LAN A can not connect to OpenVPN server.
As i understand in Hamachi both PC would use clients to connect to Hamachi VPN server which give them the IP and then they are connected to eachother.
So if PC1 in LAN A is assigned 192.168.1.2 for example that the PC5 in Lan B would be seen as if they use for example 192.168.1.15. in this case it can be other IP's as long as we can see eachother as if we are on same LAN.
or to make another example: let's say if i started an Enemy Territory game. as is now i forward the port when we are playing and they connect to server using my external IP.
in this case they would type my LAN IP and could then connect to it because it would be as if we are on the same LAN. As if we are in the same room. Can this be done using OpenVPN? because it works like that if i use Hamachi... Granted in that case we get a different IP from the one on LAN (just a minor inconvenience), but we can connect the PCs using it as if we were in LAN.