Repository navigation
feat: add sudoku protocol - #3658
saba-futai wants to merge 91 commits into
Conversation
We mistakenly believed that `libresolv`'s `search` function worked correctly in NetworkExtension, but it seems only `getaddrinfo` does. This commit changes the behavior of the `local` DNS server in NetworkExtension to prefer DHCP, falling back to `getaddrinfo` if DHCP servers are unavailable. It's worth noting that `prefer_go` does not disable DHCP since it respects Dial Fields, but `getaddrinfo` does the opposite. The new behavior only applies to NetworkExtension, not to all scenarios (primarily command-line binaries) as it did previously. In addition, this commit also improves the DHCP DNS server to use the same robust query logic as `local`.
We do not have the `com.apple.developer.networking.multicast` entitlement and are unable to obtain it for non-technical reasons.
7a04aff to
9c5a15a
Compare
17272e7 to
da8a649
Compare
e6856a6 to
be2635b
Compare
|
Similar to mieru's question: What are its real-world applications? If anti-censorship is its only feature, you need to prove it's truly effective. |
|
@nekohasekai Thanks for the follow-up (and +1 to the “what’s the real-world value” question). Real‑world application (concrete, not theoretical): This isn’t a “general purpose faster/better TLS replacement”; it targets a different threat model:
You can see this is used as an actual end‑user proxy stack (not just a paper protocol):
“If anti‑censorship is the only feature, prove it’s truly effective.” The design rationale is explicitly grounded in the published GFW measurements from the GFW Report / USENIX Security paper:
The inferred exemption rules in that paper include (paraphrased):
Now map that 1:1 to Sudoku’s documented behavior in its README:
Active probing resistance (not just passive “looks like plaintext”):
Why this PR is meaningful in sing-box specifically: |
|
This is the effect you're claiming (and it looks like it's AI-generated), you need to prove it. |
|
As far as I know, those so-called exemption rules expired a few months after the paper was published. |
|
Yes, I wrote the comment in Chinese and had AI translate them into English and polish them to sound polite. My protocol considers that most existing protocols are TLS-oriented, so I want to create a secure, non-random, non-TLS protocol. If you insist that I prove this will not be blocked by the GFW, I honestly can't do that. However, under the current GFW rules (which still operate as a black box),for sudoku, there have been no reported cases of blocking after long-term use by multiple people. Perhaps my greatest confidence lies in the obfuscation demonstrated in the mathematical aspects of the core code. Therefore, I will not give up on promoting this protocol Or are you saying that you need me to write a paper that thoroughly explains the underlying mathematical principles of this protocol? (Although anyone can analyze the principles and see that its feasibility is valid, there just aren't that many people willing to review the code to understand the underlying operational logic.) |
|
Anyone can use AI to generate protocols that theoretically disrupt some kind of analysis. Perhaps you could try sending a PR to Xray; they also like creating protocols without evidence of their validity. |
|
You misunderstood my meaning. I only said that the comment was polished by AI; the agreement is a product created entirely from scratch by my own human brain. some prove some related math calc: |
|
To the best of my knowledge, the low-entropy censorship mitigation methods described in the paper have failed. In other words, there is currently no evidence that any low-entropy protocol can function effectively in a censorship environment. This is even worse than unproven TLS-in-TLS mitigation schemes, because while TLS-in-TLS might work, your protocol may be useless anywhere else. |
|
Perhaps I can predict: the Sudoku protocol may not be a good protocol, nor has it been tested by history. However, some of its ideas, such as byte appearance restructuring and non-random number mapping, may be seen reflected in subsequent 'good protocols' |
GFW的供应商积至公司的TSG天狗安全网关中采用了Qosmos ixEngine作为第三方插件。
可见并非"useless anywhere else",如此评价过于武断。 |
|
Thank you for helping me speak. I was just about to ask 世界 how he can prove that the protocols already in the sing-box are proven. |
A basic description of Sudoku has already been provided in the README and documentation of the sudoku repository.
Its primary feature is the ability to customize various low-entropy byte formats, with the option to map them to printable ASCII characters (both uppercase and lowercase). It allows for the insertion of arbitrary redundant bytes at random positions. Specifically, these are "spam" bytes regarding Sudoku (meaning they do not constitute a valid Sudoku grid or compromise the uniqueness of the solution), but they serve to alter the packet length distribution.
Since the GFW tends to be lenient towards plaintext information, these low-entropy, printable bytes are typically allowed to pass. Furthermore, for enhanced camouflage, Sudoku introduces
httpmaskto incorporate various HTTP characteristics. As a result, Wireshark identifies the packets directly as HTTP traffic, which further facilitates passage through the GFW.