Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Planning to fire up a web server; have a NIC question...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
WarER4X
n00b
n00b


Joined: 26 Jan 2005
Posts: 9
Location: Cincinnati, OH, USA

PostPosted: Wed Jan 26, 2005 4:40 am    Post subject: Planning to fire up a web server; have a NIC question... Reply with quote

Hello all! I'm new to this forum and (more or less) new to Linux in general. I had a version of Red Hat that I played around with a little in college (just a dual boot for something to do), but this will be a new venture for me. I currenly have my XP machine host a simple website, but I have plans to take a (much) older machine and set it up as a dedicated web server using Linux. I have settled on using Gentoo and am looing forward to receiving my order.

My question is concerning NICs, more specifically, whether or not I should use two in my Linux box instead of one. Here is what I'm thinking. My current home network consists of cable modem connected to hardware router/switch (one of those simple home jobies) that uses NAT to forward HTTP requests to my "web server." When I get the Linux machine operational, my plan is to run the cable modem into a pure switch and, from there, go to the router/switch (to server the LAN with i-net access) and also go directly to the Linux web server so that it is outside of my LAN and has its own external IP address (my ISP will allow up to 3 seperate IPs on the same subscrition).

The question of two NICs comes in when considering security. I figure if I have two NICs in my Linux box then I can have one connecting to the WAN (and that will be serving the world via apache, I suppose) and the other connecting to the switch on the backside of the router, thus allowing the Linux box to be on the WAN and the LAN at the same time. Then, I could only allow FTP/SSH and what not to be done over the LAN NIC and allow the web serving to be done over the WAN NIC.

Ok, so that's my plan, but I'm quite inexperienced with this sort of thing considering the audience so I'm wondering if this is a worthwhile approach or if it might be overkill.

Any comments/tips/advice would be most appreciative. I'm looking forward to further interactions on this forum as I get things up and running. I'm fairly certain I will need the help. :wink:

-SR-

PS: For what it's worth, I will be running Linux on an AMD K6-2 266 MHz based system with an undecided amount of RAM (I have to refresh my memory on how much that MB will support, no pun intended). For setup purposes, I have a PCI graphics card installed, but I plan to run this server headless after it gets off the ground.
Back to top
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Wed Jan 26, 2005 5:54 am    Post subject: Reply with quote

I would suggest using 2 so you don't have to deal with port forwarding on that other router to allow the server to accept connections from the internet.
Back to top
View user's profile Send private message
ChevyBowtie
n00b
n00b


Joined: 10 Nov 2002
Posts: 36
Location: Arlington, Texas

PostPosted: Wed Jan 26, 2005 5:56 am    Post subject: Don't bridge Reply with quote

Ideally, you don't want two subnets on the same box. That makes a bridge (which are hard to secure) and a successful hack attempt on your public address will give them access to a machine that also has a private address; formula for further penetration.

You should put it on a seperate network segment only and use a firewall (like IPCop http://ipcop.org/) to allow traffic to go to only the ports needed (80 in this case) and only where you want it to go.
Back to top
View user's profile Send private message
WarER4X
n00b
n00b


Joined: 26 Jan 2005
Posts: 9
Location: Cincinnati, OH, USA

PostPosted: Wed Jan 26, 2005 6:34 pm    Post subject: Re: Don't bridge Reply with quote

ChevyBowtie wrote:
Ideally, you don't want two subnets on the same box. That makes a bridge (which are hard to secure) and a successful hack attempt on your public address will give them access to a machine that also has a private address; formula for further penetration...


That is an interesting point. I'm glad I asked.

Still, my thinking is that the process of accessing the web server through its WAN IP would make it vulnerable to attacks on the ports that have to be open in the firewall (say, IPCop, as you suggest) to allow such connections (like FTP and SSH). Is there any way to avoid the risks involved with opening the FTP and SSH ports to the WAN or am I exaggerating the problem and I should just trust that the authentication security in place for those protocols is sufficient?

Trying to understand the hypathetical problem,

-SR-
Back to top
View user's profile Send private message
ChevyBowtie
n00b
n00b


Joined: 10 Nov 2002
Posts: 36
Location: Arlington, Texas

PostPosted: Thu Jan 27, 2005 12:10 am    Post subject: Re: Don't bridge Reply with quote

WarER4X wrote:

Still, my thinking is that the process of accessing the web server through its WAN IP would make it vulnerable to attacks on the ports that have to be open in the firewall (say, IPCop, as you suggest) to allow such connections (like FTP and SSH).


With the firewall, you can allow access from your 'Green' LAN to your 'Orange' DMZ (where your public server will be) but the firewall will protect the Internet 'Red' from accessing the FTP and SSH ports and only allow those ports access from 'Green' And if your server is rooted, the firewall will protect your 'Green' LAN from the 'Orange' segment since it won't allow traffic to originate from 'Orange' to 'Green' on any ports that you don't specifically allow (of which FTP and SSH wouldn't be allowed).

It's really a nice setup, uses cheap hardware and has a web interface.
Back to top
View user's profile Send private message
WarER4X
n00b
n00b


Joined: 26 Jan 2005
Posts: 9
Location: Cincinnati, OH, USA

PostPosted: Thu Jan 27, 2005 8:05 am    Post subject: Reply with quote

Between what you are saying and what I'm reading on the IPCop.org website, it's all starting to make sense now.

Thanks for your patience. ;)

-SR-

PS: The system (hardware) is now operational. :D Now I just need to get going with the Linux install (I was going to wait for my ordered version of Gentoo, but my impatience may get the better of me and demand that I just download it).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum