This repository has all the code needed to create and manage Outline servers onDigitalOcean. An Outline server runs instances of Shadowsocks proxies andprovides an API used by the Outline Manager application.
Go to https://getoutline.org for ready-to-use versions of the software.
The system comprises the following components:
Outline Server: a proxy server that runs a Shadowsocks instance for eachaccess key and a REST API to manage the access keys. The Outline Server runsin a Docker container in the host machine.
See src/shadowbox
Outline Manager: an Electron application thatcan create Outline Servers on the cloud and talks to their access keymanagement API to manage who has access to the server.
Metrics Server: a REST service that the Outline Server talks toif the user opts-in to anonymous metrics sharing.
In order to build and run the code, you need the following installed:
Then you need to install all the NPM package dependencies:
yarn
This project uses Yarn workspaces.
We have a very simple build system based on package.json scripts that are called using yarn
and a thin wrapper for what we call build "actions".
We've defined a do
package.json script that takes an action
parameter:
yarn do $ACTION
This command will define a do_action()
function and call ${ACTION}_action.sh
, which must exist.The called action script can use do_action
to call its dependencies. The $ACTION parameter isalways resolved from the project root, regardless of the caller location.
The idea of do_action
is to keep the build logic next to where the relevant code is.It also defines two environmental variables:
⚠️ To find all the actions in this project, runyarn actions
Building creates the following directories under build/
:
web_app/
: The Manager web app.
static/
: The standalone web app static files. This is what one deploys to a web server or runs with Electron.electron_app/
: The launcher desktop Electron app
static/
: The Manager Electron app to run with the electron command-linebundled/
: The Electron app bundled to run standalone on each platformpackaged/
: The Electron app bundles packaged as single files for distributioninvite_page
: the Invite Page
static
: The standalone static files to be deployedshadowbox
: The Proxy ServerThe directories have subdirectories for intermediate output:
ts/
: Autogenerated Typescript filesjs/
: The output from compiling Typescript codebrowserified/
: The output of browserifying the JavaScript codeTo clean up:
yarn run clean
Shadowsocks used to be blocked in some countries, and because Outline uses Shadowsocks, there has been skepticism about Outline working in those countries. In fact, people have tried Outline in the past and had their servers blocked.
However, since the second half of 2020 things have changed. The Outline team and Shadowsocks community made a number of improvements that strengthened Shadowsocks beyond the censor's current capabilities.
As shown in the research How China Detects and Blocks Shadowsocks, the censor uses active probing to detect Shadowsocks servers. The probing may be triggered by packet sniffing, but that's not how the servers are detected.
Even though Shadowsocks is a standard, it leaves a lot of room for choices on how it's implemented and deployed.
First of all, you must use AEAD ciphers. The old stream ciphers are easy to break and manipulate, exposing you to simple detection and decryption attacks. Outline has banned all stream ciphers, since people copy old examples to set up their servers. The Outline Manager goes further and picks the cipher for you, since users don't usually know how to choose a cipher, and it generates a long random secret, so you are not vulnerable to dictionary-based attacks.
Second, you need probing resistance. Both shadowsocks-libev and Outline have added that. The research Detecting Probe-resistant Proxies showed that, in the past, an invalid byte would trigger different behaviors whether it was inserted in positions 49, 50 or 51 of the stream, which is very telling. That behavior is now gone, and the censor can no longer rely on that.
Third, you need protection against replayed data. Both shadowsocks-libev and Outline have added such protection, which you may need to enable explicitly on ss-libev, but it's the default on Outline.
Fourth, Outline and clients using shadowsocks-libev now merge the SOCKS address and the initial data in the same initial encrypted frame, making the size of the first packet variable. Before the first packet only had the SOCKS address, with a fixed size, and that was a giveaway.
The censors used to block Shadowsocks, but Shadowsocks has evolved, and as for 2021, it's ahead again in the cat and mouse game.
Shadowsocks remains our protocol of choice because it's simple, well understood and very performant. Furthermore, it has an enthusiastic community of very smart people behind it.
SQL> select * from V$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Produ
can be WhenMapped or Always. Default is NotUseful. -dotDot.-rect11x1 solid-filled rectangle.-rect1010x10 solid-filled rectangle.-rect100100x100 solid-filled rectangle.-rect500500x500 solid-filled rect
文件以前在 ~/shadowbox/access.txt 现在的版本放在 /opt/outline/access.txt
描述 (Description) outline属性是一个简写属性,用于设置元素周围轮廓的宽度,颜色和样式。 可能的值 (Possible Values) 《outline-color》 - 属性outline-color的任何允许值。 《outline-style》 - 属性大纲样式的任何允许值。 《outline-width》 - 属性outline-width的任何允许值。 适用于 (App
An open, extensible, wiki for your team built using React and Node.js. Try out Outline using our hosted version at www.getoutline.com. This is the source code that runs Outline and all the associated
描述 (Description) outline-width属性定义元素周围的轮廓宽度。 可能的值 (Possible Values) length - 任何长度单位。 此属性的长度单位可能不是负数。 thin - 比设置为medium的轮廓更薄的轮廓。 medium - 比设置为薄的轮廓更粗的轮廓,并且比设置为粗的轮廓更薄。 thick - 比设置为medium的轮廓更粗的轮廓。 适用于 (Ap
描述 (Description) outline-color属性设置元素周围outline-color 。 可能的值 (Possible Values) color - 任何有效的颜色值。 invert - 轮廓执行绘制区域的颜色反转。 适用于 (Applies to) 所有HTML元素。 DOM语法 (DOM Syntax) object.style.outlineColor = "red";
Outline Client The Outline Client is a cross-platform VPN or proxy client for Windows, macOS, iOS, Android, and ChromeOS. The Outline Client is designed for use with the Outline Server software, but i
描述 (Description) outline-color属性确定元素周围轮廓的样式。 可能的值 (Possible Values) none - 没有绘制轮廓。 dotted - 轮廓绘制为一系列点。 dashed - 轮廓绘制为一系列短线段。 solid - 轮廓绘制为单个不间断线。 double - 轮廓绘制为一对不间断的线条。 groove - 绘制轮廓,好像它是刻在文档表面的沟槽。 r