Installing stunnel on your Mac OS X machine

NOTE: This is not necessary for department supported systems

Install Fink

We recommend using Fink to manage ports of traditional unix programs, such as stunnel, on Mac OS X. Fink is run via the command-line in a terminal window, once installed. You may need to run sudo -i first in order to execute these commands from a privileged shell.

  1. Download Fink from...

    http://www.finkproject.org/download/index.php?phpLang=en

    Choose the "Fink Binary Installer" option appropriate for your system.

  2. Because stunnel is an "unstable" package it will not show up in the available package list after the default install of Fink.

    Run fink configure in a terminal window. You will be asked whether you want to turn the unstable trees on. (answer Y to this question). Enable rsync or cvs updating if possible. The default settings should be adequate for most other configuration options.

    You will need to run fink selfupdate; fink index; fink scanpackages after configuration. Note: you must have either rsync or cvs updating turned on to get new package descriptions.

Install and run stunnel

  1. Install the stunnel package with fink install stunnel4, then mkdir -p /sw/etc/stunnel /sw/var/run/stunnel to create directories it will need when it runs.

  2. Create the stunnel.conf file by editing /sw/etc/stunnel/stunnel.conf in your text editor of choice. The file should contain the following:

    [smb]
    accept = 139
    connect=samba.cs.umd.edu:1445
    client = yes
    
  3. Run /sw/bin/stunnel to start up the stunnel daemon. It will appear to exit, but should be running in the background- if you're not sure, check the output of the ps command and look for the stunnel command you just run.