|
From: Gwenole B. <gb...@di...> - 2004-05-10 07:45:23
|
Hi,
I have committed code to enable TUN/TAP ("tun" module) support in both
Basilisk II and SheepShaver. That's cool, I can even get Internet
connection at home through an ethernet DSL modem. A possible extension
to the tunconfig script (derived from MOL's) is to install a DHCP
server on the tunX interface so that users only need to configure for a
DHCP client on the Mac side.
I have yet to little-endian & 64-bit fix networking code in
SheepShaver. TUN/TAP is also supposed to work on FreeBSD and Solaris
but without adequate system I can't test and tunconfig may need some
arrangements.
I am not a networking wizard, so if someone could proofread and make
sure the following portion added to the README file is understandable,
that would be fine. Thanks.
3. Access the network through a "tuntap" interface.
The "ethernet card description" must be set to "tun".
TUN/TAP provides packet reception and transmission for user
space programs. It can be viewed as a simple Point-to-Point
or Ethernet device, which instead of receiving packets from a
physical media, receives them from user space program and
instead of sending packets via physical media writes them to
the user space program.
A virtual network configuration script is required and the
default is /usr/local/BasiliskII/tunconfig unless you specify
a different file with the "etherconfig" item.
This script requires you that "sudo" is properly configured
so that "/sbin/ifconfig" and "/sbin/iptables" can be executed
as root. Otherwise, you can still write a helper script which
invokes your favorite program to enhance a user priviledges.
e.g. in a KDE environment, kdesu can be used as follows:
#!/bin/sh
exec /usr/bin/kdesu -c /path/to/tunconfig $1 $2
|