Shadowsocks
    • PDF

    Shadowsocks

    • PDF

    Article Summary

    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.
    Note

    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:

    ProcedureDescription
    1. Set ACG
    • Reference guide: ACG
    • Must set the following ports
      • TCP 22 port for a terminal connection
      • TCP 8388 port for using Shadowsocks Client
    2. Create server
    • Reference guide: Create server
    • Image type Application, Application image type Shadowsocks
    3. Set public IP
    4. Set port forwarding
    5. Get admin password
    6. Access server
    Note
    • 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 |

    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.

    1. Download Outline Manager from the Outline website.

      • You can download by selecting the OS environment you are using among Windows, Linux, and MacOS.
    2. Run the downloaded Outline Manager.

    3. Click Add server > Set outline anywhere on the Outline Manager console window, in that order.

    4. 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)"
      
      Note

      For Ubuntu, if an error occurs while installing the docker, install the docker with the apt install -y docker.io command, and then try again.

    5. Enter the docker --version command to check the installed docker version.

    6. 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.

    7. Click the [Complete] button.

      • If the Connection failed pop-up window appears, proceed with next steps to set the ACG.
        server-shadowsocks_outline_error_en
    8. Check the port information displayed on the server execution window.

      • The following image is an example, and actual port information may vary.
        server-shadowsocks_apiurl_port
    9. From the NAVER Cloud Platform console, click the Services > Compute > Server > ACG menus, in that order.

    10. Select the ACG applied to the Shadowsocks server, and then click the [Set ACG] button.

    11. Add the port information you checked earlier as the detailed rules, and then click the [Apply] button.
      server-shadowsocks_acg_edit_en

    12. 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:

    1. Download Outline Client from the Outline website.
      • You can download by selecting the OS environment you are using among Windows, Linux, and MacOS.
    2. Run the downloaded Outline Client.
    3. Click Add server.
    4. Click i-shadowsocks_accesskey from the Access key area on the Outline Manager console window.
    5. Click the Connect this device button, and then copy the displayed access code.
    6. Paste the access code value you've copied on the Outline Client window, and then click the [Add server] button.
    7. 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.

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.