Mac68k Forums

Home


Welcome, Guest
Guest Settings
Help

Mac68k Forums » Development » Software Hacking

Thread: The MacIPgw virtual machine


Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Pages: 1 - Last Post: Feb 7, 2015 8:20 AM Last Post By: MacTjaap Threads: [ Previous | Next ]
MacTjaap


Posts: 14
Registered: 11/22/14
The MacIPgw virtual machine
Posted: Dec 24, 2014 9:20 AM
Click to report abuse...   Click to reply to this thread Reply
On this forum I would like to add an item about a simple way to get TCP/IP under LocalTalk (MacIP) on old Macs.

The MacIPgw virtual machine is way of connecting your old Macintosh to the Internet. You will need a LocalTalk bridge connect the Macintosh to your network in combination with this virtual machine. Commonly used Ethernet bridges like a AsantéTalk or Dayna (mini) EtherPrint can bridge LocalTalk and EtherTalk. Even a Macintosh with a network card like a LC or SE/30 can do the job.

You can connect Macintosh computers over LocalTalk with the use of cabling between the printer ports. On this kind of network it is not possible to “speak” TCP/IP right away. To speak TCP/IP on a LocalTalk network it is necessary to encapsulate Internet Protocol (IP) packets within the AppleTalk DDP protocol. To do this right you need a piece of hardware or software to do this.
I found out that a 15 year old piece old software was recently updated by its author Stefan Bethke. I wrote him an email and he told me that the software now compiles on modern FreeBSD and Linux. On this software the MacIPgw virtual machine is based.

Version 2.0 is the current stable version of the MacIPgw virtual machine. I publish it as VirtualBox Appliance. The file is a Open Virtualization Format Archive.
Download at:
http://www.macip.net/wp-content/uploads/macipgw-v2.0.ova ( 237 MB)

It is the most simple way in distributing the virtual machine. Just download the .ova file ( 237 MB) and import it in VirtualBox. This is done under File / import Appliance.
Be sure that the network device is on Network Bridge Adapter.

Features in 2.0:

  • Instant access for your old Mac to the Internet!
The virtual machine will get IP adres 172.16.2.1. You can give your old school Mac IP address 172.16.2.2 and as gateway 172.16.2.1 and it will work. You can also set DNS in MacTCP on 172.16.2.1.

If you want to login as user on this virtual machine withh ssh or on the console use user macipgw
Password is also macipgw
You can change to root with the command:
su
Use password macipgw too.

About the virtual machine:

  • FreeBSD 8.4
  • sshd started at boot. You can login with ssh. But no root login with ssh. Only user macipgw can login with ssh. Password is also macipgw
  • ftpd started at boot. You can login with ftp. Use user macipgw. Password is also macipgw.
  • telnetd started at boot. You can login with telnet Use user macipgw
  • DNS started at boot. Full working name server. You can point your Macintosh to 172.16.2.1 as DNS server.
  • Host name resolution. You can point to gw.macip.net and it is resolved as 172.16.2.1 and you can point to mac.macip.net as your Macintosh with IP address 172.16.2.2
  • motd updated. You now see information about IP configuration if booted.
  • Small disk 675 MB

Issues:
  • named start at boot is strange. Had to make a small hack in cron to get it working. Will reload its configuration every minute.
  • Security. No firewall in place. Please use on secure private LAN.
  • No support for file sharing. FTP only.

To set up MACIPGW, follow these steps:
• Download and install VirtualBox. https://www.virtualbox.org/wiki/Downloads
• Download at http://www.macip.net/wp-content/uploads/macipgw-v2.0.ova the virtual machine. (237MB)
• Open VirtualBox, and choose “Import Appliance…” from the File menu. Select the file you downloaded (MacIPgw-v2.0.ova).
• Click Import.
• When it’s done importing, click MacipGW v2.0, then click Settings, then click Network.
• Ensure that “Attached To:” is set to “…Bridged Adapter”.
• Click OK.
• Start him up! Select MacipGW v2.0 and click on green arrow…Start

