Skip to content

[Feature] webtunnel bridge using Xray to bypass restriction #91

@fish4terrisa-MSDSM

Description

@fish4terrisa-MSDSM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions