fast-nat is an OSI layer 3 Network Address Table built for speed.
fast-nat
While this library can be used on its own just fine, it was designed for use in protomask.
protomask