New is the 2.1 version. This is where I made some small improvements on the system. Ready for testing.
Download at:
http://www.macip.net/wp-content/uploads/MacIPgw-v2.1.ova ( 391 MB)
Fast miror:
http://cdn.net2service.com/MacIPgw-v2.1.ova

Changes are:

  • Stopping the logfiles and cron from flooding the disk. My uptime is now 16 days and counting….
  • A bigger disk, 1 GB in total. So more free disk space. So you can fill your home director with 100MB or more. Also and /extra directory with nearly 200 MB free space
  • gw.macip.net and mac.macip.net are now resolved by DNS
  • Installed nmap for testing
  • Installed aecho for testing
  • Installed Bash for more comfortable shell access
  • Some more old services are starting up, besides telnetd and ftpd also tftpd, finger, daytime are started. Nice for testing old MacTCP applications. For ftp login with the macipgw account with password macipgw.
  • Fixed typo in start up script which gave the impression that there was an 8 to much in macipgw DNS resolver.
  • web server on port 80 so you can test a web browser. Point it to http://172.16.2.1 and you will see a page telling you “It works!” Uses tthttpd in /etc/rc.local for startup.
  • Lynx web browser. Login with telnet user: lynx and password: lynx and you will get the text only web browser so you can surf the web. No support for https however….
  • Elinks web browser. Login with telnet user: elinks and password: elinks and you will get the text only web browser so you can surf the web. And yes… support for https!
  • pkg added. Makes it simple to install binary packages to you macipgw virtual machine. Use as root. Look for packages with this command:
pkg search package_name
or for more information
pkg search –f package_name
pkg search apache
Will give you al the possibilities for installing apache variants. Install with
pkg install package_name
See for more information:
https://wiki.freebsd.org/PkgPrimer

Installing this virtual machine? Look at 2.0 procedure.

You can read this and more on my web site about this project:

http://www.macip.net

I’m very interested in your opinion about this virtual machine so I invite you to test it and give some feedback!
Questions and/or tips??? Reply in this forum or email me at gw (a) macip.net
uniserver


Posts: 53
Registered: 12/11/14
Re: The MacIPgw virtual machine
Posted: Dec 25, 2014 12:40 AM   in response to: MacTjaap in response to: MacTjaap
Click to report abuse...   Click to reply to this thread Reply
wow, Hey thanks for sharing this. I want to test this.

So for example if i would like to get my mac portable on the internet this way.

-So the Mac Portable would be connected to my bridge mac via local talk cable.

-bridge mac is also connected to the same 10/100 network as the machine running the VM.

-vm runs on modern machine, -linux -Mac - Windows Virtual Box has binaries for all.

And after all this Netscape 2.0.1 on the portable, and i am surfing.

I have other questions, like what would the best os choice be for the mac portable?
how are the TCP/IP settings configured on the portable?
Ah i am sure it will all be evident once i find some time to play.

what kind of internet speeds can you achieve?

MacTjaap


Posts: 14
Registered: 11/22/14
Re: The MacIPgw virtual machine
Posted: Dec 25, 2014 7:06 AM   in response to: uniserver in response to: uniserver
Click to report abuse...   Click to reply to this thread Reply
You are right. All the points you mention are true. Give yourself some time and it will work!

You can surf the Internet with your Portable with it.
Just connect it with LocalTalk to a networked Mac and use the LocalTalk Bridge control panel. Or use a hardware LocalTalk bridge.
The MacIPgw will help you with TCP/IP

Configure your Portable with MacTCP and give it IP address 172.16.2.2. Use as gateway and DNS 172.16.2.1
You can also start with BasiliskII to test.

Let me know how it goes! I'm very much interested in feedback on this. I tried it many times in differtent networks and it works all the time!
Tested it on System 6.0.8, 7.1, 7.5, 7.6. On System 6 start with NCSA telnet first.
MacTjaap


Posts: 14
Registered: 11/22/14
Re: The MacIPgw virtual machine
Posted: Feb 7, 2015 8:20 AM   in response to: MacTjaap in response to: MacTjaap
Click to report abuse...   Click to reply to this thread Reply
NEW VERSION OF MACIPGW VIRTUAL MACHINE

