feat: combine cloudflare script and introduce POT port record method#106
Open
jdjingdian wants to merge 1 commit intoMikeWang000000:devfrom
Open
feat: combine cloudflare script and introduce POT port record method#106jdjingdian wants to merge 1 commit intoMikeWang000000:devfrom
jdjingdian wants to merge 1 commit intoMikeWang000000:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
结合了现有的
cf-redir.py以及cf-srv.py脚本,并引入了一个我称作POT的端口记录方式,灵感来自natmap项目里的ssh连接方式。示例的连接SSH的脚本也提供了,这对于一些在家搭建Git仓库的朋友们可能有用。
POT将端口信息整合保存到DNS的TXT记录中,一个TXT中就可以存储多个服务的端口信息,使用的时候通过自己设置的服务关键字查询即可。
Combined the
cf-redir.pyandcf-srv.pyscript, 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.