This is an open source port mapper written in java nio no-blocking socket model. Open Port Mapper allows multiple ports mappings, and it provides the functionality of specifying allow list and deny list.
SOCKS Server and Library for Java. Support for versions 4 and 5 of SOCKS protocol. Designed to be easily expandable to support different encryption/authentication/authorization methods. Sample server and client are available.