View previous topic :: View next topic |
Author |
Message |
jaf n00b
Joined: 29 Sep 2005 Posts: 6
|
Posted: Thu Sep 29, 2005 9:27 am Post subject: [iptables] Module ip_tables not found (résolu) |
|
|
Je ne comprend pas
J'essaye depuis 2 jours de mettre un firewall + nat par iptable sur une machine
Mais rien a faire iptable ne fonctionne pas
J'ai recompiler le noyaux a =>
Networking options --->
[*] TCP/IP networking
[*] IP: advanced router
[*] Network packet filtering (replaces ipchains)
If you use 2.4.x, you have to enable the following for DHCP:
[*] Socket Filtering
IP: Netfilter Configuration --->
[*] Connection tracking (required for masq/NAT)
[x] FTP protocol support
[x] IRC protocol support
[*] IP tables support (required for filtering/masq/NAT)
[*] IP range match support
[x] MAC address match support
[*] Multiple port match support
[*] Packet filtering
[*] REJECT target support
[x] REDIRECT target support
[*] Full NAT
[*] MASQUERADE target support
[s] Packet mangling
[s] MARK target support
[x] LOG target support
QoS and/or fair queueing --->
[s] QoS and/or fair queueing
[s] HTB packet scheduler
[s] Ingress Qdisc
J'ai fais ensuite
make menuconfig
make && make install
Et puis =>
emerge iptables
Et finalement =>
echo "iptables" >> /etc/modules.autoload.d/kernel-2.6 && modules-update
Apres le premier reboot
Si je fais
iptables -F
Je recoie ce message
FATAL: Module ip_tables not found.
iptables v1.2.11: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Et si je fais
modprobe ip_tables
Je recoie
FATAL: Module ip_tables not found.
Quelqu'un pourrais m'aider parce que la j'ai plus d'idée
Jaf
Last edited by jaf on Sat Oct 01, 2005 2:51 pm; edited 1 time in total |
|
Back to top |
|
|
anigel Bodhisattva
Joined: 14 Apr 2003 Posts: 1894 Location: Un petit bled pas loin de Limoges ;-)
|
Posted: Thu Sep 29, 2005 9:43 am Post subject: |
|
|
Bonjour,
Avant toute chose, merci d'éditer ta demande selon les conventions locales. Merci ! _________________ Il y a 10 sortes d'individus en ce bas-monde : ceux qui causent binaire, et les autres. |
|
Back to top |
|
|
anigel Bodhisattva
Joined: 14 Apr 2003 Posts: 1894 Location: Un petit bled pas loin de Limoges ;-)
|
Posted: Thu Sep 29, 2005 9:44 am Post subject: |
|
|
Et pour répondre à ta question, après la compilation de ton noyau, as-tu fait make modules_install ? _________________ Il y a 10 sortes d'individus en ce bas-monde : ceux qui causent binaire, et les autres. |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Thu Sep 29, 2005 10:12 am Post subject: |
|
|
tu peux nous donner le resultat de
Code: | zgrep -A70 CONFIG_NETFILTER /proc/config.gz |grep -v '#' |
ou encore
Code: | grep -A70 CONFIG_NETFILTER /usr/src/linux/.config |grep -v '#' |
Merci.
@anigel : +1 _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
jaf n00b
Joined: 29 Sep 2005 Posts: 6
|
Posted: Fri Sep 30, 2005 7:33 am Post subject: |
|
|
Tout dabord un grand merci pour ces réponses et sorry pour les conventions.
Je suis de nouveau bloqué mais sur un autre truc maintenant.
Depuis le make module et make modules_install un autre problème est survenu.
Au redémarage au moment du
* Coldplugging pci devices
--- cant load module e100
missing kernel or user mode driver e100
--- cant load module tlan
missing kernel or user mode driver tlan
Et ensuite tous flanche bien entendu => plus de eth0, eth1, dhcp ,
Je suis retourné voir ce que jaurais désactivé dans le kernel mais je ne vois pas très bien.
Pour ta réponse kernel_sensei
Jai
CONFIG_NET_FILTER=y
CONFIG_NET_FILTER_DEBUG=y
CONFIG_IP_NF_CONTRACK=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP6_NF_IPTABLES=m
CONFIG_XFRM=m
CONFIG_XFRM_USER=m
JAF |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Fri Sep 30, 2005 10:32 am Post subject: |
|
|
iptables est en dur dans le kernel ...
t'es sur que tu bootes sur le bon kernel ?
Peux-tu nous décrire pas à pas, la facon dont tu updates le kernel ? (jusqu'a la procédure lilo/grub)
Autrement, pour les conventions, tu peux éditer ton 1er post et changer le titre. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
jaf n00b
Joined: 29 Sep 2005 Posts: 6
|
Posted: Sat Oct 01, 2005 2:59 pm Post subject: |
|
|
Merci beaucoup les gars, c'était effectivement un problème dans le compilation du kernel
Enfin dans ma façons de le faire du moins. Il faudra que je revoie sa.
Car j'ai fais genkernel -menuconfig -install all et la j'ai plus de problème.
Merci pour tout
JAF |
|
Back to top |
|
|
|