My Libretto is a FireWall
That procedure may install
-
A Smoothwall box
-
A Smoothwall
developpement center
Install Procedure (Smoothwall 0.9.8)
Install
1- Install another distribution, (I used Mandrake 7.2) that will be used
as a SmoothWall developpement center, with the partitions (SmoothWall prefers
have root partition on /dev/hda2)
/dev/hda1 of 61 MB, mounted as /dos
$ROOT=/dev/hda2 of 82 MB minimum, mounted in Mandrake as /smooth
will be / when started in Smoothwall
$SWAP=/dev/hda3 of 74 MB minimum, swap partition
/dev/hda4 extended
/dev/hda5 of 82 MB Mandrake root
/dev/hda6 of 419 MB Mandrake /usr
2- Unpack smoothwall.tgz (extracted from CDrom, or ISO file) in /smooth
3- Addition for laptops: copy
-
the pcmcia drivers to /smooth/lib/modules/2.2.18/pcmcia
-
the pcmcia utils (cardmgr, cardctl, ifuser)
to /smooth/sbin
-
the pcmcia scripts (config, config.opts,
network, network.opts) to /smooth/etc/pcmcia
Theese scripts start the eth0 pcmcia card and configure the eth0
network. Do not use 'Red interface' configuration of setup program, but
do:
-
cat >/smooth/var/smoothvall/ethernet/settings
CONFIG_TYPE=0
ORANGE_DEV=
RED_DEV=
GREEN_DEV=eth0
GREEN_ADDRESS=139.54.64.254
GREEN_NETMASK=255.255.248.0
GREEN_NETADDRESS=139.54.64.0
^C
The address and mask must be the same as in /smooth/etc/pcmcia/network.opts
-
Upgrade with 2.2.19 kernel(be ready for 0.9.9)
Copy vmlinuz in /smooth/boot and
untar boot in /smooth, then update /etc/lilo.conf
(in the developpement center) and run lilo
4- make symlinks to $SWAP=swap dev and $ROOT=root dev
cd /smooth/dev
ln -s $SWAP harddisk1
ln -s $ROOT harddisk2
5- edit /smooth/etc/passwd and remove the root password
Customize
1- edit (or patch) /smooth/etc/rc.d/rc.sysinit
(if you have a french kbd)
-loadkeys /usr/lib/kbd/keymaps/i386/qwerty/uk.kmap.gz
+#loadkeys /usr/lib/kbd/keymaps/i386/qwerty/uk.kmap.gz
+loadkeys /usr/lib/kbd/keymaps/i386/azerty/fr-latin1.kmap.gz
2- edit (or patch) /smooth/etc/rc.d/rc.network
and /smooth/etc/rc.d/rc.halt (For laptops)
3- edit /etc/sysconfig/network.
The IP address written in this script is used for the ipchains
settings, it must be the same as the IP address in the /etc/pcmcia/network.opts
4- edit (or patch) /smooth/etc/rc.d/rc.sysinit
to add economy facilities:
This works on Toshiba laptops and turns off the LCD backlight.
insmod toshiba
/sbin/tosh_lcd -0
/sbin/hdparm -c 1 -m 16 -S 6 /dev/hda
5- edit /etc/lilo.conf to add a Smoothwall entry with /smooth/boot/vmlinuz-2.2.18
and run lilo (from Mandrake)
6- reboot and select Smoothwall in lilo menu
7- At the Smoothwall prompt, login as root (without password) and run
"setup"
-
Set root password
-
Set admin password
-
Set dial password
8- Should be ready. Run your Netscape. and go to http://Smoothwall/cgi-bin/index.cgi.
Remarks (Toshiba Libretto)
As Smoothwall is based on a RedHat 6.2, I tried first to install a RedHat
distribution. I began with 7.0, but I have 2 problems:
-
At install, I have a PCMCIA-CD, it asked me, after the boot floppy: "insert
the drivers floppy". But it could not read it, because the floppy drive
is a PCMCIA drive, and its driver wasn't loaded.
-
After, I have an error at the end of the kernel compilation (checksum.S)
Connection
Red interface: my ISP
with an Olitec 56k external modem on the serial port /dev/ttyS1
-
www.free.fr
-
www.wanadoo.fr
-
www.guideo.fr
Green interface: my home network
with a NE2000 clone or a Xircom on PCMCIA slot
3 clients:
-
Win Me
-
Win98
-
Linux Mandrake 7.2 upgraded
Orange interface: my Palm Pilot
on the standard IrDA (SIR, 115200 Baud) on the serial port /dev/ttyS0
worked with SmoothWall 0.9.6 on Libretto CT50
To be parametered on SmoothWall 0.9.8 for Texas Extensa 555