Natd

natd is a userland Network Address Translation daemon. It works with IPDIVERT sockets and hence a divert rule must be set up in the ipfw firewall rules to make this work. Basically it reads from the socket, translates anything it receives and writes it back into where it came from, a FIFO operation.