<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>绕过 | 折腾啥</title><description>Power Users/Automators 折腾/讨论/分享各种开源工具/脚本/自动化工作流👥 @zhetengsha_group📌 合集 https://t.me/zhetengsha/2🎁 恰饭 https://t.me/zhetengsha/957📢 广告投放 @xream @xream_botBuy ads: https://telega.io/c/zhetengshafeedId:55438372655431680+userId:62307599601855488</description><link>http://telegram.zhetengsha.eu.org</link><item><title>如何让容器/进程不走代理5202 年了, 还有人不会...根本不需要 macvlan0. 创建一个用户useradd -u 8964 xxx</title><link>http://telegram.zhetengsha.eu.org/posts/2403</link><guid isPermaLink="true">http://telegram.zhetengsha.eu.org/posts/2403</guid><pubDate>Sun, 26 Jan 2025 03:29:52 GMT</pubDate><content:encoded>&lt;u&gt;如何让容器/进程不走代理&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;5202 年了, 还有人不会...根本不需要 macvlan&lt;br /&gt;&lt;br /&gt;0. 创建一个用户&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;useradd -u 8964 xxx

usermod -aG sudo xxx

id xxx&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6328063702775892892.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 以二进制版 snell-server 为例&lt;br /&gt;&lt;br /&gt;1. 编辑 &lt;code&gt;/etc/systemd/system/snell-server.service&lt;/code&gt; 里的 User&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-python&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;Service&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;
User&lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt;xxx&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. 重启&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;systemctl daemon-reload
systemctl restart snell-server&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3. 检查&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;ps -eo user,group,uid,gid,comm | grep snell
ps -u 8964&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6328063702775892892.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 以容器版 snell-server 为例&lt;br /&gt;&lt;br /&gt;1. 配置容器&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt; 8964&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;8964&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;2. 检查&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;ps -eo user,group,uid,gid,comm | grep snell
ps -u 8964&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6328063702775892892.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; 以容器版 qBittorrent 为例&lt;br /&gt;&lt;br /&gt;1. 配置容器&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-yaml&quot;&gt;&lt;span class=&quot;token key atrule&quot;&gt;environment&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; UID=8964
  &lt;span class=&quot;token punctuation&quot;&gt;-&lt;/span&gt; GID=8964&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3. mihomo 配置参考, sing-box 同理&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;&lt;span class=&quot;token literal-property property&quot;&gt;tun&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt;
  exclude&lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;uid&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;8964&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;重载配置/重启&lt;br /&gt;&lt;br /&gt;4. 检查&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;ps -eo user,group,uid,gid,comm | grep qbittorrent
ps -u 8964&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6327880277607583303.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha/2&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;频道资源合集&quot;&gt;频道资源合集&lt;/a&gt;  &lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6327792445526380187.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha/957&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;恰饭推荐&quot;&gt;恰饭推荐&lt;/a&gt;  &lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6021860481923288796.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;https://t.me/zhetengsha_group&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; title=&quot;群组&quot;&gt;群组&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class=&quot;tg-emoji&quot; src=&quot;/static/https://telegram.me/i/emoji/6327836885552991740.webp&quot; alt=&quot;&quot; loading=&quot;lazy&quot; width=&quot;20&quot; height=&quot;20&quot; /&gt; &lt;a href=&quot;/search/result?q=%23%E4%BB%A3%E7%90%86&quot; title=&quot;#代理&quot;&gt;#代理&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E5%AE%B9%E5%99%A8&quot; title=&quot;#容器&quot;&gt;#容器&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E9%85%8D%E7%BD%AE&quot; title=&quot;#配置&quot;&gt;#配置&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E6%9C%8D%E5%8A%A1&quot; title=&quot;#服务&quot;&gt;#服务&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23TUN&quot; title=&quot;#TUN&quot;&gt;#TUN&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23mihomo&quot; title=&quot;#mihomo&quot;&gt;#mihomo&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23singbox&quot; title=&quot;#singbox&quot;&gt;#singbox&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23docker&quot; title=&quot;#docker&quot;&gt;#docker&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23%E7%BB%95%E8%BF%87&quot; title=&quot;#绕过&quot;&gt;#绕过&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23exclude&quot; title=&quot;#exclude&quot;&gt;#exclude&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23uid&quot; title=&quot;#uid&quot;&gt;#uid&lt;/a&gt;</content:encoded></item></channel></rss>