Skip to content

miladrahimi/outline-bridge-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Outline Bridge Server

This repository contains a Docker Compose file designed to run V2Ray as a bridge (relay) server for the Outline (a shadowsocks proxy by Google Jigsaw). The primary goal is to enhance the functionality of the Outline in highly restricted networks where direct connection from users to Outline servers is not possible.

Documentation

What's Outline?

Outline is a set of proxy tools developed by Google Jigsaw based on the shadowsocks protocol. It includes:

  • Outline Manager: A desktop app for setting up servers, managing users, and tracking used traffic.
  • Outline Server: A shadowsocks server that will be installed on the servers by the Outline Manager app.
  • Outline Client: A user-friendly and cross-platform app for users.

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.

What's V2Ray?

V2Ray is a proxy tool that supports multiple protocols, including the dokodemo-door protocol. This specific protocol forwards incoming traffic (TCP and UDP) from a specified port to a designated destination port.

What's a Bridge Server?

A bridge (relay) server connects clients to Outline servers by forwarding their traffic.

It changes the Outline flow as below.

Outline Client <->   V2Ray Proxy   <->  Outline Server   <-> (Internet)
(User Network) <-> (Bridge Server) <-> (Upstream Server) <-> (Internet)

Setup Bridge Server using V2Ray

To set up a bridge (relay) server using V2Ray, follow these steps:

  1. Install Docker and Docker-compose on the bridge (relay) server.
  2. Clone this repository into the bridge server.
  3. Run ./setup.py. It prompts the following items:
    1. Number of Outline servers: Please provide the number of servers, typically just 1
    2. Outline server i host: Find it in $\color{green}{\textsf{Outline Manager}}$ > Settings > Hostname
    3. Outline server i port: Find it in $\color{green}{\textsf{Outline Manager}}$ > Settings > Port for new access keys
    4. If you are using a firewall such as ufw, add the port to the whitelist.
  4. Run docker-compose up -d or docker compose up -d.
  5. Change $\color{green}{\textsf{Outline Manager}}$ > Settings > Hostname field to the bridge server IP address.
  6. Delete old access keys in the $\color{green}{\textsf{Outline Manager}}$ and generate new ones.
  7. Download Outline Client and import a generated access key.
  8. Press $\color{green}{\textsf{CONNECT}}$ and enjoy the freedom!

More

About

Outline Bridge Server is a Docker Compose file for running v2ray as bridge (relay) server for Outline (a shadowsocks proxy by Google Jigsaw)

Topics

Resources

Stars

Watchers

Forks

Languages