moooofly
moooofly
# 插件安装
# [Connecting to IPv4 server from an IPv6 address](https://serverfault.com/questions/838409/connecting-to-ipv4-server-from-an-ipv6-address) 问题:在一台具有 IPv6 和 IPv4 地址的服务器上,创建一个 client ,能否基于该机器 IPv6 接口连接到另外一个只有 IPv4 地址的服务器上? > I have a server with both IPv6 and IPv4...
# [Five ways for IPv6 and IPv4 to peacefully co-exist](https://www.zdnet.com/article/five-ways-for-ipv6-and-ipv4-to-peacefully-co-exist/) > IPv4/IPv6 co-existence can take one of three forms. One is **dual stack**, where your network hardware **runs IPv4 and...
# [NAT64 Technology: Connecting IPv6 and IPv4 Networks](https://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/enterprise-ipv6-solution/white_paper_c11-676278.html) > Three main options are available for migration to IPv6 from the existing network infrastructure: **dual-stack network**, **tunneling**, and **translation**. This document...
# [Connecting IPv4 client to IPv6 server: connection refused](https://stackoverflow.com/questions/16480729/connecting-ipv4-client-to-ipv6-server-connection-refused) > IPv4 and IPv6 are two separate protocols. Packets of one protocol cannot be handled using the other protocol. That is...
# [一个简单的Golang实现的HTTP Proxy](https://www.flysnow.org/2016/12/24/golang-http-proxy.html) > 2016年12月24日 - ss 是 Socks 代理,想用 HTTP 代理的时候很不方便; - 以前在 Linux 下的时候,会安装一个 `Privoxy` 把 Socks 代理转换为 HTTP 代理,但是 Mac 下使用 Brew 安装的 `Privoxy` 就很难用; - 本文主要讲**基于...
# [HTTP 代理原理和实现](http://cizixs.com/2017/03/21/http-proxy-and-golang-implementation/) > 2017-03-21 - **代理的核心功能**可以用一句话概括:接受客户端的请求,转发到后端服务器,获得应答之后返回给客户端。 - 代理服务器根据不同的配置和使用,可能会有不同的功能,这些功能主要包括: - **内容过滤**:代理可以根据一定的规则**限制某些请求的连接**。比如有些公司会设置内部网络无法访问某些购物、游戏网站,或者学校的网络不让学生访问色情暴力的网站等 - **节省成本**:代理服务器可以**作为缓存使用**,对于某些资源只需要第一次访问的时候去下载,以后代理直接把缓存的结果返回给客户端,**节约网络带宽的开销** - **提高性能**:通过代理服务器的缓存(比如 CDN)和负载均衡(比如 nginx lb)功能,服务器端可以**加速请求的访问**,在更快的时间内返回结果) - **增加安全性**:公司可以在内网和外网之间通过代理进行转发,这样不仅**对外隐藏了实现的细节**,而且可以**在代理层对爬虫、病毒性请求进行过滤**,保护内部服务 - 代理具体可以做哪些事情呢? - **修改请求**:url、header、body - **过滤请求**:根据一定的规则丢弃、过滤请求 - **决定转发到哪个后端**(可以是静态定义的,也可以是动态决定) - **保存服务器的应答**,后续的请求可以直接使用保存的应答...
# [HTTP 隧道代理原理和实现](https://cizixs.com/2017/03/22/http-tunnel-proxy-and-golang-implementation/) > 2017-03-22 ## HTTP 隧道代理简介 在上一篇文章中我们介绍了 **HTTP 普通代理**的原理和 golang 简单实现,也提到过普通代理的局限,比如**无法代理 HTTPS 的报文**,此外普通代理也**只能代理 HTTP 协议报文**,**无法支持其他协议的数据转发**。当然有问题就有解决方案,对于这些问题 HTTP 可以通过**隧道(tunnel)代理**来解决。 隧道代理的原因也可以用一句话来总结: > 代理服务器和真正的服务器之间建立起 TCP 连接,然后在客户端和真正服务器端进行数据的直接转发。 《HTTP 权威指南》对隧道描述的原话是: > The `CONNECT` method...
# [Reverse Proxy in Go](https://blog.charmes.net/post/reverse-proxy-go/) > Jul 10, 2015
# [HTTPS proxies support in Go 1.10](https://medium.com/@mlowicki/https-proxies-support-in-go-1-10-b956fb501d6b)