Sử dụng proxy để truy cập mạng nội bộ công ty từ xa

lethuckimthanh

New member
#Proxy #Access #Company #internal Network #remote ### Cách sử dụng proxy để truy cập mạng nội bộ của công ty từ xa

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 gửi yêu cầu đến máy chủ, máy chủ proxy chuyển tiếp yêu cầu đến máy chủ đích và sau đó trả lại phản hồi cho máy khách.Điều này có thể được sử dụng để cải thiện hiệu suất, bảo mật hoặc bỏ qua kiểm duyệt.

Trong bài viết này, chúng tôi sẽ chỉ cho bạn cách sử dụng máy chủ proxy để truy cập mạng nội bộ của công ty từ xa.Chúng tôi sẽ sử dụng Máy chủ Proxy Squid, đây là máy chủ proxy miễn phí và nguồn mở.

** Điều kiện tiên quyết **

Để 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 có kết nối Internet
* Một máy chủ Linux có cài đặt máy chủ proxy Squid
* Địa chỉ IP của mạng nội bộ của công ty
* Tên người dùng và mật khẩu cho tài khoản người dùng trên mạng nội bộ của công ty

** Bước 1: Cài đặt máy chủ proxy Squid **

Máy chủ proxy Squid có sẵn trong các kho lưu trữ mặc định của hầu hết các bản phân phối Linux.Để cài đặt nó, hãy mở một cửa sổ thiết bị đầu cuối và chạy lệnh sau:

`` `
SUDO apt-get install Squid
`` `

** Bước 2: Định cấu hình máy chủ proxy Squid **

Máy chủ proxy Squid được cấu hình bằng tệp cấu hình có tên là `squid.conf`.Tệp này được đặt trong thư mục `/etc/squid/`.

Để mở tệp cấu hình, hãy chạy lệnh sau:

`` `
sudo nano /etc/squid/squid.conf
`` `

Sau đây là tệp cấu hình mẫu cho máy chủ proxy Squid:

`` `
# Tệp cấu hình mực

# http://www.squid-cache.org/

#
# Cài đặt chung
#

http_port 3128

#
# Kiểm soát truy cập
#

ACL Localnet SRC 192.168.0.0/16
ACL tất cả SRC 0,0.0.0/0

http_access cho phép localnet
http_access từ chối tất cả

#
# Ghi nhật ký
#

logfile /var/log/squid/access.log

#
# Cài đặt bộ nhớ cache
#

bộ nhớ cache_dir ufs/var/spool/squid 1000 16 256

Maximum_Object_Size 100 MB

bộ đệm_mem 512 MB

#
# Thời gian chờ
#

Connect_Timeout 5

request_timeout 10

#
# Bật proxy trong suốt
#

trong suốt_proxy trên

#
# Bật danh sách đen Squidguard
#

url_rewrite_program/usr/bin/squidguard -c /etc/squidguard/squidguard.conf
`` `

** Bước 3: Khởi động máy chủ proxy Squid **

Để khởi động máy chủ proxy Squid, hãy chạy lệnh sau:

`` `
SUDO Service Squid Start
`` `

** Bước 4: Định cấu hình trình duyệt của bạn để sử dụng máy chủ proxy **

Để định cấu hình trình duyệt của bạn để sử dụng máy chủ proxy, hãy mở menu ** Cài đặt ** và chọn mạng ** **.

Trong phần ** proxy **, hãy nhập địa chỉ IP và số cổng của máy chủ proxy.

** Bước 5: Kiểm tra máy chủ proxy **

Để kiểm tra máy chủ proxy, hãy mở trình duyệt web và cố gắng truy cập một trang web trên mạng nội bộ của công ty.

Nếu bạn có thể truy cập trang web, thì máy chủ proxy đang hoạt động chính xác.

### hashtags

* #Ủy quyền
* #Truy cập
* #công ty
* #mạng nội bộ
* #xa
=======================================
#Proxy #Access #Company #internal network #remote ### How to use a proxy to access the company's internal network remotely

A proxy server is a server that acts as an intermediary between a client and a server. When a client sends a request to a server, the proxy server forwards the request to the destination server and then returns the response to the client. This can be used to improve performance, security, or to bypass censorship.

In this article, we will show you how to use a proxy server to access the company's internal network remotely. We will be using the Squid proxy server, which is a free and open-source proxy server.

**Prerequisites**

To follow this tutorial, you will need the following:

* A computer with an internet connection
* A Linux server with the Squid proxy server installed
* The IP address of the company's internal network
* The username and password for a user account on the company's internal network

**Step 1: Install the Squid proxy server**

The Squid proxy server is available in the default repositories of most Linux distributions. To install it, open a terminal window and run the following command:

```
sudo apt-get install squid
```

**Step 2: Configure the Squid proxy server**

The Squid proxy server is configured using a configuration file called `squid.conf`. This file is located in the `/etc/squid/` directory.

To open the configuration file, run the following command:

```
sudo nano /etc/squid/squid.conf
```

The following is a sample configuration file for the Squid proxy server:

```
# Squid configuration file

# http://www.squid-cache.org/

#
# General settings
#

http_port 3128

#
# Access control
#

acl localnet src 192.168.0.0/16
acl all src 0.0.0.0/0

http_access allow localnet
http_access deny all

#
# Logging
#

logfile /var/log/squid/access.log

#
# Cache settings
#

cache_dir ufs /var/spool/squid 1000 16 256

maximum_object_size 100 MB

cache_mem 512 MB

#
# Timeouts
#

connect_timeout 5

request_timeout 10

#
# Enable the transparent proxy
#

transparent_proxy on

#
# Enable the SquidGuard blacklist
#

url_rewrite_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf
```

**Step 3: Start the Squid proxy server**

To start the Squid proxy server, run the following command:

```
sudo service squid start
```

**Step 4: Configure your browser to use the proxy server**

To configure your browser to use the proxy server, open the **Settings** menu and select **Network**.

In the **Proxy** section, enter the IP address and port number of the proxy server.

**Step 5: Test the proxy server**

To test the proxy server, open a web browser and try to access a website on the company's internal network.

If you are able to access the website, then the proxy server is working correctly.

### Hashtags

* #Proxy
* #Access
* #Company
* #internal network
* #remote
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock