Networking Forums

Networking Forums > Computer Networking > Linux Networking > two webservers, one router, multiple IP's

Reply
Thread Tools Display Modes

two webservers, one router, multiple IP's

 
 
shawn modersohn
Guest
Posts: n/a

 
      11-28-2006, 12:15 AM
I have a dsl connection and 5 usable ip addresses. I want to set up one
companyweb web server and one development web server. I want to
register in DNS that companyweb.mydomain should be at x.x.x.65 while
development.mydomain should be at x.x.x.66. The public ip address that
my single linksys router picks up is x.x.x.70.

It is my understanding that if I register in DNS that
companyweb.mydomain is at x.65 and development.mydomain is at x.66,
essentially what will happen is that any of those addresses will be
routed from my isp's router to my little subnet and therefore my router.
I can then utilize my 5 addresses without have 5 separate dsl lines and
routers each with separate wan addresses. Is this correct?

The problem then becomes how does my router know if the incoming
connection is for companyweb or development. I know I could use port
based forwarding, but I would rather have each web server use the
standard port 80.

My network is small, so I don't really need two internal 192.168.x.x
subnets. My router is only capable of picking up one public wan
address. I don't have a firewall instead relying on the virtue of NAT
via the router to naturally block incoming traffic.

I have briefly read that some firewall appliances can direct traffic
based on the requested ip address. If I was to begin researching using a
Linux firewall/proxy to do this task, would I be on the right track?
Any other suggestions for me? Thanks.
 
Reply With Quote
 
 
 
 
Dale Dellutri
Guest
Posts: n/a

 
      11-28-2006, 11:32 AM
On Tue, 28 Nov 2006 01:15:02 GMT, shawn modersohn <(E-Mail Removed)> wrote:
> I have a dsl connection and 5 usable ip addresses. I want to set up one
> companyweb web server and one development web server. I want to
> register in DNS that companyweb.mydomain should be at x.x.x.65 while
> development.mydomain should be at x.x.x.66. The public ip address that
> my single linksys router picks up is x.x.x.70.


> It is my understanding that if I register in DNS that
> companyweb.mydomain is at x.65 and development.mydomain is at x.66,
> essentially what will happen is that any of those addresses will be
> routed from my isp's router to my little subnet and therefore my router.
> I can then utilize my 5 addresses without have 5 separate dsl lines and
> routers each with separate wan addresses. Is this correct?


Yes.

> The problem then becomes how does my router know if the incoming
> connection is for companyweb or development. I know I could use port
> based forwarding, but I would rather have each web server use the
> standard port 80.


> My network is small, so I don't really need two internal 192.168.x.x
> subnets. My router is only capable of picking up one public wan
> address.


Yes.

> I don't have a firewall instead relying on the virtue of NAT
> via the router to naturally block incoming traffic.


OK for non-webservers in your lan, but see below.

> I have briefly read that some firewall appliances can direct traffic
> based on the requested ip address. If I was to begin researching using a
> Linux firewall/proxy to do this task, would I be on the right track?
> Any other suggestions for me? Thanks.


Put a switch between the DSL modem and the router. Then each
webserver machine can plug independently into the switch. Each
webserver will have its own routable IP address (x.x.x.65 or
x.x.x.66) and the router can use a third IP address (x.x.x.67 ?),
so you'll be using three out of 5 of your IP addresses. The rest
of the machines (non-webservers with 192.168.x.x IP addresses)
in your network then attach to the router.

If you want, put a second NIC in each webserver machine, give
each an independent 192.168.x.x address, and attach them to the
router as well. Then all non-internet traffic stays completely
in your lan.

Of course, this means that each of the webservers MUST have
their own firewalls (using iptables).

--
Dale Dellutri <(E-Mail Removed)> (lose the Q's)
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Router for Multiple IP Addresses -- IIS Nick Windows Networking 2 09-28-2007 05:10 PM
Load balance two webservers Fabio Windows Networking 3 03-15-2007 08:03 PM
Multiple Public IPs/1 Router? ScareCrowe Network Routers 5 07-28-2005 07:10 PM
Router for multiple VPN pass through adexis Network Routers 0 06-12-2005 12:26 PM
Router with multiple static IPs Michael Elliott Linux Networking 1 09-19-2004 02:17 AM



1 2 3 4 5 6 7 8 9 10 11