安装 miniupnpc 1) sudo apt-get install miniupnpc 2) upnpc -l (测试) 3) upnpc -e 'SSH 8989' -r 8989 TCP (添加TCP) 4) upnpc -e 'SSH 8989' -r 8989 UDP (添加UDP)