Share Tricks MMO: Cách tạo một proxy server ẩn danh vớiphiên bản mới nhất của Squid

TricksMMO

Administrator
Staff member
## Cách tạo một máy chủ proxy ẩn danh với phiên bản Squid mới nhất

### Giới thiệu

Máy chủ proxy là một máy chủ hoạt động như một trung gian giữa máy khách và máy chủ.Khi khách hàng yêu cầu tài nguyên từ máy chủ, máy chủ proxy chuyển tiếp yêu cầu thay mặt cho máy khách.Sau đó, máy chủ proxy có thể lưu trữ tài nguyên, do đó các yêu cầu tiếp theo cho cùng một tài nguyên có thể được phục vụ nhanh hơn.Các máy chủ proxy cũng có thể được sử dụng để lọc lưu lượng truy cập, chặn truy cập vào một số trang web nhất định và cung cấp tính ẩn danh cho khách hàng.

Trong hướng dẫn này, chúng tôi sẽ chỉ cho bạn cách tạo một máy chủ proxy ẩn danh bằng cách sử dụng phiên bản Squid mới nhất.Squid là máy chủ proxy miễn phí và nguồn mở có sẵn cho nhiều nền tảng khác nhau.Nó được biết đến với hiệu suất cao và khả năng mở rộng của nó.

### Yêu cầu

Để làm theo hướng dẫn này, bạn sẽ cần những điều sau đây:

* Một máy tính chạy Ubuntu 18.04 trở lên
* Một cửa sổ đầu cuối
* Gói mực

### Cài đặt

Để cài đặt SQUID, hãy mở một cửa sổ đầu cuối và chạy lệnh sau:

`` `
sudo apt cài đặt mực
`` `

Điều này sẽ cài đặt phiên bản mới nhất của Squid trên hệ thống của bạn.

### Cấu hình

Khi Squid được cài đặt, bạn sẽ cần phải định cấu hình nó.Để thực hiện việc này, hãy mở tệp sau trong trình soạn thảo văn bản:

`` `
/etc/squid/squid.conf
`` `

Tệp này chứa các tùy chọn cấu hình cho SQUID.Chúng tôi sẽ cần thực hiện một vài thay đổi cho tệp này để cho phép ủy quyền ẩn danh.

Đầu tiên, chúng ta cần giải nén dòng sau:

`` `
http_access cho phép tất cả
`` `

Dòng này cho phép tất cả các máy khách truy cập máy chủ proxy.

Tiếp theo, chúng ta cần thêm dòng sau vào cuối tệp:

`` `
http_port 3128
`` `

Dòng này chỉ định cổng mà máy chủ proxy sẽ nghe.

Cuối cùng, chúng ta cần khởi động lại mực cho các thay đổi để có hiệu lực.Để thực hiện việc này, hãy chạy lệnh sau:

`` `
SUDO Service Squid khởi động lại
`` `

### Kiểm tra

Bây giờ Squid được cấu hình, chúng tôi có thể kiểm tra nó để đảm bảo nó hoạt động tốt.Để thực hiện việc này, hãy mở trình duyệt web và nhập URL sau:

`` `
http: // localhost: 3128
`` `

Bạn sẽ xem trang Chào mừng Squid.Điều này có nghĩa là máy chủ proxy đang hoạt động tốt.

### Sử dụng máy chủ proxy

Bây giờ bạn có một máy chủ proxy ẩn danh, bạn có thể sử dụng nó để duyệt web ẩn danh.Để làm điều này, chỉ cần định cấu hình trình duyệt web của bạn để sử dụng máy chủ proxy.Các hướng dẫn sau đây chỉ cho bạn cách làm điều này trong Chrome và Firefox.

**Trình duyệt Chrome**

1. Mở chrome.
2. Nhấp vào menu ** ba chấm ** ở góc trên cùng bên phải của cửa sổ.
3. Chọn ** Cài đặt **.
4. Nhấp vào ** Nâng cao **.
5. Cuộn xuống và nhấp vào ** Mở cài đặt proxy **.
6. Nhấp vào ** Cấu hình proxy thủ công **.
7. Nhập thông tin sau:

*** Máy chủ proxy: ** Localhost
*** Cổng: ** 3128

