bridge icon indicating copy to clipboard operation
bridge copied to clipboard

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

Open avid0 opened this issue 1 year ago • 1 comments

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)

avid0 avatar Mar 15 '24 18:03 avid0

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

wzshiming avatar Mar 16 '24 13:03 wzshiming