View previous topic :: View next topic |
Author |
Message |
Doug_M n00b
Joined: 22 Apr 2005 Posts: 32 Location: Halifax
|
Posted: Tue Jun 20, 2006 7:08 pm Post subject: [SOLVED] mol networking problem |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
Doug_M n00b
Joined: 22 Apr 2005 Posts: 32 Location: Halifax
|
Posted: Tue Jun 20, 2006 7:46 pm Post subject: |
|
|
Well, that's what's sort of bizarre. I have it in my kernel already:
|
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
Doug_M n00b
Joined: 22 Apr 2005 Posts: 32 Location: Halifax
|
Posted: Wed Jun 21, 2006 12:44 am Post subject: |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Jun 21, 2006 10:27 am Post subject: |
|
|
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 |
|
|
Doug_M n00b
Joined: 22 Apr 2005 Posts: 32 Location: Halifax
|
Posted: Wed Jun 21, 2006 11:08 am Post subject: [SOLVED] mol networking problem |
|
|
Thanks Jose, that did the trick! Can't believe I missed that whole section in menuconfig
Doug |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
|