two webservers, one router, multiple IP's

This is a discussion on two webservers, one router, multiple IP's within the Linux Networking forums, part of the Linux Forums category; I have a dsl connection and 5 usable ip addresses. I want to set up one companyweb web server and ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-28-2006
shawn modersohn
 
Posts: n/a
Default two webservers, one router, multiple IP's

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
  #2 (permalink)  
Old 11-28-2006
Dale Dellutri
 
Posts: n/a
Default Re: two webservers, one router, multiple IP's

On Tue, 28 Nov 2006 01:15:02 GMT, shawn modersohn <smoder@sbcglobal.net> 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 <ddelQQQlutr@panQQQix.com> (lose the Q's)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0