[TIL] HTTP : The Definitive Guide "p140 ~ p141"

시윤·2024년 4월 9일
0

[TIL] Two Pages Per Day

목록 보기
59/110
post-thumbnail

Chapter 6. Proxies

(해석 또는 이해가 잘못된 부분이 있다면 댓글로 편하게 알려주세요.)


❤️ 원문 번역 ❤️

How Proxies Get Traffic

Because clients normally talk directly to web servers, we need to explain how HTTP traffic finds its way to a proxy in the first place. There are four common ways to cause client traffic to get to a proxy:

  • 일반적으로 클라이언트는 웹 서버와 직접 통신하기 때문에 처음에 HTTP 트래픽이 프록시로 가는 방법을 설명해주어야 합니다.

  • 클라이언트 트래픽이 프록시로 가는 네 가지 일반적인 방법이 있습니다.

Modify the client

Many web clients, including Netscape and Microsoft browsers, support both manual and automated proxy configuration. If a client is configured to use a proxy server, the client sends HTTP requests directly and intentionally to the proxy, instead of to the origin server (Figure 6-14a).

  • Netscape와 Microsoft 브라우저를 포함하는 많은 웹 클라이언트는 수동 및 자동 프록시 구성을 제공합니다.

  • 만약 클라이언트가 프록시 서버를 사용하도록 구성되었다면, 클라이언트는 origin 서버 대신 프록시에 HTTP 메시지를 직접 전달합니다. (Figure 6-14a)

Modify the network

There are several techniques where the network infrastructure intercepts and steers web traffic into a proxy, without the client’s knowledge or participation. This interception typically relies on switching and routing devices that watch for HTTP traffic, intercept it, and shunt the traffic into a proxy, without the client’s knowledge (Figure 6-14b). This is called an intercepting proxy.*

  • 네트워크 인프라가 클라이언트의 지식이나 개입 없이 프록시에서 웹 트래픽을 가로채고 조정하는 몇 가지 기술이 있습니다.

  • 차단 기술은 일반적으로 HTTP 트래픽을 지켜보고, 그 트래픽을 가로채어 클라이언트의 지식 없이 프록시로 우회시키는 스위칭 및 라우팅 디바이스에 의존합니다. (Figure 6-14b)

  • 이것을 Intercepting Proxy라고 부릅니다.

Modify the DNS namespace

Surrogates, which are proxy servers placed in front of web servers, assume the name and IP address of the web server directly, so all requests go to them instead of to the server (Figure 6-14c). This can be arranged by manually editing the DNS naming tables or by using special dynamic DNS servers that compute the appropriate proxy or server to use on-demand. In some installations, the IP address and name of the real server is changed and the surrogate is given the former address and name.

  • 웹 서버 앞에 위치한 Surrogate는 직접적으로 웹 서버의 이름과 IP 주소를 가정하여 모든 요청이 서버 대신 Surrogate 프록시로 향하게 합니다. (Figure 6-14c)

  • 이것은 DNS 네이밍 테이블을 수동으로 편집하거나 필요에 맞는 적절한 프록시나 서버를 연산하는 특수한 동적 DNS 서버를 사용하여 정리될 수 있습니다.

  • 일부 설치에서는 실제 서버의 IP 주소와 이름이 변경되고 Surrogate에 이전의 주소와 이름이 지정됩니다.

Modify the web server

Some web servers also can be configured to redirect client requests to a proxy by sending an HTTP redirection command (response code 305) back to the client. Upon receiving the redirect, the client transacts with the proxy (Figure 6-14d).

  • 몇몇 웹 서버는 HTTP 리디렉션 명령을 클라이언트에 반환하여 (305 응답 코드) 클라이언트 요청을 프록시로 리디렉션하도록 구성됩니다.

  • 리디렉션 명령을 받은 클라이언트는 프록시와 트랜잭션합니다. (Figure 6-14d)

The next section explains how to configure clients to send traffic to proxies. Chapter 20 will explain how to configure the network, DNS, and servers to redirect traffic to proxy servers.

  • 다음 섹션에서는 프록시에게 트래픽을 전송하기 위해 클라이언트를 구성하는 방법에 대해 설명합니다.

  • Chapter 20에서는 트래픽을 프록시 서버로 리디렉션하기 위해 네트워크, DNS, 서버를 구성하는 방식을 설명할 것입니다.


🧡 요약 정리 🧡

How Proxies Get Traffic

  • 클라이언트 수정 : 클라이언트가 프록시 서버를 사용하도록 자동/수동 구성하여 HTTP 메시지를 프록시 서버에 전달하게 하는 것
  • 네트워크 수정 : Intercepting Proxy를 통해 네트워크 인프라가 HTTP 트래픽을 가로채는 것
  • DNS namespace 수정 : DNS 테이블 편집을 통해 Surrogate 프록시로 향하게 하는 것
  • 웹 서버 수정 : 클라이언트 요청을 프록시로 리디렉션하도록 구성하는 것

💛 감상 💛

  • 클라이언트 트래픽이 프록시로 향하는 방법에도 다양한 형태가 있다는 것을 알게 되었습니다.
profile
맑은 눈의 다람쥐

0개의 댓글

관련 채용 정보