Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errore iptables
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
fejfbo
Guru
Guru


Joined: 30 May 2005
Posts: 407
Location: Milano - Italy

PostPosted: Sun Oct 16, 2005 8:39 am    Post subject: Errore iptables Reply with quote

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
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sun Oct 16, 2005 8:49 am    Post subject: Re: Errore iptables Reply with quote

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
View user's profile Send private message
fejfbo
Guru
Guru


Joined: 30 May 2005
Posts: 407
Location: Milano - Italy

PostPosted: Sun Oct 16, 2005 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message
grentis
Guru
Guru


Joined: 20 Jul 2004
Posts: 321

PostPosted: Sun Oct 16, 2005 9:28 am    Post subject: Reply with quote

Hai ricompilato il kernel dopo aver installato iptables?

Se si riemergilo...
Back to top
View user's profile Send private message
fejfbo
Guru
Guru


Joined: 30 May 2005
Posts: 407
Location: Milano - Italy

PostPosted: Sun Oct 16, 2005 9:58 am    Post subject: Reply with quote

Riemerso ma il problema continua...


Qualcuno sa dirmi le voci del kernel da abilitare per Nat/Masquerade?
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Sun Oct 16, 2005 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum