Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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) ?
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.