<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Proxy - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/proxy/</link><description>Proxy - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Sun, 12 Jan 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/proxy/" rel="self" type="application/rss+xml"/><item><title>tproxy（透明代理）</title><link>https://rd163.visword.com/posts/tproxy/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/tproxy/</guid><description><![CDATA[<h1 id="tproxy透明代理" class="headerLink">
    <a href="#tproxy%e9%80%8f%e6%98%8e%e4%bb%a3%e7%90%86" class="header-mark"></a>tproxy（透明代理）</h1><h2 id="什么是透明代理" class="headerLink">
    <a href="#%e4%bb%80%e4%b9%88%e6%98%af%e9%80%8f%e6%98%8e%e4%bb%a3%e7%90%86" class="header-mark"></a>什么是透明代理</h2><p><a href="https://github.com/KatelynHaworth/go-tproxy" target="_blank" rel="noopener noreferrer">tproxy</a> 即 transparent（透明） proxy。这里的 transparent（透明）有两层含义：</p>
<ul>
<li>代理对于 client 是透明的，client 端无需进行任何配置。即无需修改请求地址，也无需采用代理协议和代理服务器进行协商。与之相对比的是 socks 代理或者 http 代理，需要在 client 端设置代理的地址，在发起请求时也需要通过代理协议告知代理服务器其需要访问的真实地址。</li>
<li>代理对于 server 是透明的，server 端看到的是 client 端的地址，而不是 proxy 的地址。</li>
</ul>
<p>github上有个叫 <a href="https://github.com/kevwan/tproxy" target="_blank" rel="noopener noreferrer">tproxy</a> 的项目，但其实实现的并不是透明代理， 而是 用来做 tcp 连接分析的。</p>]]></description></item></channel></rss>