Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

💡 [REQUEST] - Master-Node Connection Through SOCKS proxy #7

Open
AmirReza2012 opened this issue Feb 18, 2025 · 4 comments
Open

💡 [REQUEST] - Master-Node Connection Through SOCKS proxy #7

AmirReza2012 opened this issue Feb 18, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request low-priority question Further information is requested

Comments

@AmirReza2012
Copy link

Reference Issues

No response

Summary

In case somebody does not want the communications between the master and the nodes to happen directly and would prefer to use a proxy (eg. to pass the requests through warp) it would be a good idea to add a "Use proxy to connect" option for each node.

Basic Example

An optional "socks5://user:password@host:port" setting for each node.

Drawbacks

The proxy adds a potential point of failure

Unresolved questions

No response

@AmirReza2012 AmirReza2012 added the question Further information is requested label Feb 18, 2025
@kastov
Copy link
Contributor

kastov commented Feb 19, 2025

Firstly, thanks a lot of your contribution.

It is really interesting thing, but i'm aware that supporting proxy can create delays with master → node communications?

There are a lot of background tasks, which relies on "connections".

Some of tasks, for example, Node Health Check, doing its work every 10 seconds.

@AmirReza2012
Copy link
Author

AmirReza2012 commented Feb 19, 2025

Firstly, thanks a lot of your contribution.

It is really interesting thing, but i'm aware that supporting proxy can create delays with master → node communications?

There are a lot of background tasks, which relies on "connections".

Some of tasks, for example, Node Health Check, doing its work every 10 seconds.

Thank you for your efforts!

That is true but in Iran for example I think the communication between a domestic vps and a server located in another country might be suspicious to the gfw (and it does very often result in the foreign IP being blocked especially if the connections are initiated from domestic to foreigner) and using a fast and stable proxy connection shouldn't result in anything more than a few extra ms of delay.
I just thought this might be a useful feature for those who don't want to directly open communication channels from domestic to foreign IP addresses.

@kutovoys
Copy link

Firstly, thanks a lot of your contribution.
It is really interesting thing, but i'm aware that supporting proxy can create delays with master → node communications?
There are a lot of background tasks, which relies on "connections".
Some of tasks, for example, Node Health Check, doing its work every 10 seconds.

Thank you for your efforts!

That is true but in Iran for example I think the communication between a domestic vps and a server located in another country might be suspicious to the gfw (and it does very often result in the foreign IP being blocked especially if the connections are initiated from domestic to foreigner) and using a fast and stable proxy connection shouldn't result in anything more than a few extra ms of delay. I just thought this might be a useful feature for those who don't want to directly open communication channels from domestic to foreign IP addresses.

Have you considered using TailScale or similar services to organize connectivity between nodes through their internal network?

@AmirReza2012
Copy link
Author

Firstly, thanks a lot of your contribution.
It is really interesting thing, but i'm aware that supporting proxy can create delays with master → node communications?
There are a lot of background tasks, which relies on "connections".
Some of tasks, for example, Node Health Check, doing its work every 10 seconds.

Thank you for your efforts!
That is true but in Iran for example I think the communication between a domestic vps and a server located in another country might be suspicious to the gfw (and it does very often result in the foreign IP being blocked especially if the connections are initiated from domestic to foreigner) and using a fast and stable proxy connection shouldn't result in anything more than a few extra ms of delay. I just thought this might be a useful feature for those who don't want to directly open communication channels from domestic to foreign IP addresses.

Have you considered using TailScale or similar services to organize connectivity between nodes through their internal network?

When dealing with domestic servers inside firewall-restricted countries it is very likely that a solution like TailScale will fail to connect in the first place.

Also you would probably want to conceal the true IP address of your "master" server and that is easily achievable by combining a socks proxy and a proxy outbound from xray-core.

@kastov kastov self-assigned this Feb 24, 2025
@kastov kastov added enhancement New feature or request low-priority labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants