libnatpmp

Library for NAT port mapping using the NAT-PMP protocol

brewmacoslinux
Try with needOr install directly
Source

About

NAT port mapping protocol library

Commands

natpmpc

Examples

Map external port 8080 to internal port 8080 using UDP$ natpmpc -a 0 8080 UDP 3600
Map external port 9000 to internal port 22 using TCP with 1 hour lease$ natpmpc -a 0 9000 TCP 3600 22
Display gateway status and external IP address$ natpmpc -l