0

I'm quite uncertain how the diagram would look like for this scenario so I can't really attach one.

Scenario: This is a lab setup so I am free to change almost anything. I have a remote site that reach back to my main office via satellite links. Currently the remote site is able to surf the Internet using the main office's resources. Both the main office and remote site have Wifi capability.

The remote site has the address range 192.168.2.x/24.

The main office has the address range 192.168.1.x/24.

However, I wish to add a Intranet into this setup.

Essentially, I have the following questions.

  1. Is it possible for a PC/smartphone on the remote site to be assigned a private IP (192.168.2.x) and use it for both Internet and Intranet access? If yes, how?

  2. Considering that the remote site and main office has different address range, is it possible for the Intranet to even exist in the first place?

Any suggestions and comments would be greatly appreciated.

  • 1
    It sounds like you have an intranet. What do you think an intranet is? – Ron Maupin May 27 '16 at 2:10
  • My bad. What I meant was that I would like the remote site to be able to access files on the main office. i.e. If I have a local webpage hosted on the main office site, I would like the remote site to be able to access this webpage. Correct me if I am wrong but you felt that I have an Intranet. Are you referring to the network consisting of the devices located within each site's address range? If yes, then yeah I do have that. i.e. each PC on the remote site can reach every other PC on the remote site. – cindy May 27 '16 at 2:12
  • You have two networks, within the same company, which can communicate with each other, the definition of an intranet. I see no reason why you couldn't have anything on one site communicate with the other site. The terms intranet and internet have nothing to do with any specific application, e.g. web server. – Ron Maupin May 27 '16 at 2:27
  • Ah~ thanks for the clarification. So it is entirely possible to setup a private mail exchange? Essentially I wish to add private services to the network. Currently, I am able to FTP files from remote to main site (server resides on main site) but if I were to reverse this, I am unable to perform FTP (i.e. server resides on remote site). – cindy May 27 '16 at 2:31
  • You probably have NAT at the second site. You are going to need to provide a lot more detail: a network diagram, device models, device configurations, etc. Unless you can provide the necessary information, we a left to guess, and opinion-based answers are off-topic here. – Ron Maupin May 27 '16 at 2:34
3

Your question is lacking quite a bit of detail before a specific answer can be crafted. A diagram of your current equipment setup would help.

Given your question is about how basic routing works and you mention both locations have WiFi, i am going to assume that your network consists of 2 wireless routers, both are performing NAT.

I have tried to minimize the technical terms, since i believe it would confuse you, however the price of this decision is ambiguity and lack of detail. Regardless i think this will serve you better.

Here is a simple diagram of what i assume your network looks like:

Network Layout

Question 1

Is it possible for a PC/smartphone on the remote site to be assigned a private IP (192.168.2.x) and use it for both Internet and Intranet access? If yes, how?

Answer 1: Intranet access

yes it is possible.

Once the client device associates with the remote location AP/Router, the DHCP server in that device will issue an IP address to the client. It will also specify a default gateway for the client to use. On the diagram i show the client device has been assigned IP: 192.168.2.2 and gateway: 192.168.2.1.

You need to know the function of the default gateway to understand how the client can access other networks. Here is how it works. The client can talk DIRECTLY to any other host that is on the LAN side of the remote location AP/Router. That is any host with an IP address in the range: 192.168.2.1-192.168.2.254.

Now the client (a host) with IP: 192.168.2.2 wants to access your file server (another host) with IP: 192.168.1.100. Clearly 192.168.1.100 is not part of the "192.168.2.1-192.168.2.254" range. As a result the client cannot talk directly to the file server. Anytime a host cannot talk directly to another it uses the default gateway address (oversimplification, but routing tables is outside the scope of this question), in this case 192.168.2.1.

Now the request to get to 192.168.1.100 arrives at the remote location AP/Router, because its LAN side IP acts as the default gateway for the client. The router looks at who the client wants to talk to, then looks at the IP ranges the AP/router can talk directly to. The router has 2 ranges, one on the WAN side and one on the LAN side. The router can talk directly to the following ranges: "192.168.1.1-192.168.1.254" and "192.168.2.1-192.168.2.254".

There is a match! 192.168.1.100 is inside the "192.168.1.1-192.168.1.254" range, the router now relays the request to the file server.

Answer 1: Internet access

Again yes it is possible.

Same example as above, however instead of requesting data from the file server (192.168.1.100) the client wants access to Google. Google has IP: 216.58.208.4.

The client device compares and determines that 216.58.208.4 is outside any range it can talk to directly, send the request to its default gateway (remote AP/Router).

The remote AP/Router does the same comparison. Before it found that it could talk directly to the file server, however in this case it cannot talk directly to Google. So it does the same as the client, it forwards the request to its default gateway, in this case the default gateway (192.168.1.1) is the LAN side of the "local AP/Router".

Now the "local AP/Router" receives the request and does the same comparison. It also realizes that it cannot talk directly to 216.58.208.4 and send the request on to the default gateway it received from the ISP.

And this way the request from the client keeps bouncing from router to router until it reaches a router that can talk directly to Google.

Info:

Because i assume your setup is quite simple it is important to note that if the client and file server switched places the client would not be able to reach the file server. I.e. client associated with "local AP/Router" and file server connected on the LAN of the "remote AP/Router". This is because "local AP/Router" has no knowledge of the 192.168.2.1-192.168.2.254 range and would as a result relay the request to the ISP ("away" from the file server), who will drop the request.

Question 2

Considering that the remote site and main office has different address range, is it possible for the Intranet to even exist in the first place?

Answer 2

Like others have commented, an intranet is simply a network where the resources (like a file server) can only be accessed from within the network. That is opposed to the Internet where the resources are available to the public.

The amount of sub nets is irrelevant.

  • this is pretty much what i was trying to do. i'll try and find time to add more details but really appreciate your time and effort in replying! – cindy Jun 3 '16 at 14:20
0

It sounds like all you need to do is have a DNS server at each remote site that resolves hostnames to internal addresses, overriding your external DNS records.

Then when using FTP, Email, or other services that have external DNS records, it will route all the traffic to internal addresses and route the traffic over your VPN connections instead of our the WAN at the remote sites.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.