Subject: netatalk & macipgw
To: None <port-mac68k@netbsd.org>
From: Eagle <eagle243@mac.com>
List: port-mac68k
Date: 02/04/2002 14:42:56
Greetings, all.

 From looking through the archives, this seems to be an oft-asked 
question, but unfortunately I have yet to find an answer.

I am interested in running a MacIP router on my SE/30 which runs 
NetBSD.  From what I can tell, NetBSD 1.5 has AppleTalk support in the 
kernel now, So, I downloaded the netatalk suite from netbsd.org and 
installed it.  I'm to the point where I now have afpd starting, and my 
OS X Cube can see the server.  There are no shares yet -- I must have a 
problem in a config file for that one, which I'm sure will be an easy 
fix.

Anyway, now down to the meat of my question.  I downloaded and was able 
to successfully compile macipgw 1.0.  However, I cannot start it.  
Here's what I get:
--------- end trace --------
% ./macipgw -d 273 10.1.2.0 255.255.255.0
tunnel_open: /dev/tun0:tun0 opened.
tunnel_ifconfig: SIOCDIFADDR: Can't assign requested address
tunnel_ifconfig: setting address 10.1.2.1 -> 10.1.2.0 netmask 
255.255.255.0
tunnel_route: deleting dst=10.1.2.0 mask=255.255.255.0 gw=10.1.2.1
tunnel_route: write: No such process
tunnel_route: adding dst=10.1.2.1 mask=255.255.255.255 gw=127.0.0.1
tunnel_route: write: File exists
tunnel_route: adding dst=10.1.2.0 mask=255.255.255.0 gw=10.1.2.1
tunnel_route: write: File exists
could not open tunnel.
macipgw: going down on signal
Stopping
Feb  4 14:32:20 se30 macipgw: going down on signal
tunnel_route: deleting dst=10.1.2.1 mask=255.255.255.255 gw=127.0.0.1
tunnel_route: write: No such process
tunnel_route: deleting dst=10.1.2.0 mask=255.255.255.0 gw=10.1.2.1
tunnel_route: write: No such process

stopped.
--------- end trace --------

I _am_ able to manually ifconfig tun0 to that IP address (10.1.2.1).

Is anyone here successfully using macipgw on NetBSD?  Does the problem 
have anything to do with my tunnels NOT being multicast or IPv6 
capable?  I saw messages to that effect when I was working on getting 
netatalk running.  Any tips for what I'm doing wrong?

Thanks!

Daniel