Re: mol and TCP/IP


Subject: Re: mol and TCP/IP
From: Jens Schmalzing (jens.schmalzing@physik.uni-muenchen.de)
Date: Tue Dec 11 2001 - 03:59:35 MST


Hi,

Alfred Mutscheller writes:

> In the molrc file I choose: netdev: eth0 -sheep

You only need to use this when you want MacOS to AppleTalk on the
local LAN. Since I normally do *not* want this, I have

  netdev: dummy0 -sheep

in my molrc file. The dummy0 device is configured with IP address
192.168.0.1 on the Linux side, and MacOS gets 192.168.0.2 in the
TCP/IP control panel. With this setup, I can already ping from Linux
to MacOS and vice versa.

In order to use the internet from MacOS, I set up a routing rule on
the Linux side with

  iptables -t nat -A POSTROUTING -j SNAT -s 192.168.0.0/24 \
  -o $(DEVICE) --to $(IPADDR)

where DEVICE is the networking device that connects to the internet
and IPADDR is the IP address of that device. With 192.168.0.1 as
router address and your favorite nameserver (I also use the Linux
side, btw), MacOS should then be able to fully use the internet.

Regards, Jens.

-- 
J'qbpbe, le m'en fquz pe j'qbpbe!
Le veux aimeb et mqubib panz je pézqbpbe je djuz tqtaj!



This archive was generated by hypermail 2a24 : Tue Dec 11 2001 - 04:13:15 MST