Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mol networking problem
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
Doug_M
n00b
n00b


Joined: 22 Apr 2005
Posts: 32
Location: Halifax

PostPosted: Tue Jun 20, 2006 7:08 pm    Post subject: [SOLVED] mol networking problem Reply with quote

Hi,

I've got mol almost working (kernel 2.6.17). OS X boots but the network is borked. I'm using tun. OS X gets an IP (192.168.41.2) but I can't ping the router (192.168.41.1) or the nameserver or any internet address.

During startup mol complains about not being able to initialize iptables. I have iptables installed and in the kernel it is not available as a module, only compiled in. Here is the relevant parts of the startup log:

Code:

<snip>
FATAL: Module ip_tables not found.
iptables v1.3.5: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Ethernet Interface 'tun-<tun1>' @ 00:00:0D:EA:DB:EE

    ip/mask: 192.168.41.2/255.255.255.0  gw: 192.168.41.1
    broadcast: 192.168.41.255  nameserver: 192.168.41.1
<snip>
<*> Ethernet driver 1.1
<*> MolAudio 1.2
<*> IRQ vectorCanBeShared 1
+ Video Driver v1.12
<*> MolEnet: Link up at 100 Mbps - Full Duplex
DHCP lease: 192.168.41.2


Here is my dhcpd-mol.conf:

Code:

option domain-name-servers              4.2.2.1;

# Newer dhcpd versions require the following line
ddns-update-style       ad-hoc;

# Support up to 10 sessions (each with its own tun interface)

subnet 192.168.40.0 netmask 255.255.255.0 {
        #option domain-name-servers     4.2.2.1;
        option routers                  192.168.40.1;
        host mol0 {
                hardware ethernet       00:00:0D:EA:DB:EE;
                fixed-address           192.168.40.2;
        }
}
subnet 192.168.41.0 netmask 255.255.255.0 {
        #option domain-name-servers     4.2.2.1;
        option routers                  192.168.41.1;
        host mol0 {
                hardware ethernet       00:00:0D:EA:DB:EE;
                fixed-address           192.168.41.2;
        }
}


The only think I have in molrc.net is:

Code:

netdev:         tun${session} -tun


In tunconfig I enabled the nameserver var with a value I use and know works. I also checked the locations of iptables and dhcpd. They are correct.

Code:

NAMESERVER=4.2.2.1

IPTABLES=/sbin/iptables
DHCPD=/usr/sbin/dhcpd


What am I missing?

Thanks,
Doug


Last edited by Doug_M on Fri Jun 30, 2006 3:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jun 20, 2006 7:39 pm    Post subject: Reply with quote

Probably IP Masquerading
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Doug_M
n00b
n00b


Joined: 22 Apr 2005
Posts: 32
Location: Halifax

PostPosted: Tue Jun 20, 2006 7:46 pm    Post subject: Reply with quote

Well, that's what's sort of bizarre. I have it in my kernel already:

Code:
CONFIG_NETFILTER=y
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jun 20, 2006 9:01 pm    Post subject: Reply with quote

Sorry, CONFIG_IP_NF_NAT is what you're looking for.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Doug_M
n00b
n00b


Joined: 22 Apr 2005
Posts: 32
Location: Halifax

PostPosted: Wed Jun 21, 2006 12:44 am    Post subject: Reply with quote

That wasn't in .config (couldn't see it via menuconfig either) so I added it by hand (as a module). After the compile I couldn't find the module and the entry was gone from .config. This is kernel 2.6.17. I had a look in kernel linux-2.6.16-gentoo-r9's .config file and didn't find CONFIG_IP_NF_NAT either.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 21, 2006 10:27 am    Post subject: Reply with quote

You don't have one of the deps for it selected then. In menu config, use / to search for the option. This will tell you what's required for that option. If you can't get it to work, post the networking part of your config.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Doug_M
n00b
n00b


Joined: 22 Apr 2005
Posts: 32
Location: Halifax

PostPosted: Wed Jun 21, 2006 11:08 am    Post subject: [SOLVED] mol networking problem Reply with quote

Thanks Jose, that did the trick! Can't believe I missed that whole section in menuconfig :oops:

Doug
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 21, 2006 11:27 am    Post subject: Reply with quote

It's okay, glad that worked :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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