Detailed explanation of AWS free server application and network proxy setup tutorial

Detailed explanation of AWS free server application and network proxy setup tutorial

Precautions

  1. There is a 40GB data limit per month, and charges will be incurred if you exceed the limit. (Pay attention to the email reminder related to activation fees)
  2. There is a 750-hour limit each month, but in fact the maximum number of hours in a month is 744, so you can ignore the time warning email.
  3. Most of the IPs are blocked by Google Scholar, so you need to keep trying to change nodes (depending on your luck).
  4. After the one-year free service expires, you can log out of the server and register with a different email address to continue using it for free. (Specific circumstances are subject to the latest free policy of AWS)

Necessary conditions

  1. Credit card (domestic credit card is also acceptable, no visa required)
  2. A temporary VPN and keep the global mode turned on (optional, access the AWS console website, access is very slow in some parts of China, especially in campus networks)
  3. An email address that has not applied for an AWS free server
  4. An SSH remote login tool for accessing and controlling remote servers. You can choose the web version of AWS built-in remote control (no preparation is required, some servers in some regions do not support it, and the web version of SSH does not support Chinese characters), or you can install a client (client recommendation: https://mobaxterm.mobatek.net/)
  5. Buy a domain name (no need to register, just pick a cheap one and use it, this tutorial includes the domain name purchase section)

Apply for an AWS account

Address: https://aws.amazon.com/free/ (Follow the website prompts to register an account and verify your identity)
Note: You need to prepare a credit card, and one dollar will be frozen for verification during the process


Apply for and activate a virtual machine

Enter the console page (select the server region in the upper right corner)
The internet speed in Hong Kong (needs to be activated, no charges apply), followed by Tokyo and Singapore, but I personally feel that places with fast internet speeds also have more IPs blocked by Google Scholar .

insert image description here

Apply for a virtual machine

As shown in the picture

insert image description here
insert image description here

Ubuntu 18 is recommended (ignore the options in the picture)

insert image description here

Note: Choose free , the rest can be left as default

insert image description here

The AWS server uses the key file for ssh control access. If you have a key file and saved it, just use the previous one. If not, create a key with any name, but be sure to download and save it. If you want to remotely access it on the client in the future

Required to access the control server.

insert image description here

In this way, your free cloud server is created and can be used for free for one year.
Note: If you want to use it for free, remember to shut down the cloud server and cancel your account when the year is almost up, then register with another email account and bind a credit card (the one you used before is also fine)

Wait for initialization to complete

insert image description here

Next, check whether you can access Google Scholar. Here, we use the connection service provided by AWS and EC2 Instance Connect to connect (the default configuration is fine). If the web version cannot connect or is not available, try using the client version of the ssh tool. If that doesn't work, restart the instance and try again. (If the client still cannot access, it is probably because the ssh tool is not set up properly or there is a local network problem)

insert image description here
insert image description here

(If available) Follow the prompts to upgrade the tool: sudo yum update

(The web command copy and paste is not easy to use. Try ctrl+c/v and right-click to copy. In many cases, if copying fails, just try a few more times.)

Use curl to access Google Scholar and check whether the IP is blocked (the picture below represents normal access).

insert image description here

If the message "sorry" appears, it means that the account has been blocked.

insert image description here

If it is blocked, terminate the instance and apply for a new one (remember to terminate it first, then repeat the above steps).

insert image description here

Once completed, check your host and remember its ipv4 address.

insert image description here

Configure security groups

We set up a security group to build a proxy and camouflage later (open ports 22, 80, and 443 in the security group)
Remember the corresponding security group name

insert image description here

Select Security Groups in the left column

insert image description here

And enter the security group page

insert image description here

Edit the inbound rules (if it is in English, find it yourself)

insert image description here

Click Add Rule below, configure as shown, and finally click Save Rule.

insert image description here

Domain name configuration

Used for camouflage, making your proxy server look like a website. When you use a proxy, the outside world thinks you are browsing that website.

Buy a domain name (ignore if you already have one)

Register an account on Alibaba Cloud, Tencent Cloud or AWS and purchase a domain name. Take Alibaba Cloud as an example: You can log in to the official website directly with your Alipay account

1. Domain name registration: https://cn.aliyun.com/ (Alibaba Cloud HiChina domain name registration)
insert image description here
Find a cheap one and buy it (it’s best to buy an English domain name)
insert image description here
No filing required

Domain name resolution

Enter the console, find the domain name you just purchased, and click Parse

insert image description here

Add a record

insert image description here
insert image description here

Save it, that's it


Server agent selection and installation

First, connect to the server remotely. Here we use the client remote SSH tool to demonstrate. You can also directly use the previous web version of the remote control tool EC2 Instance Connect. The commands are the same, but the web version does not support Chinese. If you encounter garbled Chinese prompts, you can refer to the screenshots in the relevant tutorials.

If you use the web remote control, skip the following three pictures.

Install and open the SSH remote login tool mentioned at the beginning (recommended: https://mobaxterm.mobatek.net/)
Create a new session

insert image description here
insert image description here

Click OK, then double-click to open

insert image description here

You may not be able to connect after you create it. You need to wait for a while or check whether the local network is blocked.

First, set a password for the root user (the password is not displayed in Linux):

sudo passwd root
insert image description here

Then switch to the root user:

su root
insert image description here

Then we use the one-click installation script on the Internet to install the agent (if the previous steps are correct, just follow the script prompts to install it later)
(If you use mobaxterm, copy and right-click to paste)
Here is a recommended one:

bash <(curl -sL https://s.hijk.art/v2ray.sh)

For specific reference, please refer to the proxy tutorial website: https://v2raytech.com/
You can also search for other proxy software for construction.

The server part is built


Client Software

Android

There is a very useful app called v2rayNG, but it is not available in the App Store. You can find it and download it yourself.

iOS

It’s quite troublesome, why not switch to Huawei?

windows

Recommend trojan-qt5

Download address: https://github.com/McDull-GitHub/trojan-qt5/releases/download/v1.4/Trojan-Qt5-Windows.zip

Run after decompression (it is recommended to create a shortcut)

The new one-click installation seems to support URI subscription, and you can also select the corresponding agent in the link to add it manually.

This is the end of this article about AWS free server application and network proxy setup tutorial. For more AWS free server content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Teach you how to use AWS server resources for free

<<:  Example of implementing QR code scanning effects with CSS3

>>:  Prevent HTML and JSP pages from being cached and re-fetched from the web server

Recommend

Detailed explanation of common methods of JavaScript arrays

Table of contents Common array methods pop() unsh...

Linux installation apache server configuration process

Prepare the bags Install Check if Apache is alrea...

Vue3+script setup+ts+Vite+Volar project

Table of contents Create a vue + ts project using...

Detailed explanation of common usage of pseudo-classes before and after in CSS3

The before/after pseudo-class is equivalent to in...

MySQL 8.0.18 stable version released! Hash Join is here as expected

MySQL 8.0.18 stable version (GA) was officially r...

In-depth analysis of nginx+php-fpm service HTTP status code 502

One of our web projects has seen an increase in t...

Linux installation MySQL5.6.24 usage instructions

Linux installation MySQL notes 1. Before installi...

How to use map to allow multiple domain names to cross domains in Nginx

Common Nginx configuration allows cross-domain se...

In-depth explanation of MySQL stored procedures (in, out, inout)

1. Introduction It has been supported since versi...

In-depth explanation of slots and filters in Vue

Table of contents Slots What are slots? Slot Cont...

MySQL uses frm files and ibd files to restore table data

Table of contents Introduction to frm files and i...

Some settings of Div about border and transparency

frame: Style=”border-style:solid;border-width:5px;...