YES, this is real.
I’m tired, but I had to post something… I’ll fill in the blanks later.
Back in 1995, 2 really neat things happened. First is that 32bit computing to the masses finally happened. The second is that lousy audio compression started to really really take off.
And like many other people, who weren’t lucky enough to have a SUN or NeXT workstation, we got our first taste through Real Audio.
I had scored this ‘broken’ CD-ROM from a Tiger Direct fire sale, as far as I could tell, there was nothing wrong with it. Luckily for me the box was complete, I just loaded the drivers, popped in a CD-ROM and I was on my way to enjoying DATA discs. It also had a headphone jack, making listening to audio CD’s a snap. And of course, giving me the analog out that a sound card could happily capture, given you have enough disk space.
Back in the day, I was lucky enough to have a ST4766N 676MB SCSI disk, that was actually large enough to decompress a CD-ROM audio disc to, which in the mid 90’s was a rarity!
So with enough disk space, I was able to rip the CD-ROM to uncompress WAV files. Oddly enough today, this is a trival thing to do. In this day and age to re-create it, however I’m going to take a FLAC, and downsample it to a 44100Hz WAV file using Audacity.
Once you’ve opened up your source material, in the bottom left drop it down to 44100…
And this will let you start the export process
And this let’s you set it to a signed 16-bit PCM WAV which Real Audio can happily transcode.
And this is why for most people transcoding a CD-ROM would be out of reach, as ripping a CD-ROM would require an enormous amount of hard disk space for someone circa 1995.
Using the encoder, it’s a simple matter of opening up the WAV file, select a destination name, and set the encoder. In this case I want the smallest file possible, so Im using RealAudio version 2, suitable for 14.4 modem.
And just hit the ‘Start Encoding’ button, and you are good to go! In the day this whole process would take HOURS and HOURS… I think the encoding ran over night. But today this only takes a few seconds.
And now it’s super easy to load it up on a player, and listen to it’s…. semi awesomeness.
And just as I recalled, I was able to transcode the first 5 tracks in under 1.2MB, enough to fit onto a 5 1/4″ diskette, or a 3 1/2″ disk.
Once Windows 95 was a shipping thing, things like the media player started to get better and more versatile codecs to support u-law, a-law, MPEG-2, and even MP3. But thanks to an early start Real Audio was up there with flash as one of the first ‘must have’ programs to unleash the new and exciting. Real couldn’t make the jump to mobile devices, and once MP3 streaming via shoutcast and other ‘DIY’ free solutions took over the market and obliterated the very expensive and proprietary RealAudio servers. While progressive networks is still around, they are the Yahoo of audio.
One minor thing of interest is that VLC, can play RealAudio files. I thought it was interesting, although I guess not all that practical.
For anyone who wants to play along, you too can try these files:
So yeah, let’s build a NetWare 3.12 server! I’ve covered this over and over and over, but heh let’s do it again!
First things first, the default position of the NE2000 card at 0x300/IRQ 9 does NOT WORK. Â This is the biggest stumbling block, and time waster right there. Â I loaded a PCnet driver, and it didn’t lock, but it didn’t work. Â I loaded 2 ne2000’s thinking the second would come up in the correct position but that didn’t work either. Â The solution of course is to dive into the parameters for QEMU to drive devices.
So for the fun of it, here is how I’m going to run this in a nested VM. Â It’s also why I didn’t bother enabling the ‘-enable-kvm’ flag. Â Although on a real machine I would.
qemu-system-i386 -m 16 \ -cpu 486 \ -net none \ -vnc :1 \ -device ne2k_isa,mac=00:2e:3c:92:11:01,netdev=lan,irq=11,iobase=0x320 \ -netdev vde,id=lan,sock=/tmp/local \ -hda netware312.qcow2 \ -hdb netware312_data.qcow2 \ -parallel none \ -monitor tcp::4400,server,nowait
So the key portion here is the iobase & irq. Â This let’s me sidestep the IRQ 9, port 0x300 issue. Â Talking to the monitor and running ‘info qtree’ I’m able to look at the parameters that I can pass the network card:
bus: isa.0 type ISA dev: ne2k_isa, id "" iobase = 800 (0x320) irq = 11 (0xb) mac = "00:2e:3c:92:11:01" vlan = netdev = "lan" isa irq 11
As you can see there is actually a few further things I could have set, but the key ones here being the iobase, the irq, the mac address, and then assigning it to a netdev, in this case I then bind it to a VDE.
Now the fun part goes back to the old days of Netware when your network could run several possible frame times.  If you have 2 machines with different frames, they will not see each-other.  it was a cheap way to hide networks well until the wide spread availability of sniffers.  Naturally cisco and Novell have different terms for the same things.  Below are the ones that are relevant to Ethernet:
[table id=1 /]
So in my case on my Netware server I simply load my NE2000 like this:
LOAD NE2000 PORT=320 INT=A FRAME=ETHERNET_802.3 BIND IPX TO NE2000 NET=800852
Next on my cisco router I simply need:
ipx routing ca00.06a3.0000 interface FastEthernet0/0 ipx network 800852
And now I can see my server from the router:
HKOffice#sho ipx servers Codes: S - Static, P - Periodic, E - EIGRP, N - NLSP, H - Holddown, + = detail U - Per-user static 1 Total IPX Servers Table ordering is based on routing and server info Type Name Net Address Port Route Hops Itf P 4 HONGKONG 852.0000.0000.0001:0451 2/01 1 Fa0/0 HKOffice#
And the interface looks busy on NetWare
NetWare servers advertise their internal networks, much like how people should be using loopback adapters in OSPF, or EIGRP … So if you check the IPX routing table, you’ll see the wire route to the internal network:
HKOffice#sho ipx route Codes: C - Connected primary network, c - Connected secondary network S - Static, F - Floating static, L - Local (internal), W - IPXWAN R - RIP, E - EIGRP, N - NLSP, X - External, A - Aggregate s - seconds, u - uses, U - Per-user static/Unknown, H - Hold-down 2 Total IPX routes. Up to 1 parallel paths and 16 hops allowed. No default route known. C 800852 (NOVELL-ETHER), Fa0/0 R 852 [02/01] via 800852.002e.3c92.1101, 150s, Fa0/0
Just like that!
One thing to note, on VDE, I had an issue where the NetWare server takes about a minute before it’ll see traffic. Â It could be my IOS for all I know…..
Continuing from my TACACS adventure, I also thought it would be nice to capture syslogs, and save them. Oddly enough this is a big business, with even low end products like Kiwi Syslog server costing some $295 USD!
Well that’s too much for me, so I figured that the most wide spread at the time must have been the 4.3BSD syslogd, so I’ll start with that.
Just as before this was a pretty straight forward port, I had to remove all the /dev/kmem and UNIX socket stuff, as they obviously don’t exist on Windows. Â Just as the same, you can’t “write to users” to send messages, so by default output is a file. Â I suppose I could use the net send functionality to pop up a message, but I find it just as annoying today as it was then.
At any rate in no time I was able to setup a simple config file, and then get my router to turn on full logging & enable full debugging to get a continuous stream of messages. Â The only ‘gotcha’ is that this sylogd wants to be able to do reverse lookups, so you really ought to have a DNS with reverse entries, or a good hosts file.
syslogd_win32 -d off & running.... init cfline(*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info;*.debug log.txt) 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: log.txt 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 UNUSED: logmsg: pri 56, flags 8, from jaderabbit, msg syslogd: restart Logging to FILE log.txt syslogd: restarted cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2458: 00:24:19: SNMP: HC Timer 619E3D1C fired Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2459: 00:24:19: SNMP: HC Timer 619E3D1C rearmed, delay = 5000 Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2460: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2461: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2462: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2463: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2464: 00:24:22: SNMP: HC Timer 61875370 fired Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2465: 00:24:22: SNMP: HC Timer 61875370 rearmed, delay = 20000 Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2466: 00:24:22: IP: s=192.168.254.1 (FastEthernet0/0), d=192.168.254.255 (FastEthernet0/0), len 159, rcvd 3 Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2467: 00:24:22: UDP: rcvd src=192.168.254.1(17500), dst=192.168.254.255(17500), length=139 Logging to FILE log.txt cvthname(192.168.254.10) logmsg: pri 277, flags 0, from testcisco, msg 2468: 00:24:22: IP: s=192.168.254.1 (FastEthernet0/0), d=192.168.254.255, len 159, dispose udp.noport Logging to FILE log.txt
As you can see, running it in debug mode tells me what is going on. Â And the log.txt file contains a nicely formatted log file, just the way that it was done on BSD:
Apr 13 13:11:04 jaderabbit syslogd: restart Apr 13 13:11:17 testcisco 2458: 00:24:19: SNMP: HC Timer 619E3D1C fired Apr 13 13:11:17 testcisco 2459: 00:24:19: SNMP: HC Timer 619E3D1C rearmed, delay = 5000 Apr 13 13:11:27 testcisco 2460: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Apr 13 13:11:27 testcisco 2461: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Apr 13 13:11:27 testcisco 2462: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Apr 13 13:11:27 testcisco 2463: 00:24:21: IP: s=192.168.254.1 (FastEthernet0/0), d=239.255.255.250, len 202, dispose ip.hopcount Apr 13 13:11:27 testcisco 2464: 00:24:22: SNMP: HC Timer 61875370 fired Apr 13 13:11:27 testcisco 2465: 00:24:22: SNMP: HC Timer 61875370 rearmed, delay = 20000 Apr 13 13:11:34 testcisco 2466: 00:24:22: IP: s=192.168.254.1 (FastEthernet0/0), d=192.168.254.255 (FastEthernet0/0), len 159, rcvd 3 Apr 13 13:11:34 testcisco 2467: 00:24:22: UDP: rcvd src=192.168.254.1(17500), dst=192.168.254.255(17500), length=139 Apr 13 13:11:34 testcisco 2468: 00:24:22: IP: s=192.168.254.1 (FastEthernet0/0), d=192.168.254.255, len 159, dispose udp.noport
I’m sure it’s full of other bugs, but all I tested was that I could log to a file, and it’s doing that much just fine. Â If you feel so inclined you can download & compile it, the source is: syslogd_win32.c
So, in my fun and excitement I was putting together a ‘cisco’ network using dynamips that spans a few sites across the world. Â I’m using ancient copies of NT for some servers, although I plan on adding in some 386BSD, SunOS SPARC, and maybe even 68010 based, along with other stuff.
I have the routers running fine, but I felt like adding some kind of external authentication service, and TACACS certainly fits the bill! Â And to be all vintage as usual, I’m not going to use TACACS+ as it’s simply too new, and too big. Â So first things first, I need a copy of the source to TACACS as I’m certainly not going to write my own! Â I found this directory on ftp.funet.fi which has a bunch of old cisco related material, and sure enough there is a tacacsd.c
Even better it’s from 1989 which suits my need for something positively ancient, and simple enough to be a single C file.
/* * TACACS daemon suitable for using on Un*x systems. * * Janruary 1989, Greg Satz * * Copyright (c) 1989 by cisco Systems, Inc. * All rights reserved. */
Porting it to run on Winsock, really wasn’t all that hard, I had it running as a standalone program within a few minutes, however there is no password file in NT, so as a simple test, I had simply short circutied the username lookup to always suceeded, along with a password compare.
Since I have VMWare Player installed on my machine, I can use the VMNet 8 connection to talk to my host computer. Â The hard part of course is trying to figure out which NIC is which, but dynamips -e will give you a list like this:
Cisco Router Simulation Platform (version 0.2.16-experimental(merge uppc smips)Build-1-x86/MinGW stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Dec 15 2016 04:20:41
Pcap version [WinPcap version 4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch 1_0_rel0b (20091008)]
Network device list:
\Device\NPF_{D3DF08C4-7A33-4FE2-9351-000153705A30} : VMware Virtual Ethernet Adapter
\Device\NPF_{3FB194EF-F3A4-45F2-AFAB-A4ABA98E8FF7} : Qualcomm Atheros Ar81xx series PCI-E Ethernet Controller
\Device\NPF_{C46B48B8-74E1-4938-9BFE-E407949A7940} : Microsoft
\Device\NPF_{F72C65CD-C6BC-44FE-9019-C5057DB1D9AB} : VMware Virtual Ethernet Adapter
\Device\NPF_{CE75B9C1-8189-4C8F-8EF6-6CEB0C6D0329} : Microsoft
\Device\NPF_{737A8B62-9A87-4739-9CC2-BF05CDC315D0} : Microsoft
And with that information, we are good to go! Â Since I’m doing a simple test here, I don’t need anything other than a single ethernet to talk to my host, so here is a VERY simple cli to run dynamips:
..\dynamips.exe -P 7200 ..\c7200-is-mz.19991126.bin -t npe-200 -p 0:C7200-IO-FE -s 0:0:gen_eth:\Device\NPF_{D3DF08C4-7A33-4FE2-9351-000153705A30} Â –idle-pc 0x604f1da0 -X
And I’m off booting!
Cisco Router Simulation Platform (version 0.2.16-experimental(merge uppc smips)Build-1-x86/MinGW stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Dec 15 2016 04:20:41
Pcap version [WinPcap version 4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version 1.0 branch 1_0_rel0b (20091008)]
Idle PC set to 0x604f1da0.
IOS image file: ..\c7200-is-mz.19991126.bin
ILT: loaded table "mips64j" from cache.
ILT: loaded table "mips64e" from cache.
ILT: loaded table "ppc32j" from cache.
ILT: loaded table "ppc32e" from cache.
vtty_term_init
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
C7200 instance 'default' (id 0):
VM Status : 0
RAM size : 256 Mb
IOMEM size : 0 Mb
NVRAM size : 128 Kb
NPE model : npe-200
Midplane : vxr
IOS image : ..\c7200-is-mz.19991126.bin
Loading ELF file '..\c7200-is-mz.19991126.bin'...
ELF entry point: 0x80008000
C7200 'default': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled.
mips64_test.s ROMMON emulation microcode.
mips64_test.s Launching IOS image at 0x80008000...
Self decompressing the image : ####()## [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (C7200-IS-M), Experimental Version 12.0(20000110:181554) [otroan-thanksgiving-rel 175]
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Thu 20-Jan-00 15:07 by otroan
Image text-base: 0x60008900, data-base: 0x613D0000
cisco 7206VXR (NPE200) processor with 253952K/8192K bytes of memory.
R5000 CPU at 200Mhz, Implementation 35, Rev 1.2
6 slot VXR midplane, Version 2.1
Last reset from power-on
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface(s)
125K bytes of non-volatile configuration memory.
4096K bytes of packet SRAM memory.
65536K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).
8192K bytes of Flash internal SIMM (Sector size 256K).
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Next I need to take note of how VMWare & Windows have configured my VMNet8 adapter, and configure the router accordingly:
Ethernet adapter VMware Network Adapter VMnet8: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::fcd4:2983:bcba:2d63%19 IPv4 Address. . . . . . . . . . . : 192.168.254.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . :
So Im using 192.168.254.1/24 so let’s setup the router. Â Let’s give it a .10 for the heck of it. Â Also I’m going to turn off DNS name resolution for the moment.
00:00:02: %DEC21140-3-DUPLEX_SPEED: FastEthernet0/0 doesn't support the configured duplexand speed combination 00:00:02: %DEC21140-3-DUPLEX_SPEED: FastEthernet0/0 doesn't support the configured duplexand speed combination 00:00:02: %DEC21140-3-DUPLEX_SPEED: FastEthernet0/0 doesn't support the configured duplexand speed combination 00:00:32: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down 00:00:32: %SYS-5-RESTART: System restarted -- Cisco Internetwork Operating Sys Router> Router>tem Software IOS (tm) 7200 Software (C7200-IS-M), Experimental Version 12.0(20000110:181554) [otroan-thanksgiving-rel 175] Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Thu 20-Jan-00 15:07 by otroan 00:00:33: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down Router>ena Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa0/0 Router(config-if)#ip address 192.168.254.10 255.255.255.0 Router(config-if)#no shut Router(config-if)#exit Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.254.1 00:01:29: %DEC21140-3-DUPLEX_SPEED: FastEthernet0/0 doesn't support the configured duplexand speed combination 00:01:31: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 00:01:32: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config)#no ip domain-lookup Router(config)#exit Router#wr Building configuration... [OK] Router# 00:01:39: %SYS-5-CONFIG_I: Configured from console by console
And if everything is going well, I can now ping from Windows!
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\neozeed>ping 192.168.254.10
Pinging 192.168.254.10 with 32 bytes of data:
Reply from 192.168.254.10: bytes=32 time=54ms TTL=255
Reply from 192.168.254.10: bytes=32 time=31ms TTL=255
Reply from 192.168.254.10: bytes=32 time=31ms TTL=255
Reply from 192.168.254.10: bytes=32 time=31ms TTL=255
Ping statistics for 192.168.254.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 54ms, Average = 36ms
C:\Users\neozeed>
Awesome! Â Pinging from the cisco however fails.
Router#ping 192.168.254.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.254.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5)
This fails as Windows by default has it’s firewall on, which then blocks all incoming traffic. However to see that the ICMP would have succeded, you can look at the arp table, and the .1 address should have been learned:
Router#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 192.168.254.1 0 0050.56c0.0008 ARPA FastEthernet0/0 Internet 192.168.254.10 - ca00.3730.0000 ARPA FastEthernet0/0
We can either diable the firewall, or we can add a rule to permit ICMP. To do either you need to go to the firewall control panel in Windows. Â In this quick example, I’m going to build a rule using the firewall control pannel.
So hit the advanced settings to the left.
Click on the ‘Inbound Rules’, and now we are going to create a new rule.
Select a Custom Rule
Allow ‘All Programs’
Then set the protocol to ICMPv4
Now we can select the scope of the rule, in this case we are going to allow the 192.168.254.0/24 network to pass icmp traffic to us. Â Add it as a source and destination.
In this quick example I’m applying it everywhere.  I suppose a better  setup would be to make sure the VMNet 8 adapter is a ‘Private’ network, and ONLY apply this to the Private domain.
Then give it a name, something like ‘ICMP for VMnet8’
Router#ping 192.168.254.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.254.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 20/30/36 ms
And now we can ping!
Now for the fun, I go ahead and compile my hacked up tacacsd.c, and run it, and then permit it to run on all networks:
And now I can configure the router to use TACACS. Â Keep in mind, once gain that this is *NOT* TACACS+ so this is done a little differently. Â I’m going to simply set TACACS for telnet connections.
Router#config t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#tacacs-server host 192.168.254.1 Router(config)#line vty 0 4 Router(config-line)#login tacacs Router(config-line)#exit Router(config)#enable password 0 cisco Router(config)#exit Router#wr Building configuration... [OK] Router# 00:01:28: %SYS-5-CONFIG_I: Configured from console by console
And now I’m ready to test!
User Access Verification
Username: user
Password:
Router>who
Line User Host(s) Idle Location
0 con 0 idle 00:01:11
* 2 vty 0 user idle 00:00:00 192.168.254.1
Interface User Mode Idle Peer Address
Router>
As you can see I logged in as ‘user’ … and keep in mind my TACACS simply permits anything. As for what tacacsd runs by default:
D:\dynamips\tacacs>tacacsd.exe server starting using port 12544 validation request from 192.168.254.10 query for user (pw->pw_gecos) accepted
It’s not exciting, but as you can see it is attempting to look through the gecos to verify the user, but in this case I just allow anything.  And besides just granting anyone the ability to login, let’s take a look on the wire:
As you can see the username & password go over the wire in plain text. Â Even the response is simple enough to decode:
Needless to say this is something that you would NEVER EVER EVER run in a real network.  Of course a system that sits on telnet is vulnerable anyways, but I suppose a TACACS server that lets anyone log in, makes either a VERY trusting network, or a good honeypot.  Against my better judgement, here is tacacsd_win32.c Naturally it could be easily made to verify passwords against pretty much anything.
This is just me rambling……
Anyways I was looking at some source, and instead of me trying to make heads or tails of it, it’d be more fun to have the machine try to do so, and in this endeavor I thought I’d try cflow.
So let’s try something terribly simply, like the fortune program from Unix 32v:
#include stdio.h
char line[500];
char bline[500];
main()
{
double p;
register char * l;
long t;
FILE *f;
f = fopen("/usr/games/lib/fortunes", "r");
if (f == NULL) {
printf("Memory fault -- core dumped\n");
exit(1);
}
time(&t);
srand(getpid() + (int)((t>>16) + t));
p = 1.;
for(;;) {
l = fgets(line, 500, f);
if(l == NULL)
break;
if(rand() < 2147483648./p)
strcpy(bline, line);
p += 1.;
}
fputs(bline, stdout);
return(0);
}
This is a simple program, to say the least. So running cflow gives me this:
# cflow fortune.c
main() :
fopen()
printf()
exit()
time()
srand()
getpid()
fgets()
rand()
strcpy()
fputs()
Simple, right? Now let’s add in the C pre-processor, and add in the 32v include paths….
# cflow --cpp='/usr/bin/cpp -nostdinc -I../../include -I../../include/sys -I.' -n fortune.c
1 main() :
2 fopen()
3 printf()
4 exit()
5 time()
6 srand()
7 getpid()
8 fgets()
9 rand()
10 strcpy()
11 fputs()
OK same thing, I can’t say I was expecting anything else. But now let’s add in libc:
# cflow --cpp='/usr/bin/cpp -nostdinc -I../../include -I../../include/sys -I.' -n fortune.c ../libc/gen/*.c ../libc/stdio/*.c
1 main() [main () at ../libc/gen/ttytest.c:2]:
2 fopen() [struct _iobuf fopen (file, mode) at ../libc/stdio/fopen.c:5]
3 printf() [printf (fmt, args) at ../libc/stdio/printf.c:3]:
4 exit()
5 time()
6 srand()
7 getpid()
8 fgets() [char *fgets (s, n, iop) at ../libc/stdio/fgets.c:4]
9 rand() [rand () at ../libc/gen/rand.c:9]
10 strcpy()
11 fputs()
12 ttyname() [char *ttyname (f) at ../libc/gen/ttyname.c:17]:
13 isatty() [if (isatty (( & _iob[1]) _file)) at ../libc/stdio/flsbuf.c:24]:
14 gtty() [gtty (fd, ap) at ../libc/gen/stty.c:13]:
15 ioctl()
16 fstat()
17 open()
18 read()
19 strcpy()
20 strcat()
21 stat()
22 close()
Isn’t that cool? Now what does the kernel do?
I went ahead and renamed the main function call in the 32v kernel so that way it doesn’t mesh the main’s but here is the call flow:
# cflow --cpp='/usr/bin/cpp -nostdinc -I../../include -I../../include/sys -I.' -n fortune.c ../libc/gen/*.c ../libc/stdio/*.c ../sys/sys/*.c
1 main() [main () at ../libc/gen/ttytest.c:2]:
2 fopen() [struct _iobuf fopen (file, mode) at ../libc/stdio/fopen.c:5]
3 printf() [printf (fmt, args) at ../libc/stdio/printf.c:3]:
4 exit() [exit (rv) at ../sys/sys/sys1.c:343]:
5 closef()
6 plock()
7 iput()
8 xfree() [xfree () at ../sys/sys/text.c:127]
9 acct() [acct () at ../sys/sys/acct.c:51]:
10 plock()
11 compress()
12 writei()
13 prele()
14 memfree()
15 wakeup()
16 setrun()
17 swtch() [swtch () at ../sys/sys/slp.c:417]:
18 save() [if (save (u u_ssav)) at ../sys/sys/text.c:253]
19 resume()
20 spl6()
21 idle()
22 spl0()
23 srand()
24 getpid() [getpid () at ../sys/sys/sys4.c:120]:
25 fgets() [char *fgets (s, n, iop) at ../libc/stdio/fgets.c:4]
26 rand() [rand () at ../libc/gen/rand.c:9]
27 strcpy()
28 fputs()
29 ttyname() [char *ttyname (f) at ../libc/gen/ttyname.c:17]:
30 isatty() [if (isatty (( & _iob[1]) _file)) at ../libc/stdio/flsbuf.c:24]:
31 gtty() [gtty () at ../sys/sys/tty.c:90]:
32 ioctl() [ioctl () at ../sys/sys/tty.c:102]:
33 getf()
34 fstat() [fstat () at ../sys/sys/sys3.c:18]:
35 getf()
36 stat1()
37 open() [open () at ../sys/sys/sys2.c:80]
38 read() [read () at ../sys/sys/sys2.c:12]:
39 rdwr()
40 strcpy()
41 strcat()
42 stat() [stat () at ../sys/sys/sys3.c:36]:
43 namei() [struct inode namei (func, flag) at ../sys/sys/nami.c:21]
44 uchar() [uchar () at ../sys/sys/nami.c:216]:
45 fubyte()
46 stat1()
47 iput()
48 close() [close () at ../sys/sys/sys2.c:163]
For something more aggressive, check out the QuakeWorld Server, and UAE 0.4
In the off chance you’ve never read it, the book The Cuckoo’s Egg is an incredible read. Â However what is more interesting with the passage of time, and with the revelations of various 3 letter agencies is understanding why they were so slow to react, and why they were ultimately dismayed with Stolls’ work to alert others is that they too were no doubt actively exploiting the same exploits that the Russian sponsored German hackers were using. Â Much in the way that some vendor holes have remained pretty much during the products entire lifespan (Cisco PIX being one…).
This just in, I have just booted Research UNIX v9 on TME’s SUN-3 emulator!
And there we are booted up and logged in.. pardon the disk error..
I’m slightly hesitant about uploading it, as it clearly isn’t right… And this is only the binary component, I have integrated the source tree onto the disk image.  But I haven’t actually tried to compile anything except a simple hello-world program.  You can download it here from sourceforge: SUN3-research_v9.7z If anyone want’s to browse the source, it’s on my CVS browser thing.
So what the heck is Research UNIX v8? Â Or even what is Research UNIX? Â Well a query against utzoo gave me this answer:
>I've seen people that use System V and the like refer to their Unix as >"tenth edition" or "ninth edition", or whatever. I've always seen things as >"System V release n", or whatever. Anyone know the difference between these >different naming schemes ? There are actually three designations: Versions, Editions, and System/Releases. The proper names of the first six Unixen were "The #th Edition". Colloquially, people called them "Version #". The Version Sixth Edition split off several variations, one of which became Version Seven (the Seventh Edition) and sired BSD. From several others, System III was born, and later named System V. Tacked onto this name were Release numbers and yes, Versions. So you will see things line SVr3v2. The Eighth, Ninth, and Tenth Editions seldom left Bell Labs and are also referred to as "Research UNIX". Another system (not UNIX) they are playing with is called "Plan 9". Every so often, a feature, such as STREAMS, finds its way into System V. In some ways, Research UNIX is closer to BSD than to System V.
In short, UNIX began it’s life as a research project. Â Until recently versions 1-6 & 32v were available to the public. Â However the later versions, 8,9,10 were not. Â However thanks to the work over at TUHS it’s available for non commercial use:
Alcatel-Lucent USA Inc has permitted usage saying "will not assert its copyright rights with respect to any non-commercial copying, distribution, performance, display or creation of derivative works of Research Unix®1 Editions 8,9, and 10."
So awesome!
The version of Research v8 is split onto 2 tape images, one for the graphical terminals, and the other for the OS install onto the VAX. Â The distribution is not suitable for any standalone operation, and requires a previously installed 4.1BSD machine, with a second disk to install v8 onto. Â Part of the installation requires you to compile your own kernel. Â I ran into a bit of problems as it’s not a 100% process, but after referencing this guide from David du Colombier, I had the system up and running. Â Naturally reading the installation manual helped a great deal too.
As always there is strange artifacts left in the backup, such as this scoreboard from rogue:
Top Ten Rogueists: Rank Score Name 1 5545 Rog-O-Matic XIII for mjs: quit on level 17. 2 5043 ken: killed on level 23 by a dragon. 3 3858 zip: killed on level 16 by an invisible stalker. 4 3249 Rog-O-Matic VII: killed on level 16 by an invisible stalker. 5 2226 Rog-O-Matic VII: killed on level 13 by a troll. 6 2172 St. Jude: killed on level 13 by a troll. 7 1660 Rog-O-Matic VII: quit on level 11. 8 1632 Chipmunk the Jello: killed on level 10 by a centaur. 9 844 Rog-O-Matic VII: quit on level 5. 10 401 Rog-O-Matic VII: killed on level 4 by a snake.
Does this mean Ken Thompson was an avid rogue fan?  Perhaps.  Naturally I quickly compiled the v100 version of aclock, and had it running.
I’ll have to edit this and more and more as I find out, but I’ve been busy in real life, and of course I know that in addition to v8, there is also v9 & v10 to tackle.
As always, if you want you can download my pre-installed from my site : researchv8.7z
You will have to bring your own copy of the SIMH VAX-11/780 simulator. Â As of 31/3/2017 ther is issues with the github version of SIMH, and you will have issues with the disks on the VAX. Â You need to disable the async with a simple set command in your ini file:
set noasync
And you should now be good to go! Â As always you’ll have to battle the 404 page for the correct link and the username & password.
sorry.
For some reason I had issues for this to automatically pick up building Qemu 2.8.0 on Ubuntu 16.10 (Which is really Debian)…
Anyways, be sure to have the needed dev components installed. Â If you have a FRESH system, natrually you’ll need a lot more.
apt-get install libvdeplug-dev
apt-get install libvde-dev
apt-get install ncurses-dev
editing the file config-host.mak, I found I needed to add the following to turn on ncurses & VDE:
CONFIG_CURSES=y
CONFIG_VDE=y
And lastly add in the following libs to the libs_softmmu, to ensure it’ll link
-lncurses -lvdeplug
And now I’m good!
From my notes on flags needed to run Qemu the old fashioned way:
-net none -device pcnet,mac=00:0a:21:df:df:01,netdev=qemu-lan -netdev vde,id=qemu-lan,sock=/tmp/local/
This will join it to the VDEÂ listening in /tmp/local
Obviously I have something more interesting and more evil going on….