After used some mature NAT softwares such as frp 、ngroc and so on , i found it too complex and has some limited conditions like more than one ports ares required. Also i dont like long connections so i want to develop a simple NAT system that suitable for http servers only , which is enough for me .
To make your local services be public temporarily, u can have a very simple vps hosted on any cloud platform, only normal http/https port (80 or 443) is required.
so let's see the design:
I've implemented it using golang and it works pretty well on my own business. If you guys have some trouble to implement it , welcome to leave comments below , like to exchange ideas with u.