Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

tcp socks proxy support #2105

Closed
totaam opened this issue Jan 15, 2019 · 4 comments
Closed

tcp socks proxy support #2105

totaam opened this issue Jan 15, 2019 · 4 comments
Labels
Milestone

Comments

@totaam
Copy link
Collaborator

totaam commented Jan 15, 2019

Now that we have ssh proxy support (#2041), adding socks proxy support would be much easier.
This may even be auto-configured using libproxy.

See also network tracker ticket: #1590

@totaam
Copy link
Collaborator Author

totaam commented Feb 13, 2019

For win32 support, we may need to revisit #2127#comment:5 and r21648.

@totaam totaam added the v2.4.x label Jan 22, 2021
@totaam totaam added this to the 5.0 milestone Jan 23, 2021
@totaam totaam added network and removed v2.4.x labels Jan 23, 2021
totaam added a commit to Xpra-org/gtk-osx-build that referenced this issue Jul 29, 2022
@totaam totaam mentioned this issue Aug 2, 2022
@totaam
Copy link
Collaborator Author

totaam commented Aug 2, 2022

With the last commit, system proxy settings aren't used by default but it's easy enough to enable:

xpra attach "tcp://hostname:10000/?proxy=auto"

@totaam
Copy link
Collaborator Author

totaam commented Dec 7, 2022

This should be added to the documentation, until then, here is an example of manual proxy configuration (see above for auto):

xpra attach
    "tcp://host1:10000/?proxy-host=host&proxy-port=1080&proxy-rdns=no&proxy-username=username&proxy-password=password"

There are default values for all attributes except proxy-host:

xpra/xpra/scripts/main.py

Lines 920 to 925 in 811ae11

host = to.strget("proxy-host")
port = to.intget("proxy-port", 1080)
rdns = to.boolget("proxy-rdns", True)
username = options.get("proxy-username")
password = options.get("proxy-password")
timeout = options.get("timeout", 20)

@totaam
Copy link
Collaborator Author

totaam commented Jul 5, 2024

If we ever want to move away from PySocks (no commits in 5 years.. missing SSL support, etc), there aren't many good options out there.
socks5's last commit was 8 years ago!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant