jijiac64089 发表于 2025-4-10 22:08:28

学艺不精,谷歌和AI也找不到答案:sslocal如何透明代理?

<i class="pstatus"> 本帖最后由 jijiac64089 于 2025-4-10 22:09 编辑 </i><br />
<br />
根据 酸酸乳-rust 的 github 官方指导<br />
https://github.com/酸酸乳/酸酸乳-rust?tab=readme-ov-file#transparent-proxy-local-client<br />
<br />
我已经在 openwrt 23.05 路由器上执行了以下命令(服务器地址正确)<br />
<font size="1">sslocal -b &quot;127.0.0.1:60080&quot; --protocol redir -s &quot;1.2.3.4:8388&quot; -m &quot;aes-256-gcm&quot; -k &quot;hello-kitty&quot; --tcp-redir &quot;redirect&quot; --udp-redir &quot;tproxy&quot;</font><br />
<br />
这样,sslocal就能启动透明代理了<br />
<br />
-----------------------------------------------------------------------<br />
-----------------------------------------------------------------------<br />
<br />
问题来了:我不知道如何编写 openwrt nftables 防火Q的规则,来达到透明代理的效果<br />
<br />
我搜遍了谷歌,问遍了AI,都没有解决。因此特来请教 MJJ,还望大佬赐教<br />
<br />
<font color="Red">PS:为了让我有个直观的理解,我想先从最简单的场景出发:让局域网 192.168.2.100 的所有流量都走上述代理,也就是全局代理 192.168.2.100。openwrt nftables 防火Q的规则怎么写,才能实现?</font><br />
<br />
<img src="https://hostloc.com/static/image/smiley/yct/002.gif" smilieid="30" border="0" alt="" />

Lshe 发表于 2025-4-10 22:14:52

https://github.com/zfl9/ss-tproxy

jijiac64089 发表于 2025-4-10 22:33:42

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16324220&ptid=1401962" target="_blank"><font color="#999999">Lshe 发表于 2025-4-10 22:14</font></a></font><br />
https://github.com/zfl9/ss-tproxy</blockquote></div><br />
谢谢大佬,已经认真看了,又多了解了些理论知识。但是,还是没有解决我的问题,我想先知其然,然后举一反三
页: [1]
查看完整版本: 学艺不精,谷歌和AI也找不到答案:sslocal如何透明代理?