Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
Here's a question I can't find an answer to anywhere. Actually, through nearly two days of trial and error, I'm just about ready to give up.
I have two Linux boxes that I want to run on totally separate networks. I have a specific need for doing this. I want to run two separate Linux boxes as individual web and e-mail servers on the same external static IP address. Box A would be MySite.Com. Box B would be MySite.Net. It's irrelevent to me if either network can see one another. In fact, for security reasons, it would be a bonus if they couldn't. The main reason for this is, of course, port forwarding. I know I can run both domains from one box (I'm doing that now), but I want to expand the other domain out. It's also more practical for me to run it this way.
I have a DSL connection with one static IP address. Here's the set up:
The (Westell 2200 configured as a bridge) DSL Modem goes to a (Netgear FS605 v2) switch. From the switch I want to run two indentical (Netgear WGR614 v6) routers. Router A to run Box A on Network A (.Com). Router B to run Box B on Network B (.Net). I've tried to set up Router A as internal IP 192.168.1.1 and Router B as internal IP 192.168.2.1. with DHCP disabled on both. It all works, but only one network can access the internet at one time. That is, when I configure Network A and connect it to the web, it bumps Network B into oblivion. I've tried to use separate gateways, but I get the same result as using the same gateway for both.
I need a second external static IP address, don't I? That would be the easy answer, of course - but I can't afford to do that right now. I'm almost positive that this should/could work with one static IP address.
Does anyone have any suggestions how to accomplish this without setting up a separate modem on a separate static IP address? Any help with this problem would be greatly appreciated.
Interesting use of Matt Wright's script, by the way... :)
I've always been partial to it. I've used it on my site for years. I currently use it for my blog, with minor modifications, it's perfect for it. It's a good, solid, barebones Perl script that's infinitely useful. Gotta love it... :)
Cheers,
~Mike

First of all, even if you only wanted to run one server you might have a problem since some ISPs block those ports.
Secondly, I don't think that you are going to be able to split one external IP for 2 different servers.

Actually, I have a business account with my ISP. I have a static IP address that I currently run the two domains from.
http://www.damnage.com and http://www.damnage.net both run from a restored/refurbished office computer sitting next to me.
I currently have ports 80 (HTTPd), 25 (SMTP), 143 (IMAP), 110 (POP3), 21 (FTP), among others (the others are for different unrelated purposes). Port forwarding is not a problem for me. Actually, I could host other domains from this machine if I chose to.
In a nutshell, what I'd like to do here, is I would like to run a second web server from the other machine with all the features (ports) that the first machine enjoys.
Cheers,
~Mike

I don't think you are going to able to do it either - even with two IP addresses I don't think it would work either unless you have two routers. A single router wouldn't know which computer to route each request to.
You can run two servers from the same IP but the server software will be doing the work as the router will route all requests to the same computer. You are expecting a router to do the same work as server software.
Stuart

Set dns entry to ip address :80 and :81 or whatever port open. nat the address/port to server.
Might look up host headers too but that would be a different setup.
I read it wrong and answer it wrong too. So get off my case you goober.

Okay...
Stuart, I have two routers, as I stated in my original post. Actually, it would work with two static IP's. I would be running a separate modem on a separate phone line. It would be a network completely independent from the one I'm running now.
It's cool guys. I got it together.
I've decided to purchase a block of static IP addresses from my ISP. I thought they were more expensive than they are. I can buy up a block of five static IP's for twenty dollars a month, which is cool. I want to handle my own DNS anyway, and having a total of six static IP's will allow me to do that.
I just have to be patient and wait until I have a little more money coming in - which will be soon for me.
With six static IP's this whole conversation becomes irrelevant and moot.
I guess if you look at my first post, I actually knew the answer all along, didn't I?
Thanks for the advice!
Cheers,
~Mike

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |