natapp外网连接 Second,build up bypy Third, use the script below to upload your port to BaiduNetDisk

1.download it at https://natapp.cn/
2.follow https://natapp.cn/article/supervisor use supervisor to run natapp with stdout to file

Second,build up bypy

follow https://github.com/houtianze/bypy to install bypy

Third, use the script below to upload your port to BaiduNetDisk

1
2
3
4
5
6
7
LOGFILE=/home/pi/natapp/natapp_log.txt
SAVEFILE=/home/pi/natapp/login.txt
cat $LOGFILE | grep "server.natappfree.cc:[0-9]{5}"| sed 's/"/n/g' | sed 's/ /n/g' | grep "server.natappfree.cc" > $SAVEFILE
python -m bypy upload /home/pi/natapp/login.txt /natapp -v -d
python -m bypy upload /home/pi/natapp/natapp_log.txt /natapp -v -d