BSD Jails, a Better Virtual Server?
gManZboy writes "Poul-Henning Kamp, a FreeBSD committer, has an article up about BSD Jails as part of Queue's special report on virtual machines. He describes BSD's interesting 'semi-permeable' approach to VMs, and the importance of security in VM architectures. The article is co-written by Robert Watson, a DARPA principal investigator in the Host Intrusion Protection (HIP) Research Group at McAfee Research."
In what way does this differ from a linux VM, what are the up's and downs?
Just think of the virtual servers that could be created with per-process namespaces.
I'll let myself out.
clifgriffin > blog
- UDP Kernel bug that breaks SNMP (eg: mrtg) inside a jail
- ICMP inside jail needs to be split out better to prevent ugly hacks/kernel patches being required
- PostgreSQL needs sysvipc
I've managed to work around these various issues (running mrtg from the "jail-side" host, making it chroot to my directories to run. Enabling the required sysctls, including my own kernel patch to let ping/traceroute work..It lets me and others share a single host that is very beefy (2x2.8G Xeon, 4g ram, 315g raid-5 ultra-320 disk, etc..) on a fast link. The FreeBSD-5 jail subsystem is a bit more refined than that in FreeBSD-4... I'm pondering upgrading the system, but haven't done so yet.. You can also put a small bit of effort into the system and use rsync to keep various (important) system binaries (eg: sshd, sendmail) in-sync across all the systems so they're bug-free if an advisory comes out.. but that's basic sysadmin/patching stuff, not anything jail specific.. but if their jail is r00ted, i don't need to worry about my own files being compromised, unless they get at the 'host' system.. (which runs no services to speak of)...
Comment removed based on user account deletion
...Host Intrusion Protection (HIP) Research Group...
Research is not supposed to be "hip". It is a very somber and serious process. I think it's shameful how these researchers would rather run the streets with their "rad crew" than commit to serious discovery. For shame.
-Dizzle
"I most likely AM so interested in myself."
Solaris 10 zones are based on the same idea.
Doesn't Linux 2.6.* have similar and better functionality now that SecureSomething patch has been merged into it?
Wow, what an interesting comment! "Linux 2.?.? has a whoosit something whatcha hoo hoo I heard someone maybe talk about? It's better than BSD, tho!"
No SIG for you!
Just to be clear... A single jail is limited to a single IP. So you need one unique IP for each Jail on a machine.
No SIG for you!
You can get around that by using local ip's (127.0.0.X) and then use nat or other preferred method of traffic routing to secure each jail even further and have easy access between them on the local network.
You mean SElinux?? Thats improves linux security dramatically, but it all depends on the policies really..
http://www.nsa.gov/selinux/
Stuff like Selinux though and NX should be considered as the last line of defence though, because they wont prevent people crashing the daemon, and can be circumvented..
OTOH, Jails are limited to 1 IP address, and you may have to waste disc space copying system programs around. You can configure Linux so that you won't have to do that.
Also, don't forget user-level-linux!
BSD jail system is good, but falls far behind compared to Linux nowadays.
distributed security is one thing I would like to see improved.. Currently I doubt any Unix OS has any system to secure over network, like distributed policies or something.. policies for openmosix or something similar.. I wonder how well jail systems would work over openmosix..
The article is co-written by Robert Watson, a DARPA principal investigator in the Host Intrusion Protection (HIP) Research Group at McAfee Research ... and three-term FreeBSD core team member, guy mostly responsible for FreeBSD network stack locking right now, president of the FreeBSD Foundation, and otherwise generally cool guy.
Tarsnap: Online backups for the truly paranoid
Dang it! Now I have to clean up all of this coffee that I spit all over my keyboard! Too funny!
"Send an Instant Karma to me" - Yes
The jail paper.
This may be the case, but for many Linux users these security improvements are not easily available since they are not supported by the major Linux distributions.
As an example, OpenBSD supports and integrates various technologies out of the box, while similar technologies is unavailable for most Linux users. Unless you do a huge amount of work, and have the required knowledge to patch your system, of course.
It's like the old proverb "Better with one bird in the hand, than ten on the roof."
Are those the places that BSDs are sent to before they're given the death penalty?
There's actually a patch out for this that allows you to have multiple IPs for a single jail. There is also a few other scripts on that page which are kinda handy.
I will endure to the end.
Any recommendations for freebsd Jailed "virtual server providers"? I was thinking about going the linux route, but I'd prefer BSD... I'm hoping for something in the $20 range. Thanks!
there is no thing
what else could you want?
Cool Stuff For Your House
Cool Stuff For Your House
Cool Stuff For Your House
Cool Stuff For Your House
Cool Stuff For Your House
the entire framework of NSA's SELinux (MAC/DTE/...) has been incorporated in FreeBSD 5.x, giving you exactly the same possibilities on a much more secure operating system. Considering Linux is a patched-up kernel with security issues every freaking month, I'd prefer this over Linux everyday.
And don't get me started on Linux' PAX or GRSecurity or OpenWall or LIDS or StackGuard or WhateverFancyOfTheWeek... they're only futile attempts to secure an otherwise insecure, unaudited kernel (written by people with almost no experience) that is always run in cooperation with an insecure userland-of-choiche, accessible thru an infamously insecure bash shell.
And since this is about jails, don't get met started on UserModeLinux either, it has been buggy, unsupported and not further developped for the last years.
fuckin' freakin' linux propaganda... learn to read code you linux kiddies.
I suggest looking also at MAC and posix 1e implementations which exist (and have existed for quite soem time) on FreeBSD. jails are only one of the options.
> Just to be clear... A single jail is limited to a single IP.
Unless you add unofficial (for now?) patches, true.
> So you need one unique IP for each Jail on a machine.
Not true. If you know what you are doing, 2 or more jails can share an IP. It is not advisable to do this because it gets very confusing very quickly, and since this is a security measure first of all, confusion for the admoin is really the last thing that you want.
That said, I currently use exactly such a setup (multiple jails sharign a single IP)