MikeWang000000 / Natter

Expose your TCP/UDP port behind full-cone NAT to the Internet.
GNU General Public License v3.0
1.63k stars 137 forks source link

feat: combine cloudflare script and introduce POT port record method #106

Open jdjingdian opened 3 months ago

jdjingdian commented 3 months ago

结合了现有的 cf-redir.py 以及 cf-srv.py 脚本,并引入了一个我称作POT的端口记录方式,灵感来自natmap项目里的ssh连接方式。

示例的连接SSH的脚本也提供了,这对于一些在家搭建Git仓库的朋友们可能有用。

POT将端口信息整合保存到DNS的TXT记录中,一个TXT中就可以存储多个服务的端口信息,使用的时候通过自己设置的服务关键字查询即可。

Combined the cf-redir.py and cf-srv.py script, and introduce a new method to record services port with TXT Record, I call it POT ( Port over TXT) inspired by natmap.

Demonstration of using POT to connect SSH services also provided. It may be helpful for who setup private git repos.

POT saves public port information into the DNS TXT record. One TXT can store info for multiple services. When using it, you can query it using the service keyword you set.