Outline Bridge Server is a Docker Compose for running V2Ray as bridge (relay) server for Outline (a shadowsocks proxy by Google Jigsaw). It enables users to connect to Outline servers in restricted networks where direct connections are impossible.
Outline is a set of proxy tools developed by Google Jigsaw based on the shadowsocks protocol. It includes these tools:
The original Outline proxy flow:
Outline Client <-> Outline Server <-> (Internet)
(User Network) <-> (Upstream Server) <-> (Internet)
Read the Outline official documentation to set up an Outline server.
V2Ray is a proxy tool that supports multiple protocols, including the dokodemo-door
protocol.
This protocol only forwards incoming traffic (TCP and UDP) from a specific port to a destination port, without changing the data.
A bridge (relay) server acts as an intermediary, accessible to users from restricted networks and connected to upstream servers. It's an appropriate place for running V2Ray to relay incoming user traffic to Outline servers.
It changes the Outline flow as below.
(User Network) <-> (Bridge Server) <-> (Upstream Server) <-> (Internet)
Outline Client <-> V2Ray Proxy <-> Outline Server <-> (Internet)
To set up a bridge (relay) server using V2Ray, follow these steps:
./setup.py
. It prompts the following items:
Number of Outline servers
: Please provide the number of servers, typically just 1
Outline server i host
: Find it in $\color{green}{\textsf{Outline Manager}}$ > Settings
> Hostname
Outline server i port
: Find it in $\color{green}{\textsf{Outline Manager}}$ > Settings
> Port for new access keys
ufw
, add the port to the whitelist.docker-compose up -d
or docker compose up -d
.Settings
> Hostname
field to the bridge server IP address.