Senin, 06 Desember 2004

FreeSBIE 1.1 Released

I was happy to see that FreeSBIE 1.1 was released today. FreeSBIE is a live CD version of FreeBSD. Version 1.1 offers FreeBSD 5.3 RELEASE as the underlying OS. If you've used Knoppix to get familiar with Linux in a live CD environment, you should give FreeSBIE a try.

New for this version are the release announcement, a manual, and the list of packages installed on the live CD.

Minggu, 05 Desember 2004

Review of Nessus Network Auditing Posted

Amazon.com just posted my four star review of Nessus Network Auditing. It's been almost three months since my last book review. I hope to get several more done before the end of the year. It's tough when, as a reviewer, I actually try to read the books I critique. From my review:

"'Nessus Network Auditing' (NNA) is the definitive (and only) guide to the Nessus open source vulnerability assessment tool. I recommend all security professionals read this book. You may start as a Nessus user, but the book will help you become part of the Nessus community.

NNA features twelve contributors, but it doesn't suffer the fate of other books with similar high author counts. NNA manages to present fairly original material in each chapter, without a lot of overlap. I credit the lead authors and editors for keeping the contributors on track. They could have reduced the number of crashing printer stories, however. "

OpenBSD 3.6 on Soekris Net4801

In June I described a way to install OpenBSD 3.5 on a Soekris Net4801 small form factor system. I followed a similar method today with OpenBSD 3.6, installing from floppy to 2.5 inch HDD on one laptop and then moving the HDD to the Soekris.

I had two problems. The first involved not being able to use dd to write the OpenBSD floppy image to the floppy drive. I used this syntax:


orr:/root# dd if=floppyC36.fs of=/dev/fd0


At one point I got errors from dd. Later I saw these error messages from the kernel:


fdc0: ready for input in output

...repeats...

fdc0: ready for input in output

fdc0: too many errors, not logging any more


I was able to use the same syntax on a FreeBSD 4.10 box to create the boot floppy. I booted with the OpenBSD boot floppy and installed OpenBSD 3.6 on the laptop. When I moved the laptop HDD to the Soekris, I got this error via serial console as OpenBSD tried to boot:


booting hd0a:?1;2c: open hd0a:?1;2c: No such file or directory

failed(2). will try /obsd

boot>


I tried a generic 'boot' command next:


boot> boot

booting hd0a:/obsd: open hd0a:/obsd: No such file or directory

failed(2). will try /bsd.old


No joy. Then I remembered OpenBSD usually sees HDDs as device wd, so I tried this:


boot> boot wd0a:/bsd

booting wd0a:/bsd: 4918204+859636 [52+230528+209187]=0x5ee0fc

entry point at 0x100120



[ using 440140 bytes of bsd ELF symbol table ]

Copyright (c) 1982, 1986, 1989, 1991, 1993

The Regents of the University of California. All rights reserved.

Copyright (c) 1995-2004 OpenBSD. All rights reserved. http://www.OpenBSD.org



OpenBSD 3.6 (GENERIC) #59: Fri Sep 17 12:32:57 MDT 2004

deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC

cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC" 586-class)

267 MHz

...edited...

wd0 at pciide0 channel 0 drive 0:

wd0: 16-sector PIO, LBA, 3102MB, 6354432 sectors

wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2

geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6 revision 3

wdstatus 0

...edited...

dkcsum: wd0 matched BIOS disk 80

root on wd0a

rootdev=0x0 rrootdev=0x300 rawdev=0x302

Automatic boot in progress: starting file system checks.

/dev/rwd0a: file system is clean; not checking

/dev/rwd0e: file system is clean; not checking

/dev/rwd0d: file system is clean; not checking

/dev/rwd0f: file system is clean; not checking

...truncated...


Booting from drive wd0a worked. I pondered having to repeat this process the next time I booted the system. However, after a reboot, I did not have to pass any parameters to the boot loader:


boot>

booting hd0a:/bsd: 4918204+859636 [52+230528+209187]=0x5ee0fc

entry point at 0x100120



[ using 440140 bytes of bsd ELF symbol table ]

Copyright (c) 1982, 1986, 1989, 1991, 1993

The Regents of the University of California. All rights reserved.

Copyright (c) 1995-2004 OpenBSD. All rights reserved. http://www.OpenBSD.org



OpenBSD 3.6 (GENERIC) #59: Fri Sep 17 12:32:57 MDT 2004

deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC

...truncated...


This second boot shows OpenBSD apparently booting from hd0a, which failed the first time. I don't know why this worked. I didn't have this issue with 3.5. I intend to turn this Soekris system into a firewall. For full dmesg output, see my new entry at NYCBUG.org.

Jumat, 03 Desember 2004

Dru Lavigne Chimes in on "Why Bother?"

FreeBSD author and advocate Dru Lavigne has responded to PHK's "Why Bother?" article. While citing my previous Blog entry on the subject, she made me aware of a freebsd-chat thread discussing project goals. Two users (Chris Pressey and Paul Robinson) asked questions about goals that are similar to my earlier Blog entry. Chris ended up being attacked once he mentioned the "number of backouts and backout requests" to cvs-src as a metric for "the amount of floundering a project is undergoing." This is a shame, because the original project goal question remains unanswered.