v2.3

Version 2.3 is now the current version of MacIPgw virtual machine. I publish it as VirtualBox Appliance. The file is a Open Virtualization Format Archive


An easy and hassle free way of getting your old Macintosh on the Internet.
Just download the MacIPgw-v2.3.ova file.
( 430MB md5sum: be5bac2a3bdbb6757ed0ebb51238109c )
Or the zip file: macipgw-2.3.ova.zip.
( 424MB md5sum f577be97de521028d660947771a7c8c8 )

http://www.macip.net/?p=34


and import it in VirtualBox. This is done under File / import Appliance.
Be sure that the network device is on Network Bridge Adapter. Internet Explorer recognizes the file sometimes as a .tar. Be sure to save it as a .ova!


NEW in MacIPgw virtual machine version 2.3
A BIG NEW ONE!!!!…


Macipgw-AFP


Now out of the box AppleShare file sharing. For old school Mac and new ones. If you open the Chooser you will find the MacIPgw File Server. On this server is a volume called: MacIPgw-DISK.


Login with the macipgw credentials:
username: macipgw
passwd: macipgw
You can upload your stuff here. I also put some old Internet goodies on the disk it for sharing…
User Guest can read this volume.
There is also a volume called Public Folder. This is for guest users. You can up and download here things without login in.


And more………

For debugging you can see the log at /var/log/afpd.log. This log is whipped every 12 hours so your disks stays clean.
Even more prevention of logs flooding
Instructions how to login in boot up messages
IP address is given in boot up messages for SSH connection or debug.

Improvements from older versions are in place:


Stopping the logfiles and cron from flooding the disk. My uptime is now 16 days and counting….
– A bigger disk, 1 GB in total. So more free disk space. So you can fill your home director with 100MB or more. Also and /extra directory with nearly 200 MB free space
– gw.macip.net and mac.macip.net are now resolved by DNS
– Installed nmap for testing
– Installed aecho for testing
– Installed Bash for more comfortable shell access
– Some more old services are starting up, besides telnetd and ftpd also tftpd, finger, daytime are started. Nice for testing old MacTCP applications. For ftp login with the macipgw account with password macipgw.
– Fixed typo in start up script which gave the impression that there was an 8 to much in macipgw DNS resolver.
– web server on port 80 so you can test a web browser. Point it to http://172.16.2.1 and you will see a page telling you “It works!” Uses tthttpd in /etc/rc.local for startup.
– Lynx web browser. Login with telnet user: lynx and password: lynx and you will get the text only web browser so you can surf the web. No support for https however….
– Elinks web browser. Login with telnet user: elinks and password: elinks and you will get the text only web browser so you can surf the web. And yes… support for https!
– pkg added. Makes it simple to install binary packages to you macipgw virtual machine. Use as root. Look for packages with this command:
#pkg search package_name
or for more information

  1. pkg search –f package_name
  2. pkg search apache
Will give you al the possibilities for installing apache variants. Install with
#pkg install package_name
See for more information:
https://wiki.freebsd.org/PkgPrimer


SETUP INSTALL


To set up MACIPGW, follow these steps:
• Download and install VirtualBox. https://www.virtualbox.org/wiki/Downloads
• Download MacIPgw-v2.3.ova virtual machine. (md5sum 43e67ecbc4c09aa1a2cc644403955133 – file size 237 MB)
• Open VirtualBox, and choose “Import Appliance…” from the File menu. Select the file you downloaded (MacIPgw-v2.3.ova).
• Click Import.
• When it’s done importing, click MacipGW v2.3, then click Settings, then click Network.
• Ensure that “Attached To:” is set to “…Bridged Adapter”.
• Click OK.
• Start him up! Select MacipGW v2.3 and click on green arrow…Start.


DOWNLOAD:
http://cdn.macip.net/MacIPgw-v2.3.ova


Point your RSS reader here for a feed of the latest messages in all forums