Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Here is the scenario. I have a server appliance that is distributed to my clients (I'll refer to this as the 'appliance'). The appliance talks to my server to get updates. This is a pretty standard setup. For quality control I want to set up a test appliance at my location that will talk to my server through the internet. It is absolutely crucial that this goes through the internet to make sure the test environment is as close to the production environment as possible.

The simple solution is to get two internet connections, one for the appliance and the other for the server. Is there a way to do this with one internet connection?

share|improve this question
add comment

4 Answers

up vote 5 down vote accepted

If the server is publically accessible already, it should be as simple as using the server's public name or IP on the test machine, assuming you haven't setup your internal machines to know "shortcuts" to your own public IPs (which doesn't make a lot of sense).

Otherwise, you've two options aside from the VPN which someone else suggested:

  1. Setup a (http or socks5) proxy on a remote server and set the test machine to use it. This will have the benefit of also testing proxy setups, which are common in organisations.

  2. Or, just set up a static route on both the server and the test machine that go through some remote router.

In both cases, firewall and/or otherwise limit the remote machine/router so it can't be used by joe public.

share|improve this answer
    
+1 for the proxy server. This would totally work, don't know why I didn't think of it. –  Mark Henderson Oct 6 '09 at 23:11
    
And another +1. Good thinking. Too bad I hadn't thought of it when faced with the exact same problem. :( –  John Gardeniers Oct 7 '09 at 0:44
    
#1 sounds great! –  rancidfishbreath Oct 7 '09 at 13:26
add comment

Not really. The closest you can do is to go from this:

Appliance > Server

to:

Appliance > Router > Server

What will happen is if you force your appliance to contact it 'over the internet', the default gateway on the appliance will send the packets to the router. The router will then go "Whoah Nelly! This is actually the IP Address on my WAN port, so I'll just send it back into the LAN segment after matching any port forwarding rules".

If you could get the router to forget about its WAN address (let's say you have two IP's and the router is not aware of the other one), it will get to the first hop of your ISP and immediately come straight back. And then be ignored by your router because it's not aware of it.

That said, pushing the traffic to the router and have the router re-direct it back into your network is probably a pretty good test for everything except for latency and reliability. So it's not really a very good test at all actually because those are the two most important things, apart from port forwarding the right access.

share|improve this answer
add comment

Site to site VPN is what you're looking for. Otherwise, you may look at forwarding ports in your firewall to match the service you're looking to provide to "the other end"..

share|improve this answer
    
It is only one site. I am not trying to take two networks and connect them. The service is located on port 443 (https) and publicly accessible already (with authentication of course). The problem is that traffic hits the router and then comes right back into the network without hitting the internet. I WANT traffic to leave the network, hit the internet, and then come back into the network. If I had two internet connections it would work just fine because it already works fine across the internet. I am trying to do this without having to buy a second connection to the same office. –  rancidfishbreath Oct 6 '09 at 22:03
add comment

Your computer already goes through the internet to talk to a computer on the same network. This is the way an internet works. Packets are routed according to routing tables, if they can be routed directly, they are.

Strictly speaking, if you want to impose a less direct route, you can do so by adding a more specific, less direct route to your hosts. But that's inefficient and adds a point of failure.

share|improve this answer
1  
Not if the other computer is on the same network segment and is behind a bridge or router. –  fpmurphy1 Oct 6 '09 at 22:04
1  
I think the whole point of his test is to make an inefficient network with additional points of failure. Just like the internet. –  Mark Henderson Oct 6 '09 at 22:23
1  
Mark, you might like to read the question again, as I think you may have missed a bit. Besides that, your first sentence is utter nonsense. –  John Gardeniers Oct 7 '09 at 0:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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