http://www.securityfocus.com/columnists/334/3
quote:
What about buying a switch that includes a packet filter? This solution should provide a trustworthy network with the added bonus of isolating and filtering each host.
It's not a technology problem, it's a management problem. There are plenty of tools that can be used to control inter-host trust, but they are generally not used because they're "too hard" or "inconvenient" or whatever. For example, the big Cisco switches all have the ability to process ACLs at high speed. Isolating and filtering each host is very possible and would be very effective using existing technology.
Let's imagine a simple scenario: suppose I have a subnet consisting of 150 hosts that all access a local departmental server with file serviceand print service, etc. Further, let's imagine that the hosts on that subnet need Internet browsing access and access to an enterprise Email server (IMAP + SMTP) that sits someplace else on my corporate LAN. And, perhaps, some of my users need access to the mainframe for SQL, while others don't. So, I could put ACLs in the switch to, "allow all/all to the local subnet server," "allow IMAP, SMTP to the off-network mail server," "allow all, port 80, to the web caching proxy off-network," "allow {list} SQL to the mainframe," "default: deny all." That's not very hard, is it? Does Bob's workstation need to talk directly to Jane's? No? Then don't allow it.
And a network like that is going to be extremely resistant to worms or active penetration. Of course nobody does that kind of thing: they just plug it all together, make it work, and then ignore it and hope it doesn't get hacked.
scenario:
utilise selinux to (assuming individual hosts' selinux policies can be trusted!!!!) set up the above, as a lo-cost alternative [not have to have expensive Cisco routers which achieve the ACLs]
wish-list:
have fwbuilder create selinux policies creating the network-based access rules!!!!!
pie-in-sky-wish-list:
have fwbuilder create selinux network-based firewall policies in XML format *grin*
background [for people who might not know what i'm talking about]:
it is possible to do some of the same job as a firewall, in selinux policy rules: start by looking at /etc/selinux/src/net_contexts and search for strings occuring in there in the rest of your selinux policy source.
selinux policy rules can do a certain degree of network access restriction based on the program _and_ the user that's doing the network access.
l.
Signature · 8 lines
-- <a href="http://lkcl.net">http://lkcl.net</a> -- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 11 lines · Luke Kenneth Casson Leighton
background [for people who might not know what i'm talking about]:
it is possible to do some of the same job as a firewall, in selinux policy rules: start by looking at
/etc/selinux/src/net_contextsand search for strings occuring in there in the rest of your selinux policy source.selinux policy rules can do a certain degree of network access restriction based on the program _and_ the user that's doing the network access.
Note that these controls are not as expressive or powerful as iptables rules, and are not able to leverage things like connection tracking (aka stateful inspection), protocol helpers etc. One of the longer term ideas is to replace some of the SELinux network control hooks with SELinux matches & targets for iptables.
I've done some preliminary work on this here:
http://people.redhat.com/jmorris/selinux/selipt/
One problem is protocol layering violation, in that we need to make access control decisions at multiple layers simultaneously (IP and Socket layers), and finding the right way to do this in iptables/netfilter is not simple.
It also involves moving some configuration outside of centralized policy and having access control decisions made outside of the AVC.
So, there are several conceptual impurities, although I once heard someone say "perfect is the enemy of good".
- James
Signature · 9 lines
James Morris <[email protected]> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.