Files
nfsclient_win95_win98/README.md

3.6 KiB

RetroNFS95

RetroNFS95 is a Windows 95/98 oriented NFSv3 client prototype written in portable C++98. The first deliverable is a real user-mode NFS client core that uses the operating system TCP/IP stack through Winsock instead of shipping a separate IP stack.

This is intentional: Windows 95/98 already has a TCP/IP stack, and replacing it would make the system less stable and much harder to secure. The project keeps the NFS/RPC logic separate so a drive-mapping redirector can be added later.

What Works In This Tree

  • RPC over TCP with ONC record marking
  • XDR encode/decode helpers
  • Portmapper v2 GETPORT
  • MOUNT v3 MNT
  • NFS v3 LOOKUP, READDIR, and READ
  • Command-line client:
    • list an exported directory
    • fetch a file from an export
  • Win95/98 integration source tree:
    • provider/ Network Provider DLL entry points for MPR/WNet
    • mounter/ mapping manager application and startup remapper
    • vxd/ Windows 95/98 VxD control layer with map/query/enum/status IOCTLs
    • install/ registry/INF templates
  • Build artifacts:
    • dist/RETROVXD.VXD as an LE VxD 386 image for Windows 4.10
    • dist/RETRONP.DLL
    • dist/RetroMap95.exe
    • dist/retronfs95.exe

Target Platforms

  • Windows 95 OSR2 / Windows 98 / Windows 98 SE with Microsoft TCP/IP installed
  • Windows XP also builds as a normal Win32 console program
  • Linux builds are useful for development tests only

Non-Goals For Version 0

  • A custom IP stack
  • NFSv4/Kerberos
  • A production-ready IFSMgr file system redirector

The project now has the real Win9x layers laid out. The VxD builds, owns the drive mapping table, is reachable through DeviceIoControl, and has a read-only RetroIFS_Dispatch scaffold plus build-selectable real IFSMgr registration for open/read/write/close/find and disk-info routing. It still needs live Win95/98 register/deregister validation and NFS handle binding before it can mount a live drive letter for normal file I/O.

Build

Old MinGW / Win95-Friendly

Use a MinGW version that can still target old Win32 systems.

mingw32-make -f Makefile.mingw

Output:

bin\retronfs95.exe

Linux Development Build

make -f Makefile.posix

Usage

List the root of an export:

retronfs95.exe ls 192.168.1.10 /srv/retro /

Fetch a file:

retronfs95.exe get 192.168.1.10 /srv/retro /README.TXT README.TXT

Paths are NFS paths inside the mounted export. Use / separators.

Win95/98 Mapping Concept

The mapping path is intentionally similar to the SMB client:

RetroMap95.exe /map R: \\RetroNFS\server\srv_retro
        |
MPR/WNet -> RETRONP.DLL
        |
DeviceIoControl -> RETROVXD.VXD
        |
NFSv3 core -> Winsock TCP/IP

Persistent mappings are stored in:

%WINDIR%\RETRO95\mappings.ini

and remapped at startup through:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run\RetroNFS95

Inspect the loaded VxD state:

RetroMap95.exe /status
RetroMap95.exe /status R:

Security Architecture

For IT security, do not expose old NFS directly to the whole network. Use a small gateway:

Win95/98 PC  ->  Retro gateway  ->  modern storage
NFSv3/TCP        firewall/NAT       SMB3/SFTP/ZFS/NAS/etc.

Recommended controls:

  • allow only the legacy PC IP/MAC to reach NFS on the gateway
  • export a dedicated low-privilege directory
  • use read-only exports where possible
  • keep NFSv3 confined to the legacy segment or host firewall rule
  • synchronize with modern storage using a separate service account

Roadmap To Drive Mapping

The next deliverable is a Windows 95/98 network provider and redirector layer. See docs/DRIVE_MAPPING.md.