You might want your stunnels to be running all the time - and to start automatically when you log in. Here’s how:

  • get your stunnel working. You’ll need to fix your certs, choose the correct ports, and all that yourself.
  • write a script (/Users/you/ that’s just like this:


    /opt/local/bin/stunnel /opt/local/etc/stunnel/stunnel.conf

  • in a terminal window write this:

    sudo defaults write LoginHook /Users/you/

Now you’re all set. Next time you login, the LoginHook will fire, running your “” command which in turn calls (with full paths) the stunnel config you’ve got set up. has more info about creating LoginHooks

Wed 2009-07-22

work unix ops mac