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

Multiple proxy fails "first path segment in URL cannot contain colon" #13

Open
avid0 opened this issue Mar 15, 2024 · 1 comment
Open

Comments

@avid0
Copy link

avid0 commented Mar 15, 2024

When i am using single proxy its work perfectly

bridge -b :123 -p tcp://127.0.0.1:2080

but with multiple tcp proxy

 bridge -b :123 -p tcp://127.0.0.1:2080 -p tcp://127.0.0.1:2070
2024/03/15 21:28:28 INFO DIAL "tcp://127.0.0.1:2080" <- "tcp://127.0.0.1:2070" <- LOCAL <-
 "tcp://:123" LISTEN
 chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Probe: LB:[tcp://127.0.0.1:2080]} {Probe: LB:[
tcp://127.0.0.1:2070]}] IdleTimeout:0s}"
2024/03/15 21:28:28 ERROR BridgeWithConfig chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Prob
e: LB:[tcp://127.0.0.1:2080]} {Probe: LB:[tcp://127.0.0.1:2070]}] IdleTimeout:0s}" err="la
st scheme \"tcp\" not supported: invalid scheme"

or multiple socks5 proxy

bridge -b :123 -p socks://127.0.0.1:2080 -p socks5://127.0.0.1:2070
2024/03/15 21:29:41 INFO DIAL "socks://127.0.0.1:2080" <- "socks5://127.0.0.1:2070" <- LOC
AL <- "tcp://:123" LISTEN
 chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Probe: LB:[socks://127.0.0.1:2080]} {Probe: LB
:[socks5://127.0.0.1:2070]}] IdleTimeout:0s}"
2024/03/15 21:29:41 INFO Connect chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Probe: LB:[soc
ks://127.0.0.1:2080]} {Probe: LB:[socks5://127.0.0.1:2070]}] IdleTimeout:0s}" remote_addre
ss=127.0.0.1:26402
2024/03/15 21:29:41 ERROR Step chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Probe: LB:[socks
://127.0.0.1:2080]} {Probe: LB:[socks5://127.0.0.1:2070]}] IdleTimeout:0s}" err="unsupport
ed network \"socks\""
...

without proxy schema (tcp):

bridge -b :123 -p 127.0.0.1:2080 -p 127.0.0.1:2070
2024/03/15 21:30:52 INFO DIAL "tcp://127.0.0.1:2080" <- "tcp://127.0.0.1:2070" <- LOCAL <-
 "tcp://:123" LISTEN
 chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Probe: LB:[127.0.0.1:2080]} {Probe: LB:[127.0.
0.1:2070]}] IdleTimeout:0s}"
2024/03/15 21:30:52 ERROR BridgeWithConfig chains="{Bind:[{Probe: LB:[:123]}] Proxy:[{Prob
e: LB:[127.0.0.1:2080]} {Probe: LB:[127.0.0.1:2070]}] IdleTimeout:0s}" err="parse \"127.0.
0.1:2070\": first path segment in URL cannot contain colon"

Am i wrong with commands?
(using windows 386 bin)

@wzshiming
Copy link
Owner

wzshiming commented Mar 16, 2024

Not sure exactly what you're trying to do, but from your description, the 127.0.0.1:2080 is the target, and the 127.0.0.1:2070 is a proxy.

Listening the port 132, forwarded to 127.0.0.1:2080 through socks5://127.0.0.1:2070 proxy

bridge -b :123 -p 127.0.0.1:2080 -p socks5://127.0.0.1:2070

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

No branches or pull requests

2 participants