Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MOL won't network: can't initialize iptables table 'nat'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sat Aug 28, 2004 4:08 pm    Post subject: MOL won't network: can't initialize iptables table 'nat' Reply with quote

Mol's installed, I can boot OSX, and the disk-image doesn't show up anymore. I can't get networking to work. The error I get is:

Code:
FATAL: Module ip_tables not found
iptables v1.2.11: can't initialize iptables table 'nat': iptables who? (do you need to insmod?)


Is it talking about a kernel modules, or something I compiled in, that should have been a module?

Also, when I try to run
Code:
/etc/init.d/iptables start

I get
Code:
*Not starting iptables. First create some rules then run
*/etc/ini.d/iptables save


I've never had to create iptable rules to get mol working before, and wouldn't know where to begin.

Any suggestions?

~Michael
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Aug 28, 2004 11:25 pm    Post subject: Re: MOL won't network: can't initialize iptables table 'nat' Reply with quote

servobf wrote:
Code:
FATAL: Module ip_tables not found
iptables v1.2.11: can't initialize iptables table 'nat': iptables who? (do you need to insmod?)

Well, try as suggested
Code:
modprobe ip_tables

If this does not work then recompile your kernel with IPTables support (check things out in Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains)), it is likely that you do not have it from the error message.
Quote:
Is it talking about a kernel modules, or something I compiled in, that should have been a module?

It should not be a matter of things compiled into the kernel or as modules, you seem not to have IPTables compiled in at all (as far as I infer from the error message anyway).
Quote:
I've never had to create iptable rules to get mol working before, and wouldn't know where to begin.

You don't have to MOL creates its own rules. What you have to do is compile support into the kernel.

Hope this helps,
Stefan
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Sun Aug 29, 2004 3:22 pm    Post subject: Reply with quote

Quote:
If this does not work then recompile your kernel with IPTables support (check things out in Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains)), it is likely that you do not have it from the error message.


Well, you were right that I didn't have it, but now I do, and I still get the same error. Do I need to re-compile MOL against the new kernel?

~Michael[/quote]
Back to top
View user's profile Send private message
tomasino
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 154
Location: Italy, Bologna

PostPosted: Mon Aug 30, 2004 11:53 am    Post subject: Reply with quote

I know there is some problem with ip tables in kernel 2.6.8
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Mon Aug 30, 2004 2:01 pm    Post subject: Reply with quote

Hmm...That sounds like fun.

I guess I'll wait till I change kernels to work on this again...

If anyone gets it working though, I'd be interested in knowing what you did.

~Michael
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Tue Aug 31, 2004 12:51 pm    Post subject: Reply with quote

servobf wrote:
Well, you were right that I didn't have it, but now I do, and I still get the same error. Do I need to re-compile MOL against the new kernel?

You may need to recompile the MOL modules (which in Gentoo means re-emerging mol). Just to recap though, you may need more things into the kernel--you did check everything under the iptables menu, right? If I am not mistaken you need the following things compiled (into the kernel or as modules):
  • CONFIG_NETFILTER (Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains))
  • CONFIG_IP_NF_CONNTRACK (Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains) -> Connection tracking (required for masq/NAT))
  • CONFIG_IP_NF_IPTABLES (Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains) -> IP tables support (required for filtering/masq/NAT))
  • CONFIG_IP_NF_NAT (Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains) -> Full NAT)
  • CONFIG_IP_NF_TARGET_MASQUERADE (Device drivers -> Networking support -> Networking options -> Network packet filtering (replaces ipchains) -> MASQUERADE target support)

I might be mistaken in the sense that you may need more (I am doing firewall stuff so I have almost the whole iptables thing), but I do believe that these will be enough to get you started. As for the 2.6.8 issues, I seem to recall (though I am not totally sure) that MOL worked fine with it for the short time I tried this kernel (which I abandoned for different reasons), and it does work fine with the 2.6.7 tree.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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