- Print
- PDF
Shadowsocks
- Print
- PDF
Available in Classic
Shadowsocks is a service platform to set up a Virtual Private Network (VPN) utilizing the Shadowsocks server while using Linux as an OS. It is automatically configured on NAVER Cloud Platform's Compute infrastructure service and can be instantly put into service through a configuration process with only a few steps.
The advantages of using Shadowsocks are as follows:
- You can use a stable VPN service utilizing the infrastructure services of NAVER Cloud Platform.
- You can select a server image and specifications to automatically install and use the Shadowsocks server.
For more information on the software used in NAVER Cloud Platform's Shadowsocks, see the following websites:
Creating and accessing server
The method for creating and accessing the server is the same as creating a regular server on NAVER Cloud Platform. The following are detailed procedures and reference guides:
Procedure | Description |
---|---|
1. Set ACG |
|
2. Create server |
|
3. Set public IP |
|
4. Set port forwarding |
|
5. Get admin password |
|
6. Access server |
|
- After you access and log in to the server, change the password of the root account to one you can remember. Enter the
passwd root
command to set a new password. - If you can't connect to the server even if there is no problem in the public IP address and ACG, your web server process might be stopped. Run the restart command (
systemctl start httpd
) on the terminal program to restart the process.
Using server
When the server is created, the Shadowsocks service is automatically installed, so you can use the service immediately.
Check if the service is installed successfully using the following methods, and then edit the configuration file, if necessary.
- Check Shadowsocks service process
root@shdscks:~# ps -ef | grep ss-server
shadows+ 1004 1 0 11:28 ? 00:00:00 /usr/local/bin/ss-server -c /etc/shadowsocks/shadowsocks.json -a shadowsocks -v start
- Check Shadowsocks service port status
root@shdscks:~# netstat -na | grep 8388
tcp 0 0 0.0.0.0:8388 0.0.0.0:* LISTEN
While connected to the server, you can run the following commands if necessary.
- Stop service:
systemctl stop shadowsocks
- Run service:
systemctl start shadowsocks
- Check and edit the content of the Shadowsocks configuration file:
vi /etc/shadowsocks/shadowsocks.json
- Description of configuration file item and how to edit it
| Item | Description |
| :-- | :--- |
|server
| The default value is 0.0.0.0
Enter the public IP address of the server |
|server_port
| The default value is 8388 |
|password
| Access password
Set a highly secure password |
|timeout
| Access timeout time |
|method
| Encryption method
Using an AEAD algorithm is recommended (see AEAD ciphers) |
|fast_open
| Reduce wait time when starting
Set true or false |
- Description of configuration file item and how to edit it
Using Shadowsocks Client
To use the service, you need to install Shadowsocks Client and register the created Shadowsocks server.
Install a client suitable for the OS you are using. This guide is based on the Outline application.
Install Outline Manager
The following describes how to install Outline Manager, an administrative application, and register the server.
Download Outline Manager from the Outline website.
- You can download by selecting the OS environment you are using among Windows, Linux, and MacOS.
Run the downloaded Outline Manager.
Click Add server > Set outline anywhere on the Outline Manager console window, in that order.
Follow the instructions on the console window to access the server, and then enter the following commands:
- Set whether to install the docker as
y
.
sudo bash -c "$(wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh)"
NoteFor Ubuntu, if an error occurs while installing the docker, install the docker with the
apt install -y docker.io
command, and then try again.- Set whether to install the docker as
Enter the
docker --version
command to check the installed docker version.Copy the
apiUrl
item marked in green to the clipboard, and then paste it to (2) Installation output input window on the Outline Manager console window.Click the [Complete] button.
- If the Connection failed pop-up window appears, proceed with next steps to set the ACG.
- If the Connection failed pop-up window appears, proceed with next steps to set the ACG.
Check the port information displayed on the server execution window.
- The following image is an example, and actual port information may vary.
- The following image is an example, and actual port information may vary.
From the NAVER Cloud Platform console, click the Services > Compute > Server > ACG menus, in that order.
Select the ACG applied to the Shadowsocks server, and then click the [Set ACG] button.
Add the port information you checked earlier as the detailed rules, and then click the [Apply] button.
Click Try again on the pop-up window on the Outline Manager console window.
- The server is registered successfully, and you can view the server status.
Install Outline Client
With Outline Manager installed and running, install Outline Client. To install it, do the following:
- Download Outline Client from the Outline website.
- You can download by selecting the OS environment you are using among Windows, Linux, and MacOS.
- Run the downloaded Outline Client.
- Click Add server.
- Click from the Access key area on the Outline Manager console window.
- Click the Connect this device button, and then copy the displayed access code.
- Paste the access code value you've copied on the Outline Client window, and then click the [Add server] button.
- Click the [Connect] button.
- The server is connected, and you can view the server information.
- You can view the data capacity transferred from Outline Manager.