Toon posts:

[iptables + modules] Can't locate module ip_tables

Pagina: 1
Acties:

Verwijderd

Topicstarter
De volgende melding verschijnt bij het aanroepen van iptables:
code:
1
2
Can't locate module ip_tables
iptables v1.2.3: can't initialize iptables table `filter': iptables who? (do you need to insmod?)

De boel draait met Red Hat 7.2 met kernel 2.4.18, volgens mij heb ik support voor iptables mee gecompiled (niet als module), zoals aangegeven op:

http://people.unix-fu.org/andreasson/iptables-tutorial/iptables-tutorial.html#PREPARATIONS

in /var/log/messages komen ook de volgende meldingen voor die betrekking hebben op modules:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
Apr  1 17:01:55 Daywalker modprobe: modprobe: Can't locate module sound-slot-1
Apr  1 17:01:55 Daywalker modprobe: modprobe: Can't locate module sound-service
Apr  1 17:26:47 Daywalker network: Setting network parameters:  succeeded
Apr  1 17:26:47 Daywalker modprobe: modprobe: Can't locate module net-pf-4
Apr  1 17:26:47 Daywalker modprobe: modprobe: Can't locate module net-pf-5
Apr  1 17:26:48 Daywalker network: Bringing up interface lo:  succeeded
Apr  1 17:26:57 Daywalker cardmgr[604]: socket 1: Xircom CEM56 Ethernet/Modem
Apr  1 17:26:57 Daywalker kernel: Initializing RT netlink socket
Apr  1 17:26:58 Daywalker modprobe: modprobe: Can't locate module net-pf-4
Apr  1 17:26:58 Daywalker modprobe: modprobe: Can't locate module net-pf-5
Apr  1 17:26:59 Daywalker modprobe: modprobe: Can't locate module net-pf-4
Apr  1 17:27:00 Daywalker modprobe: modprobe: Can't locate module net-pf-5
Apr  1 17:27:00 Daywalker cardmgr[604]: executing: './network start eth0'

Heeft iemand een idee wat er allemaal fout gaat met die modules en hoe ik iptables aan de praat kan krijgen?
Alvast bedankt.

Verwijderd

Weet je zeker dat je iptables support (maar dan ook alles, bij bv. NAT en MASQ) heb mee-gecompiled ?

Verwijderd

Topicstarter
ja, alles binnen IP: Netfilter Configuration is meegecompiled. Dat is toch voldoende?

Verwijderd

Op maandag 01 april 2002 20:00 schreef ExS het volgende:
ja, alles binnen IP: Netfilter Configuration is meegecompiled. Dat is toch voldoende?
Nope, je moet ook Full NAT ed aanzetten (of zit dat al in Netfilter :?) :)

YEAH! 1000 _nuttige_ posts ;)

Verwijderd

Topicstarter
ja, CONFIG_IP_NF_NAT zit er ook in. ;(

  • _JGC_
  • Registratie: Juli 2000
  • Laatst online: 16:17
Je hebt ze dus static gecompileerd, dus zijn ze al geladen. Kijk eens met dmesg of je ook ergens netfilter tegenkomt.

Verwijderd

Die net-pf4 en 5 zijn modules die komen uit het net-tools package. Waarschinlijk heb je in je kernel die opties uitgezet terwijl ze nog wel in je nettools voorkomen


quote......
8.6. I'm getting errors about net-pf-?.

When you compiled net-tools you enabled support for a protocol family (that's where the "pf" comes from) that you didn't enable support for in the kernel. (You probably just accepted the default answers.)

A full list is in /usr/include/linux/socket.h but here is a list of the likely culprits:

net-pf-3: Amateur Radio AX.25 (AF_AX25)

net-pf-4: Novell IPX (AF_IPX)

net-pf-5: AppleTalk DDP (AF_APPLETALK)

net-pf-6: Amateur Radio NET/ROM (AF_NETROM)

net-pf-9: Reserved for X.25 project (AF_X25)

Naturally the fix is to recompile net-tools without support for the things you don't need. (Or recompile your kernel with support if you find you actually wanted them.) The workaround to put a line like the following in /etc/modules.conf

alias net-pf-? off


Replace the question mark with the correct number, of course. And rerun depmod.

If you get an error about net-pf-7, you probably need to enable support for the loopback network device (not block device) in your kernel. Or you may need to add the following line to /etc/modules.conf and rerun depmod.

alias net-pf-7 loop

Verwijderd

Topicstarter
Bedankt, de Net-pf meldingen zijn weg!

dmesg geeft geen netfilter melding, helaas. ;(
Nog meer suggesties, want ik zou toch wel graag een firewall draaien....
Pagina: 1