<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Proxy on UNIX Publication</title><link>http://unix.pub/tags/proxy/</link><description>Recent content in Proxy on UNIX Publication</description><generator>Hugo</generator><language>zh</language><copyright>[unixetc](https://unixetc.com)</copyright><lastBuildDate>Mon, 24 Aug 2026 17:01:00 +0800</lastBuildDate><atom:link href="http://unix.pub/tags/proxy/index.xml" rel="self" type="application/rss+xml"/><item><title>DAE用法</title><link>http://unix.pub/docs/LinuxDoc/dae_usage/</link><pubDate>Tue, 18 Aug 2026 16:17:23 +0800</pubDate><guid>http://unix.pub/docs/LinuxDoc/dae_usage/</guid><description>&lt;h1 id="dae用法"&gt;DAE用法&lt;a class="anchor" href="#dae%e7%94%a8%e6%b3%95"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#78787e"&gt;#安装dae&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo sh -c &lt;span style="color:#5af78e"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#ff6ac1"&gt;$(&lt;/span&gt;wget -qO- https://github.com/daeuniverse/dae-installer/raw/main/installer.sh&lt;span style="color:#ff6ac1"&gt;)&lt;/span&gt;&lt;span style="color:#5af78e"&gt;&amp;#34;&lt;/span&gt; @ install
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#78787e"&gt;#或者&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo sh -c &lt;span style="color:#5af78e"&gt;&amp;#34;&lt;/span&gt;&lt;span style="color:#ff6ac1"&gt;$(&lt;/span&gt;wget -qO- https://cdn.jsdelivr.net/gh/daeuniverse/dae-installer/installer.sh&lt;span style="color:#ff6ac1"&gt;)&lt;/span&gt;&lt;span style="color:#5af78e"&gt;&amp;#34;&lt;/span&gt; @ install use-cdn&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex="0"&gt;&lt;code class="language-dae" data-lang="dae"&gt;# 完整配置参考 https://github.com/daeuniverse/dae/blob/main/example.dae

global {
 log_level: debug
 lan_interface: eth0
 dial_mode: domain++
}

# DNS 配置
dns {
 ipversion_prefer: 4
 upstream {
 alidns: &amp;#39;udp://223.5.5.5:53&amp;#39;
 cfdns: &amp;#39;tcp+udp://1.1.1.1:53&amp;#39;
 }
 routing {
 request {
 qname(geosite:cn) -&amp;gt; alidns
 fallback: cfdns
 }
 }
}

# 直接配置 Hysteria2 节点
node {
 hy2: &amp;#34;hysteria2://user:password@domain:443/?insecure=false&amp;#34;
}

# 节点分组
group {
 proxy {
 # 直接引用上面定义的 hy2 节点
 node: hy2
 policy: min_moving_avg
 }
}

# 路由配置
routing {
 # DNS 服务器直连
 dip(8.8.8.8) -&amp;gt; must_direct
 dip(1.1.1.1) -&amp;gt; must_direct
 domain(dns.alidns.com) -&amp;gt; must_direct
 domain(cloudflare-dns.com) -&amp;gt; must_direct

 # 内网/广播地址直连
 dip(224.0.0.0/3, &amp;#39;ff00::/8&amp;#39;) -&amp;gt; direct
 dip(geoip:private) -&amp;gt; direct

 # 中国大陆 IP 和域名直连
 dip(geoip:cn) -&amp;gt; direct
 domain(geosite:cn) -&amp;gt; direct

 # 其余所有流量走代理
 fallback: proxy
}&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Linux透明代理</title><link>http://unix.pub/docs/LinuxDoc/Linux_Transparent_proxy/</link><pubDate>Fri, 14 Aug 2026 09:17:23 +0800</pubDate><guid>http://unix.pub/docs/LinuxDoc/Linux_Transparent_proxy/</guid><description>&lt;h1 id="linux透明代理"&gt;Linux透明代理&lt;a class="anchor" href="#linux%e9%80%8f%e6%98%8e%e4%bb%a3%e7%90%86"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="支持透明代理transparent-proxy-support"&gt;支持透明代理(Transparent proxy support)&lt;a class="anchor" href="#%e6%94%af%e6%8c%81%e9%80%8f%e6%98%8e%e4%bb%a3%e7%90%86transparent-proxy-support"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This feature adds Linux 2.2-like transparent proxy support to current kernels.To use it, enable the socket match and the TPROXY target in your kernel config.You will need policy routing too, so be sure to enable that as well.&lt;/p&gt;
&lt;p&gt;该功能为当前内核增加了类似于 Linux 2.2 的透明代理支持。要使用此功能，您需要在内核配置中启用 socket 匹配（socket match）和 TPROXY 目标（TPROXY target）。同时，您还需要策略路由（policy routing），因此请务必也启用该功能。&lt;/p&gt;
&lt;p&gt;From Linux 4.18 transparent proxy support is also available in nf_tables.&lt;/p&gt;
&lt;p&gt;从 Linux 4.18 开始，nf_tables 也支持透明代理功能。&lt;/p&gt;
&lt;h3 id="让非本地套接字工作making-non-local-sockets-work"&gt;让非本地套接字工作(Making non-local sockets work)&lt;a class="anchor" href="#%e8%ae%a9%e9%9d%9e%e6%9c%ac%e5%9c%b0%e5%a5%97%e6%8e%a5%e5%ad%97%e5%b7%a5%e4%bd%9cmaking-non-local-sockets-work"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The idea is that you identify packets with destination address matching a local socket on your box, set the packet mark to a certain value::&lt;/p&gt;</description></item></channel></rss>