Networking Forums

Networking Forums > Computer Networking > Linux Networking > Debian IPtables insmod

Reply
Thread Tools Display Modes

Debian IPtables insmod

 
 
Matt Lindsey
Guest
Posts: n/a

 
      03-03-2004, 01:43 PM
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
 
 
 
 
Andy Fraser
Guest
Posts: n/a

 
      03-03-2004, 03:45 PM
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
 
Matt Lindsey
Guest
Posts: n/a

 
      03-04-2004, 04:13 AM
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" <(E-Mail Removed)> wrote in message
news:bmehh1-(E-Mail Removed)...
> 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
 
Matt Lindsey
Guest
Posts: n/a

 
      03-04-2004, 05:20 AM
It says that the device is not found. I tried to do: modprobe 3c59x. insmod
failed.

All help thanks.
"Matt Lindsey" <(E-Mail Removed)> wrote in message
news:c26hfj$h03$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:bmehh1-(E-Mail Removed)...
> > 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
 
Andy Fraser
Guest
Posts: n/a

 
      03-04-2004, 03:08 PM
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
 
Matt Lindsey
Guest
Posts: n/a

 
      03-05-2004, 03:17 PM
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" <(E-Mail Removed)> wrote in message
newss0kh1-(E-Mail Removed)...
> 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
 
Matt Lindsey
Guest
Posts: n/a

 
      03-05-2004, 03:25 PM
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" <(E-Mail Removed)> wrote in message
news:c2a979$893$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> newss0kh1-(E-Mail Removed)...
> > 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
 
Andy Fraser
Guest
Posts: n/a

 
      03-05-2004, 04:27 PM
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
 
Matt Lindsey
Guest
Posts: n/a

 
      03-05-2004, 06:28 PM
I apologize. Won't top post anymore.
thanks
"Andy Fraser" <(E-Mail Removed)> wrote in message
news:stpmh1-(E-Mail Removed)...
> 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probleme mit debian woody, iptables, masquerading Marc Willmann Linux Networking 0 02-12-2004 06:05 PM
insmod linuxfet with RH 7.1 Snowden22 Linux Networking 0 01-12-2004 01:15 PM
(IPTables) old dog needs some help with a dual-homed debian (woody) system U. Sarma Seetamraju Linux Networking 0 10-16-2003 09:44 PM
elv file on insmod Hagit Linux Networking 0 10-15-2003 08:00 AM
About insmod NIC modules? hushui Linux Networking 1 08-30-2003 01:14 PM



1 2 3 4 5 6 7 8 9 10 11