Hi Guys,
I need some help with a micro LAN design.
My home computer lab consists of three PCs, a cable modem and a hub.
PC1
Gateway
PII - 266 MHz
Mandrake - Linux 8.1
PC2
Linux/Apache
PIII - 866 MHz
Red Hat Linux 7.3
PC3
Wife'sPC
PIII - 866 MHz
Windows 2000 Pro
PC1 is equipped with 2 NICs, the first connects to the cable modem, the second to the hub. PC1 is running IP Masquerading with a typical IP tables firewall. It is also running Samba to share the network printer. PC2 and PC3 each have only one NIC connecting directly to the hub.
I now want to setup PC2 as a web server running Apache 2.0 and create a DMZ. My objectives are to run a secure and efficient web server and to protect to the greatest extent possible the data on PC3. I am considering two possible plans.
Plan A. Consists of installing a second NIC in PC2 and having PC2 connect to the cable modem via the first NIC and directly to PC1 with the second NIC. It will run a firewall that will block all but http. PC1 will continue to have two NICs, one connecting to PC2 and the other to the hub. Since PC1 is no longer the gateway, its role will be firewall and Samba server. No change to PC3, it has one NIC and connects to the hub.
Plan B. Install a third NIC in PC1 and connect it directly to PC2. Everything else stays the same.
My questions are:
1. Under plan A, how will the Internet connection be shared? Will both PC1 and PC2 have to run IP Masquerading?
2. Under plan B, how would I configure it so that the http requests made to NIC1 on PC1 get redirected to the Apache server on PC2?
3. Is plan A or plan B the preferred architecture?
4 or is there a plan C that will serve my goals even better?
Thanks in advance for your comments and help!
Rob
I need some help with a micro LAN design.
My home computer lab consists of three PCs, a cable modem and a hub.
PC1
Gateway
PII - 266 MHz
Mandrake - Linux 8.1
PC2
Linux/Apache
PIII - 866 MHz
Red Hat Linux 7.3
PC3
Wife'sPC
PIII - 866 MHz
Windows 2000 Pro
PC1 is equipped with 2 NICs, the first connects to the cable modem, the second to the hub. PC1 is running IP Masquerading with a typical IP tables firewall. It is also running Samba to share the network printer. PC2 and PC3 each have only one NIC connecting directly to the hub.
I now want to setup PC2 as a web server running Apache 2.0 and create a DMZ. My objectives are to run a secure and efficient web server and to protect to the greatest extent possible the data on PC3. I am considering two possible plans.
Plan A. Consists of installing a second NIC in PC2 and having PC2 connect to the cable modem via the first NIC and directly to PC1 with the second NIC. It will run a firewall that will block all but http. PC1 will continue to have two NICs, one connecting to PC2 and the other to the hub. Since PC1 is no longer the gateway, its role will be firewall and Samba server. No change to PC3, it has one NIC and connects to the hub.
Plan B. Install a third NIC in PC1 and connect it directly to PC2. Everything else stays the same.
My questions are:
1. Under plan A, how will the Internet connection be shared? Will both PC1 and PC2 have to run IP Masquerading?
2. Under plan B, how would I configure it so that the http requests made to NIC1 on PC1 get redirected to the Apache server on PC2?
3. Is plan A or plan B the preferred architecture?
4 or is there a plan C that will serve my goals even better?
Thanks in advance for your comments and help!
Rob