Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build ss Service in ubuntu16

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to build ss services in ubuntu16. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Basic settings

0. Update the software source

Sudo apt-get update

1. Install pip3

Sudo apt-get install python3-pip

2. First install shadowsocks with python3:

Sudo pip3 install shadowsocks

3. Edit the configuration file

Sudo vim / etc/shadowsocks.json

The configuration file is set as follows:

{"server": "the IP address of your host. "server_port": 9999, "password": "password", "timeout": 9999, "method": "aes-256-cfb", "port_password": {"5200": "password", "5201": "password", "5202": "password" "5203": "password", "5204": "password", "5205": "password", "1314": "password"}}

4. Start the service (start it in the background)

Sudo ssserver-c / etc/shadowsocks.json-d start- Advanced Settings

Manage the traffic usage of each port through ss-bash traffic management scripts

0. If shadowsocks is running, please stop the service first

Sudo ssserver-c / etc/shadowsocks.json-d stop

1. Install the necessary software

Sudo apt-get install bc git

2. Download the ssbash traffic management script

Sudo git clone https://github.com/hellofwy/ss-bash.git

3. Configure relevant rules

# when cd ss-bash/# runs in the directory of ssbash for the first time, create a new user # for example, the new user port is 8388, the password is passwd, and the traffic limit is 10GB. Execute: sudo. / ssadmin.sh add 8388 passwd 10G#. If you want to continue to add ports, just follow the above rules.

Instructions for ssadmin.sh usage and related files in the ss-bash directory:

Ssadmin.sh usage instructions

Usage:

Display version: ssadmin.sh-v | v | version display help: ssadmin.sh [- h | h | help] start ss:ssadmin.sh start stop ss:ssadmin.sh stop check ss status: ssadmin.sh status restart ss:ssadmin.sh restart soft restart ss:ssadmin.sh soft_restart restart the ss service without affecting the existing connection. Used to modify the parameters of the ss service, and manually modify the configuration file directly, restart the ss service. Add user: ssadmin.sh add port passwd limitport: Port number, 0 ss_log & & / root/ss-bash/ssadmin.sh reset_all_used

Ps: pay attention to modify the directory, depending on your actual situation.

The above is how to build ss services in ubuntu16. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report