Freedom: Add maxSplit fragment option; Add applyTo noises option#4998
Merged
Freedom: Add maxSplit fragment option; Add applyTo noises option#4998
maxSplit fragment option; Add applyTo noises option#4998Conversation
f307b04 to
4907db6
Compare
maxSplit fragment option, add applyTo noise optionmaxSplit fragment option; Add applyTo noises option
zxlhhyccc
pushed a commit
to zxlhhyccc/bf-package-master
that referenced
this pull request
Aug 8, 2025
This was referenced Aug 31, 2025
2 tasks
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
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.
1. Fragment option
maxSplitin fragment, the size of each received packet is uncontrollable, so if a packet is small, the number of splits is low, and as a result, the delay and number of send-packets are also low.
but if a packet is large, we will have a lot of delays and a lot of split-packets will be sent, This is because we have no control over the number of splits for large packets.
for example in this config:
if request is curl-tls-client-hello, request size is 517 bytes, so we have 517 split-packets and 517ms delay, and this is acceptable, but if request is chrome-tls-client-hello or other unknown protocol, the request size is big, so the delay and number of send-packets will be too much.
so I add
maxSplitto control number of splits. also for bypassing GFW, it is enough that the number of splits is more than 100, for example.for above config, for example, if request size is 100 bytes, and we set
maxSplitto 50, we send 49 1-bytes-packet with one 51-bytes-packet.so the number of splits will never exceed
maxSplit(after the number of splits reachesmaxSplit, the rest of the packet-bytes is sent without fragmentation)////////////////////////////////////////////////////
2. Noise option
applyTochrome-quic-fingerprint depends on the type of destination IP.(unlike tcp-tls, which is independent of IP type)
chrome initial-quic-packet-size is 1250 bytes when sent to an IPv4 address, and it is 1230 bytes when sent to an IPv6 address.(this is because of concerns about MTU)
Although we don't have fake-quic-noise yet, but users can manually define noises, and for different types of IP, they should set the appropriate noises.
we cannot set two different outbounds, one for IPv4 noises, and one for IPv6 noises, because target address can be a domain, and the IP-type is only determined after
dial, so we cannot route base on IP-type, as a result this option is necessary.for example for:
we send "a", "b" when remote address is IPv4, and send "a", "c" when remote address is IPv6.
///
maxSplit: Int32RangeapplyTo: string --- "ip"(default) / "ipv4" / "ipv6"