Debian IPtables insmod

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-03-2004
Matt Lindsey
 
Posts: n/a
Default Debian IPtables insmod

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.


Reply With Quote
  #2 (permalink)  
Old 03-03-2004
Andy Fraser
 
Posts: n/a
Default Re: Debian IPtables insmod

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.
Reply With Quote
  #3 (permalink)  
Old 03-04-2004
Matt Lindsey
 
Posts: n/a
Default Re: Debian IPtables insmod

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.



Reply With Quote
  #4 (permalink)  
Old 03-04-2004
Matt Lindsey
 
Posts: n/a
Default Re: Debian IPtables insmod

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.

>
>



Reply With Quote
  #5 (permalink)  
Old 03-04-2004
Andy Fraser
 
Posts: n/a
Default Re: Debian IPtables insmod

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.
Reply With Quote
  #6 (permalink)  
Old 03-05-2004
Matt Lindsey
 
Posts: n/a
Default Re: Debian IPtables insmod

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.



Reply With Quote
  #7 (permalink)  
Old 03-05-2004
Matt Lindsey
 
Posts: n/a
Default Re: Debian IPtables insmod

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.

>
>



Reply With Quote
  #8 (permalink)  
Old 03-05-2004
Andy Fraser
 
Posts: n/a
Default Re: Debian IPtables insmod

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.
Reply With Quote
  #9 (permalink)  
Old 03-05-2004
Matt Lindsey
 
Posts: n/a
Default Re: Debian IPtables insmod

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.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0