{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/proxy-server-basics/",
  "atlas": "https://www.pystone.net/?node=proxy-server-basics#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/proxy-server-basics.md",
  "context": "https://www.pystone.net/notes/proxy-server-basics.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:proxy-server-basics",
  "slug": "proxy-server-basics",
  "title": "代理服务器相关",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "代理服务器相关",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "fec1ab2b30fd94d84f2d6b39d0d518fd6ff074471e6334aac11f2352ac965e4f",
  "assets": [
    {
      "reference": "assets/0003 - 代理服务器相关__resource-001-5890cabb3812.png",
      "url": "/media/081fbacc2df8fc6453b4.png",
      "mediaType": "image/png",
      "contentHash": "081fbacc2df8fc6453b47c2b8eedcd788522aaa0908f7746b6c2ee3bf8e7a0d3",
      "byteLength": 33484,
      "width": 393,
      "height": 310
    },
    {
      "reference": "assets/0003 - 代理服务器相关__resource-002-5a2eb7e19fdc.png",
      "url": "/media/d96a616879f8c6254a10.png",
      "mediaType": "image/png",
      "contentHash": "d96a616879f8c6254a10b34eb8b118ccf0d189131405c267510152ae421fe4c3",
      "byteLength": 30556,
      "width": 386,
      "height": 379
    }
  ],
  "headings": [
    {
      "depth": 1,
      "text": "代理服务器相关",
      "anchor": "代理服务器相关",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9B%B8%E5%85%B3"
    },
    {
      "depth": 2,
      "text": "Introduction",
      "anchor": "introduction",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#introduction"
    },
    {
      "depth": 3,
      "text": "用处",
      "anchor": "用处",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#%E7%94%A8%E5%A4%84"
    },
    {
      "depth": 4,
      "text": "保护隐私",
      "anchor": "保护隐私",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#%E4%BF%9D%E6%8A%A4%E9%9A%90%E7%A7%81"
    },
    {
      "depth": 4,
      "text": "防火墙",
      "anchor": "防火墙",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#%E9%98%B2%E7%81%AB%E5%A2%99"
    },
    {
      "depth": 3,
      "text": "Proxy vs NAT",
      "anchor": "proxy-vs-nat",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#proxy-vs-nat"
    },
    {
      "depth": 2,
      "text": "Ref",
      "anchor": "ref",
      "citation": "https://www.pystone.net/notes/proxy-server-basics/#ref"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:systems-and-network-security",
      "title": "系统基础与网络安全",
      "url": "https://www.pystone.net/notes/systems-and-network-security/",
      "atlas": "https://www.pystone.net/?node=systems-and-network-security#knowledge-atlas",
      "label": "系统基础与网络安全",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "网络工程中的“代理服务器相关”导航项",
      "citation": "https://www.pystone.net/notes/systems-and-network-security/#%E7%BD%91%E7%BB%9C%E5%B7%A5%E7%A8%8B"
    }
  ],
  "contentMarkdown": "# 代理服务器相关\n\n﻿# 代理服务器相关\n\n> 创建时间：2021/5/14 10:44\n\n* Introduction\n    * 用处\n      * 保护隐私\n      * 防火墙\n    * Proxy vs NAT\n  * Ref\n\n## Introduction\n\n代理服务器 (Proxy server) : In computer networking, a proxy server is a server application or appliance that acts as an intermediary for requests from clients seeking resources from servers that provide those resources.\n\n![](assets/0003 - 代理服务器相关__resource-001-5890cabb3812.png)\n\n![](assets/0003 - 代理服务器相关__resource-002-5a2eb7e19fdc.png)\n\n### 用处\n\n#### 保护隐私\n\nproxies can be used to protect privacy - on behalf of the client when requesting service, potentially masking the true origin of the request to the resource server.\n\n客户端向外部要求的资料事实上都是 Proxy 帮用户取得的，因此因特网上面看到要求数据者，将会是 Proxy 服务器的 IP 而不是客户端的 IP\n\n#### 防火墙\n\n由于整个因特网对外都是经过 proxy ，也就是『单点对外』的情况，这种状态底下要来管理防火墙也是比较简单的\n\n### Proxy vs NAT\n\nNAT服务器的功能 - Linux 的 NAT 功能主要透过封包过滤的方式， 并使用 iptables 的 nat 表格进行 IP 伪装 (SNAT) ，让客户端自行前往因特网上的任何地方的一种方式。主要的运作行为是在 OSI 七层协定的 **二、三、四** 层（数据链路层，网络层，传输层）。由于是透过封包过滤与伪装，因此客户端可以使用的端口号码 (第四层) 较弹性；\n\nProxy 服务器的功能 - 主要透过 Proxy 的服务程序 (daemon) 提供网络代理的任务，因此 Proxy 能不能进行某些工作，与该服务的程序功能有关。 举例来说，如果你的 Proxy 并没有提供邮件或 FTP 代理，那么你的客户端就是无法透过 Proxy 去取得这些网络资源。 主要运作的行为在 OSI 七层协议的 **应用层** 部分 (所谓的比较\"高阶\"之意)。\n\n## Ref\n\nhttp://shouce.jb51.net/vbird-linux-server-3/123.html\nhttps://en.wikipedia.org/wiki/Proxy_server\n"
}
