From http://www.pgregg.com/projects/dummyidentd/:

DummyIdentd is a simple dummy ident daemon written in perl. It is designed to be secure and to give out no useful information. It would normally be run on company firewalls, gateways or natd hosts where clients are connecting to services which require identd or are slowed down by lack of identd (while a server's lookup timeouts).

DummyIdent can be run from identd, though I do not recommend this, (nor do I recommend running identd on a gateway/firewall). Instead you should run it under two programs by Dan Bernstein. One to accept the tcp connection, and the other to securely force the UID to a non-priveliged user *before* the perl program gets run.

Prerequisites:
ucspi-tcp is available in the ports net directory.

Installing ucspi-tcp (from http://cr.yp.to/ucspi-tcp/install.html):
  1. Download ucspi-tcp.
  2. Unpack the ucspi-tcp package:
    tar -xzvf ucspi-tcp-0.88.tar
    cd ucspi-tcp-0.88
  3. Compile the ucspi-tcp programs:
    make
  4. As root, install the ucspi-tcp programs under /usr/local:
    make setup check
  5. To report success:
    ( echo 'First M. Last'; cat `cat SYSDEPS` ) \ | mail djb-sysdeps@cr.yp.to

    Replace First M. Last with your name.
Installing daemontools (from http://cr.yp.to/daemontools/install.html):
  1. Create a /package directory:
    mkdir -p /package
    chmod 1755 /package
    cd /package
  2. Download daemontools into /package. Unpack the daemontools package:
    tar -xzvf daemontools-0.76.tar.gz
    cd admin/daemontools-0.76
  3. Compile and set up the daemontools programs:
    package/install
  4. On BSD systems, reboot to start svscan.
  5. To report success:
    mail djb-sysdeps@cr.yp.to < /package/admin/daemontools/compile/sysdeps
Installing DummyIdentd:
  1. Download DummyIdentd and rename it with a .pl extension.
    mv dummyidentd.txt dummyidentd.pl
  2. Ensure that the first line of the program matches the location of your perl executable.
  3. Copy the file to /usr/local/sbin
  4. Make it executable
    chmod a+rx /usr/local/sbin/dummyidentd.pl
  5. In your startup files e.g. /etc/rc.local place the following:
    /usr/local/bin/tcpserver 0 113 /usr/local/bin/setuidgid nobody /usr/local/sbin/dummyidentd.pl &
  6. You can also manually run the command to start it running.