LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-04-2010, 04:06 AM   #1
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Rep: Reputation: 16
Filtering on same subnet


Hi everyone,

Let's say I have a few hosts on the same subnet, and they are all connected to a central Linux box running a filtering bridge. If I tightly control the communications between the hosts using the filtering bridge, is this just as good as seperating hosts into different subnets (e.g. DMZ and Internal) ?

Thanks
 
Old 08-05-2010, 08:23 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
It certainly can be and it can actually be better since you would still be able to see traffic even if they are different subnets if you aren't actively filtering it out anyway
 
Old 08-06-2010, 04:31 AM   #3
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
How tightly are we talking here? If you can deny host A from communicating to host B while still allowing host B to communicate to host A, then yes. If not, then no, it is not as good. Besides that, it may not be as efficient. Admin'ing the rules is going be a greater task this way, you may end up having to create individual rules for every single host on your network. It's easier to separate things out by networks or zones, but I guess it depends.

Last edited by LVsFINEST; 08-06-2010 at 04:35 AM.
 
Old 08-06-2010, 04:47 AM   #4
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
The more I think about it, the more I don't like the idea.

Theoretically, if you can deny host A from communicating to host B while still allowing host B to communicate to host A, then it is just as good BUT that's assuming you have every rule in place. And since the rules are going to have to be pretty granular as all hosts are on the same subnet, I'd say there's some big potential that rules would/could be missed. But then again, if it's just a few hosts I guess it wouldn't be that hard.
 
Old 08-07-2010, 08:13 AM   #5
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Original Poster
Rep: Reputation: 16
Hi Everyone,

Yes, I appreciate the administrative burden when dealing with a single subnet.

I'll put my question into a little context:

I have (only) 2 servers. A web server and a DB server. They are both hosted on the same Xen host. I am able to firewall between the 2 hosts (using iptables on the Xen host) very tightly using iptables. However I'm in a bit of debate with someone who says that I should put the DB server onto a separate subnet...but I think that's pointless. I am able to create nice neat iptables chains on the Xen host for incoming and outgoing to each guest (web and db server).

IMHO, I don't think that subnetting provides any "magicness" except makes things easier to manage. However I'm only talking about 2 servers here.

Last edited by jonnytabpni; 08-07-2010 at 08:15 AM.
 
Old 08-07-2010, 11:48 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
You are correct, using different subnets just gives the illiusion of separation in most cases
 
Old 08-08-2010, 06:27 PM   #7
rameshshihora
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
Wink Performance might get impacted !!!

Quote:
Originally Posted by estabroo View Post
You are correct, using different subnets just gives the illiusion of separation in most cases
I just wanted to add my two cents here:

First of all different subnet between two application layer does not require.

I believe Apache will initiates the connections to DB so secure your Web Server then thinking on the same subnet issues

By implementing filtering, you are playing with the performance.

I hope this helps to make your friend to understand certain things rather then blinding believing on him.

Thanks & Regards.
Ramesh Shihora
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IP subnet sang_froid Linux - Networking 3 01-21-2010 01:39 PM
subnet jpostma Linux - Hardware 1 10-16-2005 02:11 PM
another subnet. bruse Linux - Networking 1 07-19-2005 12:35 PM
Sendmail Spam filtering and Virus filtering MrJoshua Linux - General 2 04-03-2003 10:12 AM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration