Skip to content

cuprated: Generic SOCKS5 proxy support + ClearNet over Daemon#549

Merged
Boog900 merged 4 commits intomainfrom
socks5
Feb 10, 2026
Merged

cuprated: Generic SOCKS5 proxy support + ClearNet over Daemon#549
Boog900 merged 4 commits intomainfrom
socks5

Conversation

@SyntheticBird45
Copy link
Member

@SyntheticBird45 SyntheticBird45 commented Sep 10, 2025

What

Add support to pass P2P traffic to a specific SOCKS5 proxy. Authentication is supported. This is also used to implement ClearNet over Daemon tor anonymization of clearnet traffic.

Follows: #509

Changelog

In cuprate-p2p-transport:

  • Added new socks.rs file containing Socks that impl Transport<ClearNet>. As well as SocksClientConfig (socks5 proxy settings).

In cuprated:

  • Added TryFrom<ProxySettings> for SocksClientConfig to parse socks5 URL in user configuration. The urls are in the form of: socks5://username:password@host:port.
  • new socks_transport_config and transport_clearnet_daemon_config helpers.
  • Modified initialize_zones_p2p accordingly.

@github-actions github-actions bot added A-p2p Area: Related to P2P. A-binaries Area: Related to binaries. labels Sep 10, 2025
@SyntheticBird45 SyntheticBird45 marked this pull request as ready for review September 11, 2025 20:01
@SyntheticBird45 SyntheticBird45 changed the title Generic SOCKS5 proxy support + ClearNet over Daemon cuprated: Generic SOCKS5 proxy support + ClearNet over Daemon Sep 11, 2025
@SyntheticBird45 SyntheticBird45 marked this pull request as draft September 11, 2025 20:09
@SyntheticBird45 SyntheticBird45 marked this pull request as ready for review September 11, 2025 22:30
Copy link
Member

@Boog900 Boog900 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like how we don't parse the url in the config and leave it as a string but changing that is harder than it seems

@Boog900 Boog900 merged commit d36c975 into main Feb 10, 2026
12 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-binaries Area: Related to binaries. A-p2p Area: Related to P2P.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants