[H-GEN] Ip Masquarade Module Install
Ross Camm
whyza at mindless.com
Sun Nov 2 20:36:30 EST 1997
Hello all
As a linux newbie, I have a number of problems, that I hope some of you
have been thru before.
I installed Redhat 4.2 ( Kernel 2.0.30 ) successfully. Got my linux box on
my local lan. Configured my serial/modem port successfully. I even managed
to configure pppd without a hitch. I was feelin good.
Next: IP Masquarading, so my lan could access the net without haveing to
use 3rd party software tacked onto a winnt machine.
I have read all the documentation on masquareding and modules I can find.
It sounds so simple. make config; make dep; make zImage ;make modules ;make
modules_install.
I did'nt know so much could go wrong !
In /usr/src/linux the only thing there is the include directory.
so I rpm kernel-2.0.30-2.src.rpm
I cannot find where this is installed to as the /usr/src/linux directory
does't change. No amount of looking would locate it.
So I grabbed linux-2.0.30.tar.gz and unpacked it into /usr/src/linux ( I
created a new directory and linked /usr/src/linux to it, so to not
overwrite the existing /usr/src/linux/include files. )
I then did a make config, saying that I wanted the ip_masquarading compiled
directly into the kernel. then make dep; make clean; make zImage; make
modules; make modules_install. All make's ran without error.
I then placed the following lines in rc.local
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_vdolive
/sbin/modprobe ip_masq_app
/sbin/modprobe ip_masq_irc
as per the ip_masquarade mini howto.
I then placed the file /usr/src/linux/arch/i386/boot/compressed/vmlinux in
the /boot and changed the link for vmlinuz to point to it.
Nothing changed. So i backed up the file /boot/vmlinuz-2.0.30 and renamed
vmlinux to vmlinuz-2.0.30, and pointed the link vmlinuz back to
/boot/vmlinuz-2.0.30.
Wouldn't boot.
Since I don't remember redhat asking me if I wanted a floppy boot disk made
afer it installed, I made a boot disk from bare.i, as I only have ide disks.
I then tried the file /usr/src/linux/arch/i386/boot/Zimage, renaming it
/boot/vmlinuz-2.0.30.
My new kernel booted, but heaps of erors when loading modules, all
"undefined" errors.
I then rebooted with the floppy again, and changed back everything I had
done in /boot, ie renaming my backup of the original vmlinuz-2.0.30 to
/boot/vmlinuz-2.0.30. The link boot/vmlinuz is still pointing to
/boot/vmlinuz-2.0.30.
When I reboot now, lilo comes up with Invalid Compressed Format (err=1),
System Halted.
I even put a copy of the original vmlinuz-2.0.30 on another machine as a
backup, but trying this file still gets the above lilo error.!!!
So from floating high to backto earth. I now can't even run my linux box
without booting from a floppy, and I'm still a long way from getting these
modules working for ip masquarading, although I have verified the the
ip_masq*.o files are in the /lib/modules/2.0.30/ipv4 directory.
I someone has the time to set me right on what I have done incorrectly, it
would be appreciated.
Rossco
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list