Use verysimple to build a very simple proxy service

Original link: https://mikublog.com/tech/2501

Since the beginning of the year, the v2ray I used began to run wildly, and the simple performance was that when I opened Google, it prompted: [Cannot access this website, the connection was terminated unexpectedly]. I didn’t know why at first, but later I saw that the log seemed to be a DNS query problem. I found that just restarting v2ray is enough. I have been repeating this kind of thing every day for more than three months. If the website cannot be opened, I will restart the service. . .

For the above problem, I have tried changing the address of DNS over HTTPS, but the effect is not obvious. I have tried both the addresses of Cloudflare and Google, but there will still be problems. Even changing the IP will not work. The problem cannot be cured.

verysimple

It’s fun to learn that this tool is still through this Issue , and it’s well said. So I starred first. At that time, I didn’t know what this warehouse was for, so I didn’t care.

It happened to be empty today, and I encountered four or five interruptions, so I wanted to dress up and have a look.

Install the server

 yum install jq -y tag=`curl -sL https://api.github.com/repos/e1732a364fed/v2ray_simple/releases/latest | jq -r ".tag_name"` wget https://github.com/e1732a364fed/v2ray_simple/releases/download/$tag/verysimple_linux_amd64.tar.xz mkdir -p /usr/local/etc/verysimple tar -xJf verysimple_linux_amd64.tar.xz -C /usr/local/etc/verysimple rm verysimple_linux_amd64.tar.xz cd /usr/local/etc/verysimple cp examples/vlesss.server.toml server.toml

OK, the installation is complete here, and the configuration has also copied a server version for modification. The installation process is too simple, just pull the latest release and unzip it. You can also go directly to the repository to download the latest release and upload it to the server yourself.

Server configuration

The server configuration in the example has been copied above. Now we can directly edit some options of this server.toml. I will change some options and use them. The specific options are why there are Chinese comments, take a look I understand, I only said the configuration I actually used this time.

UUID, the UUID of this user can be generated with ./verysimple -i

 users = [ {user = "a684455c-b14f-11ea-bf0d-42010aaa0003"} ]

insecure to comment out

 #insecure = true

cert and key fill in the SSL certificate path you applied for

 cert = "/usr/local/etc/verysimple/xxxxx.pem" key = "/usr/local/etc/verysimple/xxxxx.key"

It’s almost the same for the server to configure these three places. I haven’t looked at the rest. Let’s start it now.

 ./verysimple -c server.toml

Install the client

Go directly to the release page to download the Windows version: https://ift.tt/TcOCp4e

After unzipping, you will see an examples folder and verysimple.exe body

Client configuration

Copy vlesss.client.toml in the examples folder to the same directory as verysimple.exe and rename it to client.toml

Modify the following configuration

 [[dial]] uuid = "" 上面你生成的UUID host = "你的域名"

The configuration is just these two, it is too simple

Since the route configuration is used in this configuration file, you need to download a GeoIP file: https://ift.tt/Uy3gIpJ

Then rename it to: GeoLite2-Country.mmdb, and put it in the same directory as verysimple.exe

It can be started, open Terminal, CD to the directory and enter

 .\verysimple.exe -c .\client.toml

OK, that’s it. At this time, verysimple will listen on port 10800 of 127.0.0.1 (which can be configured in the above configuration file). This port is the proxy port. If you are a browser, you can configure the proxy address in SwitchyOmega. Students with multiple needs can study the configuration file to achieve more advanced effects

later

It took one afternoon, and as of the time of posting, there has been no interruption of the flow.

This tool does not have many complicated configurations. The above configuration items are enough for normal use. The client only needs to set a UUID and specify a domain name, and the server side is also almost the same operation, but the operation of specifying the domain name Changed the setup certificate.

This article is reproduced from: https://mikublog.com/tech/2501
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment