-
Notifications
You must be signed in to change notification settings - Fork 12
Description
why
In Some areas or network environment urnetwork can be blocked, and thus users need to use a bridge to connect to the network.
Tor has a similiar feature called bridge, implement using obfs4 or websocket. However a faster solution is possible if we use Xray
Basically Xray is like a proxy server, if we implement urnetwork as a outbound of Xray, then users can connect to urnetwork through Xray's XHTTP.
The doc of Xray's XHTTP is at here. The config doc is at here, development doc is at here
Xray is also written in go, so it should be easier than implement a new kind of bridge using websocket or other things.
It offers the possibility to connect to urnetwork through normal looking https traffic, make it much harder to be blocked, also make it possible for the people in network restricted areas to connect to urnetwork. (It'll also prevent the network provider from identify and decrypt urnetwork traffic)
(If the patches made to the upstream, it'll help more people acknowledge the existence of urnetwork)
Current workaround
Currently even without modification, it's still possible to use Xray as the bridge of urnetwork, using urnetwork proxy/socks client(with a performance loss, and may have some problem hidden.)
Assume that the socks server is listening on the 8080 port:
You can set the Xray outbound as
{
"protocol": "socks",
"tag": "urnetwork",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 8080
}
]
}
},
And config other sections according the Xray docs. It's confirmed to be working but with a performance penalty.