LINUX-SSR Multi-User version configuration detailed

Source: Internet
Author: User

The aforementioned: Long time no play server, today there is a buddy to browse under external website, build a new server (I use vultr Japan2.5$/mon centOs7.0 64-bit)

Tool: XSHELL5,FLASHFXP

Well, the conditions are about to begin.

1 Download Install SSR (this one-click Install script with Teddysun)

  

wget--no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/+  X shadowsocksr.sh. /shadowsocksr.sh 2>&1 | Tee ShadowsocksR.log

2 installation process It's not a clue.

3 after installation if you only need one port

Well, congratulations, you don't have to look.

4 This step need to install FLASHFXP this software (FTP tool), of course, you can not install, but with the command line hand-tired, but the practice of Linux commands can also

Multi-User Configuration command line mode.

Start:/etc/init.d/shadowsocks start
Stop:/etc/init.d/shadowsocks stop
Restart:/etc/init.d/shadowsocks restart
Status:/etc/init.d/shadowsocks Status

Stop Shadowsocks first.

/etc/init.d/shadowsocks stop

Editing a configuration file

Vi/etc/shadowsocks.json

Press Shift+i to edit

{"server":"0.0.0.0","server_ipv6": "[::]","local_address":"127.0.0.1","local_port":1080,"port_password":{    "8989":"password1",//着里输入想要的端口和密码    "8990":"password2",    "8991":"password3"},"timeout":300,"method":"aes-256-cfb",//加密方式可以修改也可以不修改本人用chacha20
"protocol": "origin",//协议也是可以修改了本人用auth_sha1"protocol_param": "","obfs": "plain",//这里很重要,免流的请注意必须修改,本人用http_simple"obfs_param": "","redirect": "","dns_ipv6": false,"fast_open": false,"workers": 1}
改成上述类似就行,有注释地方请谨慎
再来一张吧

编辑完成后按Esc建退出编辑界面
再按shift+;+wq!退出并保存文件

Multiple users are added, but only one user can use it, because the firewall rule will still block the port connection.

The next step is to modify the firewall rules.

Here is the use of FIREWALLD, do not use iptable

Status: Systemctl status Firewalld.service

Stop firewall: Systemctl stop FIREWALLD

Open firewall: Systemctl start FIREWALLD

Stop Firefalld

Systemctl Stop Firewalld

Under command line

Edit Public.xml File

Vi/etc/firewalld/zones/public.xml

Add the port you want on the line, just the same: wq!

Multi-port access is possible here.

 最后别忘记启动防火墙和ssr
Systemctl start Firewalld/etc/init.d/shadowsocks Start

Enjoy the fun!

 

LINUX-SSR Multi-User version configuration detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.