8. Nhấp vào ** OK **.

** Firefox **

1. Mở Firefox.
2. Nhấp vào menu ** Hamburger ** ở góc trên cùng bên phải của cửa sổ.
3. Chọn ** Tùy chọn **.
4. Nhấp vào ** Chung **.
5. Cuộn xuống và nhấp vào ** Cài đặt mạng **.
6. Nhấp vào ** Cài đặt **.
7. Chọn ** Cấu hình proxy thủ công **.
8. Nhập thông tin sau:

*** Máy chủ proxy: ** Localhost
*** Cổng: ** 3128

9. Nhấp vào ** OK **.

Bây giờ bạn có thể duyệt web ẩn danh bằng máy chủ proxy của bạn.

### Phần kết luận

Trong hướng dẫn này, chúng tôi đã chỉ cho bạn cách tạo một máy chủ proxy ẩn danh bằng cách sử dụng phiên bản Squid mới nhất.Chúng tôi hy vọng bạn tìm thấy hướng dẫn này hữu ích.Nếu bạn có bất kỳ câu hỏi, xin vui lòng để lại một bình luận bên dưới.

### hashtags

* #máy chủ proxy
* #mực ống
* #anonymousproxy
* #Anonymity
* #bảo vệ
=======================================
## How to create an anonymous Proxy Server with the latest version of Squid

### Introduction

A proxy server is a server that acts as an intermediary between a client and a server. When a client requests a resource from a server, the proxy server forwards the request on behalf of the client. The proxy server may then cache the resource, so that subsequent requests for the same resource can be served more quickly. Proxy servers can also be used to filter traffic, block access to certain websites, and provide anonymity to clients.

In this tutorial, we will show you how to create an anonymous proxy server using the latest version of Squid. Squid is a free and open-source proxy server that is available for a variety of platforms. It is known for its high performance and scalability.

### Requirements

To follow this tutorial, you will need the following:

* A computer running Ubuntu 18.04 or later
* A terminal window
* The Squid package

### Installation

To install Squid, open a terminal window and run the following command:

```
sudo apt install squid
```

This will install the latest version of Squid on your system.

### Configuration

Once Squid is installed, you will need to configure it. To do this, open the following file in a text editor:

```
/etc/squid/squid.conf
```

This file contains the configuration options for Squid. We will need to make a few changes to this file to enable anonymous proxying.

First, we need to uncomment the following line:

```
http_access allow all
```

This line allows all clients to access the proxy server.

Next, we need to add the following line to the end of the file:

```
http_port 3128
```

This line specifies the port that the proxy server will listen on.

Finally, we need to restart Squid for the changes to take effect. To do this, run the following command:

```
sudo service squid restart
```

### Testing

Now that Squid is configured, we can test it to make sure it is working properly. To do this, open a web browser and type the following URL:

```
http://localhost:3128```

You should see the Squid welcome page. This means that the proxy server is working properly.

### Using the Proxy Server

Now that you have an anonymous proxy server, you can use it to browse the web anonymously. To do this, simply configure your web browser to use the proxy server. The following instructions show you how to do this in Chrome and Firefox.

**Chrome**

1. Open Chrome.
2. Click the **three-dot menu** in the top right corner of the window.
3. Select **Settings**.
4. Click **Advanced**.
5. Scroll down and click **Open proxy settings**.
6. Click **Manual proxy configuration**.
7. Enter the following information:

* **Proxy server:** localhost
* **Port:** 3128

8. Click **OK**.

**Firefox**

1. Open Firefox.
2. Click the **hamburger menu** in the top right corner of the window.
3. Select **Options**.
4. Click **General**.
5. Scroll down and click **Network Settings**.
6. Click **Settings**.
7. Select **Manual proxy configuration**.
8. Enter the following information:

* **Proxy server:** localhost
* **Port:** 3128

9. Click **OK**.

Now you can browse the web anonymously using your proxy server.

### Conclusion

In this tutorial, we showed you how to create an anonymous proxy server using the latest version of Squid. We hope you found this tutorial helpful. If you have any questions, please feel free to leave a comment below.

### Hashtags

* #proxyserver
* #squid
* #anonymousproxy
* #Anonymity
* #Security
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top