Skip to content

outbound/ssh: add cipher, MAC, and key exchange configuration#4066

Open
rojer wants to merge 54 commits intoSagerNet:testingfrom
rojer:ssh_ciphers
Open

outbound/ssh: add cipher, MAC, and key exchange configuration#4066
rojer wants to merge 54 commits intoSagerNet:testingfrom
rojer:ssh_ciphers

Conversation

@rojer
Copy link
Copy Markdown

@rojer rojer commented Apr 21, 2026

Ability to specify client's cipher preference is useful. In particular, often aes128-gcm is more efficient but chacha-poly1305 is selected instead.

@nekohasekai nekohasekai force-pushed the testing branch 3 times, most recently from 99e1ffe to 8130928 Compare April 22, 2026 05:51
DNS rules referencing rule-sets that contain only ip_cidr predicates
silently stopped matching when legacy DNS mode was disabled, because the
IP-CIDR branch cannot match against an in-flight DNS query. The existing
validation intentionally let every rule_set through on the premise that
mixed sets still work via their non-IP branches, which is only true when
such a branch exists. Track whether a rule-set carries any non-IP-CIDR
predicate and reject pure-IP references the same way bare ip_cidr fields
are already rejected.
Serialize probe rounds in startProber to eliminate unbounded fan-out of
fire-and-forget probe goroutines (up to 100/sec per direction), and close
HTTP/3 transports via transport.Close() in addition to CloseIdleConnections.
Ability to specify client's cipher preference is useful.
In particular, often `aes128-gcm` is more efficient but
`chacha-poly1305` is selected instead.
@rojer
Copy link
Copy Markdown
Author

rojer commented Apr 25, 2026

@nekohasekai this is a small change that shouldn't be controversial, any chance it can be merged before 0.14?

@nekohasekai nekohasekai force-pushed the testing branch 5 times, most recently from 1b0e6c5 to abedea4 Compare April 28, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants