A NAT library (forked from code.google.com/p/nat/)