I'd start with a simple 'client-connect' script which does little more than
#!/bin/bash
echo "[$@]"
env
add this to your (unix/linux based) server config
script-security 2
client-connect <full-path-to-up-script>
and then connect a "workerbee.crt" machine and a "boss.crt" machine. Check the environment variables $common_name and env vars starting with $untrusted ; from those you can make a match between "workerbee.crt" (only allowed from $untrusted_remote_ip = "...."0 and "boss.crt" (allowed from all $untrusted_remote_ip).