I wanted to make my debian jessie server that already runs netatalk file server to act as MacIp gate. I had to exclude using MacIPgw as stock kernel comes configured with ipddp module, which prevents macipgw from functioning, and I did not want to maintain custom built kernel on that machine. Instead I tried to utilize that same ipddp module to its intent: decapsulate appletal ip packets, as described in kernel documenation.
I found MacGate source code mentioned in documentation on sourceforge. Compilation and installation was uneventful, configuration using macgateconfig seemed to be straightforward. Here is my /etc/MacGated.conf:
# Configure the IPDDP device in the init script? 1 = yes, 0 = no.
CONFIGIPDDP=1
# Name of the IPDDP device (e.g. ipddp0)
IPDDPDEV=ipddp0
# IP Address of the IPDDP device
IPDDPADDR=192.168.60.1
# Start MacGated in the init script? 1 = yes, 0 = no
STARTMACGATED=1
# Scan for IPADDRs on startup? 1 = yes, 0 = no
STARTSCAN=1
# Extra options (e.g. extra IP addresses with -i) to pass to
# MacGated. See MacGated( for more info.
OPTIONS="-i 192.168.0.76"
The MacGate daemon happily starts up, create its interface, even finds mac connected over localtalk to ethernet bridge, and creates new route for it, as can be seen from system log file:
Jan 15 16:32:33 acero MacGated: Found interface ip: 20752576
Jan 15 16:32:33 acero MacGated: Found interface ip: 1275111616
Jan 15 16:32:33 acero MacGate v1.15[2175]: MacGate v1.15 for Linux 3.5.0x
Jan 15 16:32:33 acero MacGate v1.15[2175]: Copyright © 1997-2013 Jay Schulist, All rights reserved
Jan 15 16:32:39 acero MacGate v1.15[2175]: 192.168.0.76 registered as IPGATEWAY
Jan 15 16:32:39 acero MacGate v1.15[2175]: NBPRegIPGATEWAY() succeeded
Jan 15 16:32:45 acero MacGate v1.15[2175]: 192.168.0.76 registered as IPADDRESS
Jan 15 16:32:45 acero MacGate v1.15[2175]: NBPRegIPADDRESS() succeeded
Jan 15 16:32:51 acero MacGate v1.15[2175]: 192.168.60.1 registered as IPGATEWAY
Jan 15 16:32:51 acero MacGate v1.15[2175]: NBPRegIPGATEWAY() succeeded
Jan 15 16:32:57 acero MacGate v1.15[2175]: 192.168.60.1 registered as IPADDRESS
Jan 15 16:32:57 acero MacGate v1.15[2175]: NBPRegIPADDRESS() succeeded
Jan 15 16:32:57 acero MacGate v1.15[2175]: MacGateScanIP checking for existing addresses
Jan 15 16:33:03 acero MacGate v1.15[2175]: nbp_lookup found 3 addresses
Jan 15 16:33:03 acero MacGate v1.15[2175]: Found ip address: 192.168.60.152
Jan 15 16:33:03 acero MacGate v1.15[2175]: Added route 65280:1 to 192.168.60.152 on ipddp0
Jan 15 16:33:03 acero MacGate v1.15[2175]: Added route 192.168.60.152 to ipddp0 (SIOCADDRT)
Jan 15 16:33:03 acero MacGate v1.15[2175]: Scan added 65280:1 -> 192.168.60.152
But then no communication actually occurs between the two, ping fails in both directions. Looking at wire with wireshark shows no packets coming out from debian when pinging macintosh address, and when pinging from mac there is a bunch of AARP packets is sent to which there no response, as follows:
1 0.000000000 Farallon_1e:45:6f AppleTalk-broadcast-address AARP 60 Who has 255.0? Tell 255.0
Any advice how to troubleshot the setup would be greatly appreciated, thanks.
I found MacGate source code mentioned in documentation on sourceforge. Compilation and installation was uneventful, configuration using macgateconfig seemed to be straightforward. Here is my /etc/MacGated.conf:
# Configure the IPDDP device in the init script? 1 = yes, 0 = no.
CONFIGIPDDP=1
# Name of the IPDDP device (e.g. ipddp0)
IPDDPDEV=ipddp0
# IP Address of the IPDDP device
IPDDPADDR=192.168.60.1
# Start MacGated in the init script? 1 = yes, 0 = no
STARTMACGATED=1
# Scan for IPADDRs on startup? 1 = yes, 0 = no
STARTSCAN=1
# Extra options (e.g. extra IP addresses with -i) to pass to
# MacGated. See MacGated( for more info.
OPTIONS="-i 192.168.0.76"
The MacGate daemon happily starts up, create its interface, even finds mac connected over localtalk to ethernet bridge, and creates new route for it, as can be seen from system log file:
Jan 15 16:32:33 acero MacGated: Found interface ip: 20752576
Jan 15 16:32:33 acero MacGated: Found interface ip: 1275111616
Jan 15 16:32:33 acero MacGate v1.15[2175]: MacGate v1.15 for Linux 3.5.0x
Jan 15 16:32:33 acero MacGate v1.15[2175]: Copyright © 1997-2013 Jay Schulist, All rights reserved
Jan 15 16:32:39 acero MacGate v1.15[2175]: 192.168.0.76 registered as IPGATEWAY
Jan 15 16:32:39 acero MacGate v1.15[2175]: NBPRegIPGATEWAY() succeeded
Jan 15 16:32:45 acero MacGate v1.15[2175]: 192.168.0.76 registered as IPADDRESS
Jan 15 16:32:45 acero MacGate v1.15[2175]: NBPRegIPADDRESS() succeeded
Jan 15 16:32:51 acero MacGate v1.15[2175]: 192.168.60.1 registered as IPGATEWAY
Jan 15 16:32:51 acero MacGate v1.15[2175]: NBPRegIPGATEWAY() succeeded
Jan 15 16:32:57 acero MacGate v1.15[2175]: 192.168.60.1 registered as IPADDRESS
Jan 15 16:32:57 acero MacGate v1.15[2175]: NBPRegIPADDRESS() succeeded
Jan 15 16:32:57 acero MacGate v1.15[2175]: MacGateScanIP checking for existing addresses
Jan 15 16:33:03 acero MacGate v1.15[2175]: nbp_lookup found 3 addresses
Jan 15 16:33:03 acero MacGate v1.15[2175]: Found ip address: 192.168.60.152
Jan 15 16:33:03 acero MacGate v1.15[2175]: Added route 65280:1 to 192.168.60.152 on ipddp0
Jan 15 16:33:03 acero MacGate v1.15[2175]: Added route 192.168.60.152 to ipddp0 (SIOCADDRT)
Jan 15 16:33:03 acero MacGate v1.15[2175]: Scan added 65280:1 -> 192.168.60.152
But then no communication actually occurs between the two, ping fails in both directions. Looking at wire with wireshark shows no packets coming out from debian when pinging macintosh address, and when pinging from mac there is a bunch of AARP packets is sent to which there no response, as follows:
1 0.000000000 Farallon_1e:45:6f AppleTalk-broadcast-address AARP 60 Who has 255.0? Tell 255.0
Any advice how to troubleshot the setup would be greatly appreciated, thanks.
Last edited by a moderator: