The Ops Community ⚙️

Cover image for Use AWS EC2 create VPN(SSR)(Chinese and English description)
Feng Lei
Feng Lei

Posted on

Use AWS EC2 create VPN(SSR)(Chinese and English description)

Hi,guys,Today I will show you how to use aws ec2 to create ShadowsocksR

First,You should launch a server by aws ec2

1.Launch a ec2 server

image

2.Choose what you want instance type

image

3.Open the instance security group ports,such as 22

(Notice:When the shadowsocksr is deployed later, the corresponding port will be opened)
image

4.Connect to you create ec2-instance

image

Second,Install ShadowsocksR Script

1.Login root user

[ec2-user@ip-172-31-95-56 ~]$ sudo -i
image

2.git and run ShadowsocksR script

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh

image

Congiure the ShadowSocksR config

1.First you will see this

image

You need type the number 1 to install ShadowSocksR

image

2.Choose the ShadowSocksR server port,and you need open the ec2 security group inbound port

(default: 2333)

image

3.Set the shadowsocksR server connect password

(Default: doub.io)

image

4.Choose the Encryption Mode

[Note] if auth is used_ chain_ A protocol, please select none as the encryption method, and confusion is optional (recommended)
[Note] the salsa20 / chachacha20 - * series encryption method requires additional installation (depends on libsodium, otherwise shadowsocksr cannot be started!)
(Default: 5. aes-128-ctr)

image

5.Choose Protocol plug-in

[Note] if auth is used_ chain_ A protocol, please select none as the encryption method, and confusion is optional (recommended)

(Default: 2. auth_sha1_v4)

image

6.Choose Confusion plug-in

[note] if you use shadowsocksr to accelerate the game, please select obfuscation compatible with the original or plain obfuscation, and then the client selects plain, otherwise the delay will be increased!
In addition, if you select tls1.2_ ticket_ Auth, then the client can choose tls1.2_ ticket_ Fastauth, so you can disguise without adding delay!
If you are building in popular areas such as Japan and the United States, you may have a lower chance of being blocked by the wall!

(Default: 1. plain)
image

7.Set Connect client numbers,Single thread speed,Single port total speed

Please enter the number of devices (auth) to be limited by the shadowsocksr account to be set_* Series protocols are incompatible (only the original version is valid)
[Note] device number limit: the number of clients that can be linked at the same time on each port (multi port mode, each port is calculated independently). It is recommended that there be at least 2.
(Default: No-limit)

Please enter the upper limit of single thread speed limit per port to be set (unit: KB / s)
[note] single thread speed limit: the upper limit of single thread speed limit on each port, and multithreading is invalid.
(Default: No-limit)

Please enter the upper limit of the total speed limit of each port to be set (unit: KB / s)
[note] total speed limit of ports: the upper limit of total speed limit of each port, and the overall speed limit of a single port.
(Default: No-limit)
image

8.Well done,You can see this ,which means you already install and run the shadowsocksR server,And you can use SSR-client to connect

image

Top comments (0)