View previous topic :: View next topic |
Author |
Message |
fejfbo Guru
Joined: 30 May 2005 Posts: 407 Location: Milano - Italy
|
Posted: Sun Oct 16, 2005 8:39 am Post subject: Errore iptables |
|
|
Stavo seguendo la guida su come realizzare un piccolo home router.
Però mi presenta un errore quando sul finire devo configurare iptables. Precisamente dando il comando:
Code: | iptables -t nat -A POSTROUTING -o ${WAN} -j MASQUERADE |
mi restituisce l'errore:
Code: | FATAL: Module ip_tables not found.
iptables v1.3.2: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded. |
Sono molto ignorante in materia, sembra che la tabella nat non esista ma non ho la più pallida idea di come crearla.
Qualcuno mi può aiutare? |
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Sun Oct 16, 2005 8:49 am Post subject: Re: Errore iptables |
|
|
fejfbo wrote: | FATAL: Module ip_tables not found. |
Piú che latabella "nat" mi sembra che ti manchi qualche modulo in memoria.
lsmod cosa dice?
Hai provato modprobe ip_tables?
Sei sicuro di aver compilato il supporto per iptables nel kernel? _________________ Ciao da me! |
|
Back to top |
|
|
fejfbo Guru
Joined: 30 May 2005 Posts: 407 Location: Milano - Italy
|
Posted: Sun Oct 16, 2005 8:55 am Post subject: |
|
|
Penso che la configurazione del kernel sia giusta, ho seguito la guida http://www.gentoo.org/doc/it/home-router-howto.xml
e tutti i precedenti comandi di iptables hanno funzionato, il problema è solo su quello.
Sai per caso suggerirmi i moduli del kernel esatti che provo a ridare una controllatina? Purtroppo le voci erano diverse da quelle della guida nel mio kernel ma penso di aver messo tutto.
A proposito, se provo con modprobe ip_tables mi restituisce l'errore:
Code: | FATAL: Module ip_tables not found. |
|
|
Back to top |
|
|
grentis Guru
Joined: 20 Jul 2004 Posts: 321
|
Posted: Sun Oct 16, 2005 9:28 am Post subject: |
|
|
Hai ricompilato il kernel dopo aver installato iptables?
Se si riemergilo... |
|
Back to top |
|
|
fejfbo Guru
Joined: 30 May 2005 Posts: 407 Location: Milano - Italy
|
Posted: Sun Oct 16, 2005 9:58 am Post subject: |
|
|
Riemerso ma il problema continua...
Qualcuno sa dirmi le voci del kernel da abilitare per Nat/Masquerade? |
|
Back to top |
|
|
luna80 Veteran
Joined: 01 Feb 2004 Posts: 1546 Location: switzerland
|
Posted: Sun Oct 16, 2005 10:20 am Post subject: |
|
|
fejfbo wrote: | Riemerso ma il problema continua...
Qualcuno sa dirmi le voci del kernel da abilitare per Nat/Masquerade? |
credo che bastino queste:
Code: | CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_BRIDGE_NETFILTER=y
# IP: Netfilter Configuration
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_ARPFILTER=y
# Bridge: Netfilter Configuration
|
_________________ *** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off *** |
|
Back to top |
|
|
|