Kamis, 02 Desember 2004

TaoSecurity Blog Under Construction

I'm experimenting with adding a comments feature to the blog. The easiest way to do that was to use a new template. You may see additional changes. Also, links which were previously in this format

http://taosecurity.blogspot.com/2004_11_01_taosecurity_archive.html#110129970708337670

now take this format

http://taosecurity.blogspot.com/2004/11/using-portsnap-to-update-freebsd-ports.html

The old format appears to still work, however.

Rabu, 01 Desember 2004

TaoSecurity.com Exclusive: Keeping FreeBSD Up-To-Date

I am happy to announce the publication at TaoSecurity.com of Keeping FreeBSD Up-To-Date. I wrote this article to answer questions I've received over the past few months on how to apply security fixes to a FreeBSD system. While the official Handbook is excellent, I thought a case-study approach would be enlightening for some readers.

I thought it would be interesting to see a box begin life as FreeBSD 5.2.1 RELEASE, and then progress through a variety of security fixes applied in different ways. The article's sections include:

  • Introduction

  • FreeBSD Versions

  • Learning About Security Issues

  • Starting with the Installation

  • Binary OS and Userland Updates with FreeBSD Update

  • Applying Kernel Patches Manually

  • Applying Userland Patches Manually, Part 1

  • Applying Userland Patches Manually, Part 2

  • CVSup to 5_2 Security Branch

  • Beyond the Security Branch

  • STABLE: The End of the Line

  • The "Next" STABLE

  • Conclusion

  • Acknowledgements

  • References


Sections show commands to run, explanations of what they do, sample output, uname versions, and pros and cons of each upgrade method. Please send feedback to taosecurity at gmail dot com.

I do not discussing optimizing the kernel, although this site does.

Senin, 29 November 2004

FreeBSD Project Goals

After reading PHK's Why Bother? article, I wondered about the goals of the FreeBSD project. I found them in the handbook:

"1.3.2 FreeBSD Project Goals
Contributed by Jordan Hubbard.

The goals of the FreeBSD Project are to provide software that may be used for any purpose and without strings attached. Many of us have a significant investment in the code (and project) and would certainly not mind a little financial compensation now and then, but we are definitely not prepared to insist on it. We believe that our first and foremost 'mission' is to provide code to any and all comers, and for whatever purpose, so that the code gets the widest possible use and provides the widest possible benefit. This is, I believe, one of the most fundamental goals of Free Software and one that we enthusiastically support.

That code in our source tree which falls under the GNU General Public License (GPL) or Library General Public License (LGPL) comes with slightly more strings attached, though at least on the side of enforced access rather than the usual opposite. Due to the additional complexities that can evolve in the commercial use of GPL software we do, however, prefer software submitted under the more relaxed BSD copyright when it is a reasonable option to do so."

These appear to be unchanged since 1998 and probably earlier. If asked to summarize these two paragraphs, it seems the FreeBSD project's goal is to create free software.

Compare those goals to OpenBSD (edited slightly here):

"Provide the best development platform possible. Provide full source access to developers and users, including the ability to look at CVS tree changes directly.

Integrate good code from any source with acceptable copyright (ISC or Berkeley style preferred, GPL acceptable as a last recourse but not in the kernel, NDA never acceptable). We want to make available source code that anyone can use for ANY PURPOSE, with no restrictions. We strive to make our software robust and secure, and encourage companies to use whichever pieces they want to...

Pay attention to security problems and fix them before anyone else does. (Try to be the #1 most secure operating system).

Greater integration of cryptographic software...

Track and implement standards (ANSI, POSIX, parts of X/Open, etc.)

Work towards a very machine independent source tree. Support as many different systems and hardware as feasible.

Be as politics-free as possible; solutions should be decided on the basis of technical merit.

Do not let serious problems sit unsolved.

Provide a good cross compile/development platform.

Import external packages with minimal modifications - making upgrading much easier. Also to submit back to the developers any changes made.

Make a CDROM-based release approximately every six months, in particular to fund the project."

OpenBSD's goals are much easier to read and understand compared to FreeBSD, and more accurately reflect the project's purpose.

The NetBSD goals page says:

"The NetBSD Project provides a freely available and redistributable system that professionals, hobbyists, and researchers can use in whatever manner they wish."

Further:

"Generally speaking, the NetBSD Project provides a well designed, stable, and fast BSD system, avoids encumbering licenses, provides a portable system, which runs on many hardware platforms, interoperates well with other systems, [and] conforms to open systems standards as much as is practical."

NetBSD's goals appear to be the same as FreeBSD's.

Of these various sets of goals, I find OpenBSD's compelling and focused. I encourage readers to visit the OpenBSD goals page because they are explained more fully and link to further explanations.

I think it would be helpful to launch a new thread (similar to a recent one in freebsd-advocacy) publicly discussing the project's goals. I plan to post a link to this blog entry to the freebsd-advocacy mailing list and to BSDNews.com to encourage discussion. No single person can impose a set of goals on the FreeBSD project. Some sort of community consensus, ratified by the core team, would be useful. If you have comments, I recommend responding to my forthcoming posts on freebsd-advocacy and BSDNews.com.