Firewall Wizards mailing list archives
Re: Securing a Linux Firewall
From: "Marcus J. Ranum" <mjr () ranum com>
Date: Tue, 23 Jul 2002 20:22:15 -0400
Frank Knobbe wrote:
I went through it at one time to cut everything out except for firewalling and pcap capabilities, but got myself locked out and had to rebuild.
Aha. There's a trick for making it really easy to build minimal
boot environments!!! This is how I used to do it:
1) Get a box with a full install / developer install of your
proposed O/S
- with root disk (wd0)
- with floppy disk (or I guess a CDROM)
2) Put a spare disk in it (wd1)
3) Zeroize wd1
4) Make a boot floppy+kernel that has root on wd1
5) Move init into wd1 (suggestion: write your own init, you'll
wind up doing it anyhow)
Make sure your init correctly puts stdout/stderr to
/dev/console no matter what!!
A good thing for init to do while waiting for child exits
in this environment is to be copying /dev/klog to /dev/console
6) Make a /dev on wd1 and put:
null
console
random
tty
wd1* (delete once you have it working)
wd0*
floppy
Put static linked copies of everything you want in the
filesystem. I wrote a Makefile to do it, of course...
7) Now reboot with the floppy in the drive. It comes up on
the wd1 envioronment
8) Whenever you get locked out just take the floppy out and
kick the system again
lather, rinse, repeat!
To make a boot CD you're 9/10 of the way there. The only trick
is getting the filesystems mounted and whatnot but that's not
hard. Then make a floppy image of the boot and a CD9660 image of
the root and burn it. Repeat.
mjr.
---
Marcus J. Ranum http://www.ranum.com
Computer and Communications Security mjr () ranum com
_______________________________________________
firewall-wizards mailing list
firewall-wizards () honor icsalabs com
http://honor.icsalabs.com/mailman/listinfo/firewall-wizards
Current thread:
- RE: Securing a Linux Firewall, (continued)
- RE: Securing a Linux Firewall Bill Royds (Jul 24)
- Re: Securing a Linux Firewall Kyle R. Hofmann (Jul 24)
- Re: Securing a Linux Firewall Stephen P. Berry (Jul 26)
- Re: Securing a Linux Firewall R. DuFresne (Jul 26)
- Re: Securing a Linux Firewall Gwendolynn ferch Elydyr (Jul 24)
- Re: Securing a Linux Firewall Stephen P. Berry (Jul 25)
- Re: Securing a Linux Firewall Gwendolynn ferch Elydyr (Jul 25)
- RE: Securing a Linux Firewall David Lang (Jul 24)
