This is a discussion on Debian IPtables insmod within the Linux Networking forums, part of the Linux Forums category; Hi all, I just installed Debian stable distro. I ran an apt-get update and upgrade. I then configured my ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I just installed Debian stable distro. I ran an apt-get update and upgrade. I then configured my pppoe using roaring penguin. I want to use my linux box as a gateway and router for my internal network. I am trying to use iptables. I just wanted to get the most basic routing configured so my roommates can stay on the internet will I work on the firewall. So, I entered the following command at the terminal as root. iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -j MASQUERADE and I get: can't initialize iptables table `nat': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. Any ideas? I just updated. I am confused. Please help me. Thanks for your time. |
|
|||
|
On Wednesday 03 March 2004 2:43 pm, Matt Lindsey uttered these immortal
words: > can't initialize iptables table `nat': iptables who? (do you need to > insmod?) > Perhaps iptables or your kernel needs to be upgraded. Debian stable installs a 2.2 kernel by default unless you tell it otherwise. Upgrade to a 2.4 kernel with apt-get install kernel-image-2.4.18-1-xxx where "xxx" is the processor class you're using. Use apt-cache search kernel-image for a list of all possible images If you don't want to upgrade the kernel use ipchains instead. -- Andy. |
|
|||
|
upgraded to kernel-image-2.4.18-1-K7 now my network card will not
initialize. System says that eth0 is not installed. Is there any way to rollback drivers? Are there default drivers included in the kernel? Thanks. "Andy Fraser" <andyfraser31@hotmail.com> wrote in message news:bmehh1-in.ln1@news.linuxuser.org.uk... > On Wednesday 03 March 2004 2:43 pm, Matt Lindsey uttered these immortal > words: > > > can't initialize iptables table `nat': iptables who? (do you need to > > insmod?) > > Perhaps iptables or your kernel needs to be upgraded. > > Debian stable installs a 2.2 kernel by default unless you tell it otherwise. > Upgrade to a 2.4 kernel with > > apt-get install kernel-image-2.4.18-1-xxx > > where "xxx" is the processor class you're using. Use > > apt-cache search kernel-image > > for a list of all possible images > > If you don't want to upgrade the kernel use ipchains instead. > > -- > Andy. |
|
|||
|
It says that the device is not found. I tried to do: modprobe 3c59x. insmod
failed. All help thanks. "Matt Lindsey" <matt_lindsey25@hotmail.com> wrote in message news:c26hfj$h03$1@news-int2.gatech.edu... > upgraded to kernel-image-2.4.18-1-K7 now my network card will not > initialize. System says that eth0 is not installed. Is there any way to > rollback drivers? Are there default drivers included in the kernel? > > Thanks. > "Andy Fraser" <andyfraser31@hotmail.com> wrote in message > news:bmehh1-in.ln1@news.linuxuser.org.uk... > > On Wednesday 03 March 2004 2:43 pm, Matt Lindsey uttered these immortal > > words: > > > > > can't initialize iptables table `nat': iptables who? (do you need to > > > insmod?) > > > Perhaps iptables or your kernel needs to be upgraded. > > > > Debian stable installs a 2.2 kernel by default unless you tell it > otherwise. > > Upgrade to a 2.4 kernel with > > > > apt-get install kernel-image-2.4.18-1-xxx > > > > where "xxx" is the processor class you're using. Use > > > > apt-cache search kernel-image > > > > for a list of all possible images > > > > If you don't want to upgrade the kernel use ipchains instead. > > > > -- > > Andy. > > |
|
|||
|
On Thursday 04 March 2004 6:20 am, Matt Lindsey uttered these immortal
words: >> upgraded to kernel-image-2.4.18-1-K7 now my network card will not >> initialize. System says that eth0 is not installed. Is there any way to >> rollback drivers? Are there default drivers included in the kernel? Please don't top post. I need a lot more information. Exactly how did you install the kernel image? Are you using LILO or GRUB (my guess would be LILO for Debian but I want to make sure)? This is a stupid question but you really do have a K7 processor? What does "lspci -v" say about you card? What's the output from "uname -a"? Assuming LILO, did you add "initrd=/initrd.img" to /etc/lilo.conf and re-run /sbin/lilo (if you didn't the kernel shouldn't boot but it's worth checking)? Run dmesg and look for lines that start with "eth0". What does it say there? You can't "rollback" drivers (in the MS sense) because drivers are built for that kernel and that kernel only. The setup should've added this to /etc/lilo.conf so you can boot the old kernel again: image=/vmlinuz.old label=LinuxOLD read-only optional If it didn't, make sure /vmlinuz.old exists and is symlinked to boot/vmlinuz-2.2.20 (or whatever 2.2 kernel you have), add the above stanza to the end of /etc/lilo.conf and run /sbin/lilo. > It says that the device is not found. I tried to do: modprobe 3c59x. > insmod failed. Any other error? -- Andy. |
|
|||
|
I have done some more reading. I used apt-get install kernel-image to
upgrade the kernel. However, I did not install the headers or the pcmcia-modules for the k7. I am currently reading about how to properly upgrade a kernel. Thanks for the help. "Andy Fraser" <andyfraser31@hotmail.com> wrote in message news:ps0kh1-7k.ln1@news.linuxuser.org.uk... > On Thursday 04 March 2004 6:20 am, Matt Lindsey uttered these immortal > words: > > >> upgraded to kernel-image-2.4.18-1-K7 now my network card will not > >> initialize. System says that eth0 is not installed. Is there any way to > >> rollback drivers? Are there default drivers included in the kernel? > > Please don't top post. > > I need a lot more information. Exactly how did you install the kernel image? > Are you using LILO or GRUB (my guess would be LILO for Debian but I want to > make sure)? This is a stupid question but you really do have a K7 > processor? What does "lspci -v" say about you card? What's the output from > "uname -a"? Assuming LILO, did you add "initrd=/initrd.img" > to /etc/lilo.conf and re-run /sbin/lilo (if you didn't the kernel shouldn't > boot but it's worth checking)? Run dmesg and look for lines that start with > "eth0". What does it say there? > > You can't "rollback" drivers (in the MS sense) because drivers are built for > that kernel and that kernel only. The setup should've added this > to /etc/lilo.conf so you can boot the old kernel again: > > image=/vmlinuz.old > label=LinuxOLD > read-only > optional > > If it didn't, make sure /vmlinuz.old exists and is symlinked to > boot/vmlinuz-2.2.20 (or whatever 2.2 kernel you have), add the above stanza > to the end of /etc/lilo.conf and run /sbin/lilo. > > > It says that the device is not found. I tried to do: modprobe 3c59x. > > insmod failed. > > Any other error? > > -- > Andy. |
|
|||
|
Do you know a good tutorial for upgrading the kernel via the apt-get without
compiling the source manually? I am confused on the order of operations. When to download the pcmcia and headers? thanks. "Matt Lindsey" <mattlind@cc.gatech.edu> wrote in message news:c2a979$893$1@news-int.gatech.edu... > I have done some more reading. I used apt-get install kernel-image to > upgrade the kernel. However, I did not install the headers or the > pcmcia-modules for the k7. I am currently reading about how to properly > upgrade a kernel. Thanks for the help. > > > "Andy Fraser" <andyfraser31@hotmail.com> wrote in message > news:ps0kh1-7k.ln1@news.linuxuser.org.uk... > > On Thursday 04 March 2004 6:20 am, Matt Lindsey uttered these immortal > > words: > > > > >> upgraded to kernel-image-2.4.18-1-K7 now my network card will not > > >> initialize. System says that eth0 is not installed. Is there any way to > > >> rollback drivers? Are there default drivers included in the kernel? > > > > Please don't top post. > > > > I need a lot more information. Exactly how did you install the kernel > image? > > Are you using LILO or GRUB (my guess would be LILO for Debian but I want > to > > make sure)? This is a stupid question but you really do have a K7 > > processor? What does "lspci -v" say about you card? What's the output from > > "uname -a"? Assuming LILO, did you add "initrd=/initrd.img" > > to /etc/lilo.conf and re-run /sbin/lilo (if you didn't the kernel > shouldn't > > boot but it's worth checking)? Run dmesg and look for lines that start > with > > "eth0". What does it say there? > > > > You can't "rollback" drivers (in the MS sense) because drivers are built > for > > that kernel and that kernel only. The setup should've added this > > to /etc/lilo.conf so you can boot the old kernel again: > > > > image=/vmlinuz.old > > label=LinuxOLD > > read-only > > optional > > > > If it didn't, make sure /vmlinuz.old exists and is symlinked to > > boot/vmlinuz-2.2.20 (or whatever 2.2 kernel you have), add the above > stanza > > to the end of /etc/lilo.conf and run /sbin/lilo. > > > > > It says that the device is not found. I tried to do: modprobe 3c59x. > > > insmod failed. > > > > Any other error? > > > > -- > > Andy. > > |
|
|||
|
On Friday 05 March 2004 4:25 pm, Matt Lindsey uttered these immortal words:
> Do you know a good tutorial for upgrading the kernel via the apt-get > without compiling the source manually? I am confused on the order of > operations. When to download the pcmcia and headers? The procedure I use for upgrading a 2.2 to 2.4 kernel on my Debian systems is this (assuming I'm upgrading an Athlon or Duron based system): apt-get install kernel-image-2.4.18-1-k7 Then I edit /etc/lilo.conf to read: image=/vmlinuz label=Debian initrd=/initrd.img read-only image=/vmlinuz.old label=Rescue read-only optional and make sure the vmlinuz, vmlinuz.old and initrd.img symlinks in / point to the correct files in boot: vmlinuz -> boot/vmlinuz-2.4.18-1-k7 initrd.img -> /boot/initrd.img-2.4.18-1-k7 vmlinuz.old -> boot/vmlinuz-2.2.20 And that's it. Everything just works after that. You only need the pcmcia modules package if you're using a laptop. You don't need the source or headers packages at all. I don't know what else to say except please don't top post. -- Andy. |
|
|||
|
I apologize. Won't top post anymore.
thanks "Andy Fraser" <andyfraser31@hotmail.com> wrote in message news:stpmh1-an.ln1@news.linuxuser.org.uk... > On Friday 05 March 2004 4:25 pm, Matt Lindsey uttered these immortal words: > > > Do you know a good tutorial for upgrading the kernel via the apt-get > > without compiling the source manually? I am confused on the order of > > operations. When to download the pcmcia and headers? > > The procedure I use for upgrading a 2.2 to 2.4 kernel on my Debian systems > is this (assuming I'm upgrading an Athlon or Duron based system): > > apt-get install kernel-image-2.4.18-1-k7 > > Then I edit /etc/lilo.conf to read: > > image=/vmlinuz > label=Debian > initrd=/initrd.img > read-only > > image=/vmlinuz.old > label=Rescue > read-only > optional > > and make sure the vmlinuz, vmlinuz.old and initrd.img symlinks in / point to > the correct files in boot: > > vmlinuz -> boot/vmlinuz-2.4.18-1-k7 > initrd.img -> /boot/initrd.img-2.4.18-1-k7 > vmlinuz.old -> boot/vmlinuz-2.2.20 > > And that's it. Everything just works after that. You only need the pcmcia > modules package if you're using a laptop. You don't need the source or > headers packages at all. > > I don't know what else to say except please don't top post. > > -- > Andy. |