How do I connect two remote servers
Matthew Barrera
I've been working with LANs using Ubuntu for some time now. So I have 2 office locations, each with their own Ubuntu servers. Now we need to link them and we have been provided with a leased line. In summary,
- Each server works fine within their LAN
- Each network has its own Internet connection (not relevant I think)
- Each LAN can ping the remote router. i.e., Office A allows to ping router A and vice versa.
But I cannot go beyond the router in the remote office. For example, from offcie A, I can ping the router of office B but NOT the server of that office.
Am I missing something? Please advise what needs to be done.
Each machine has a static IP.
Thanks!
2 Answers
The router needs to know to which server it has to forward requests to. You now have one server in each location, but that doesn't matter for the router. So you need to configure port forwarding. In the router you can set which port has to be forwarded to which machine or IP address. That machine has to accept that traffic, so you may need to configure the firewall of the server.
3There are many possibilities how you could set this up, none of which are trivial. Among others, you could
- setup a site-to-site VPN
- setup NAT
VPNs have the advantage of providing encrypted communication channels, which is highly recommended these days. They are somewhat difficult to setup for a rookie, but once in place, they work transparently.
NAT is a bit easier to configure, but wouldn't secure the communication (ie. if the protocol is unencrypted then the network data may be read by the telcos).
In any case, you need to know
- about networking
- how to operate the routers given to you by the telco
- the link is going to be used (VoIP, HTTP, SMB, ...?)