九维我操你爹
https://fxtwitter.com/popovicu94/status/1993165606997156077
#TIL
A very insightful thread, this could actually save my days.
BTW, I would recommend using mmdebstrap instead of debootstrap
https://gitlab.mister-muffin.de/josch/mmdebstrap#the-sales-pitch-in-comparison-to-debootstrap
#TIL
A very insightful thread, this could actually save my days.
BTW, I would recommend using mmdebstrap instead of debootstrap
https://gitlab.mister-muffin.de/josch/mmdebstrap#the-sales-pitch-in-comparison-to-debootstrap
我发现很多工程师可能不知道 linux 并没有 local -> local 这条网络链路,当我们 curl localhost:8000 的时候本质是走了一次 outbound 链路,然后被 lo 导回来,变成一次 inbound 链路。
所以熟悉 nf 立刻就知道一个 curl localhost 会走哪些 chains 了:
1. outbound: OUTPUT + POSTROUTING
2. inbound: PREROUTING + INPUT
这就是为什么 “网上最容易找到的 iptables 各 table 各 chain 关系的图,怎么都像是画图的人根本不知道还可以同一台机器内 process -> process 一样,只画了 interface -> process, interface -> interface, process -> interface,导致看不出 process -> process 会经过哪些 chain”。
如果自己用过 AF_PACKET + SOCK_RAW 模拟 tcpdump 抓包,会发现 lo 上会抓到双重流量,这就是因为一次 egress 一次 ingress (tcpdump 本身处理得很好所以你看不到 lo 的双重流量)
如果用 pwru 也能看到 lo 上的 rx 路径的软中断,是一次完整的收包链路。
所以,local -> local 的流量,本质是一次 tx + 一次 rx。
所以熟悉 nf 立刻就知道一个 curl localhost 会走哪些 chains 了:
1. outbound: OUTPUT + POSTROUTING
2. inbound: PREROUTING + INPUT
这就是为什么 “网上最容易找到的 iptables 各 table 各 chain 关系的图,怎么都像是画图的人根本不知道还可以同一台机器内 process -> process 一样,只画了 interface -> process, interface -> interface, process -> interface,导致看不出 process -> process 会经过哪些 chain”。
如果自己用过 AF_PACKET + SOCK_RAW 模拟 tcpdump 抓包,会发现 lo 上会抓到双重流量,这就是因为一次 egress 一次 ingress (tcpdump 本身处理得很好所以你看不到 lo 的双重流量)
如果用 pwru 也能看到 lo 上的 rx 路径的软中断,是一次完整的收包链路。
所以,local -> local 的流量,本质是一次 tx + 一次 rx。
今天发现macos runner image坏了,最怕CI出现我看不懂的奇怪错误。结果一查,报bug的队排了老长了 https://github.com/actions/runner-images/issues/13341
所以事实证明,你怎样锁action版本都没用,runner image给你升级了都不会告诉你
所以事实证明,你怎样锁action版本都没用,runner image给你升级了都不会告诉你
https://fxtwitter.com/nikkei/status/1992224288540119360
It's a new low for both the Prime Minister and the Nikkei Media. 😅
It's a new low for both the Prime Minister and the Nikkei Media. 😅
隔壁 ibug 在仔细检查这张最著名的 netfilter 流程图 (https://en.wikipedia.org/wiki/Iptables#/media/File:Netfilter-packet-flow.svg) 是否准确,实在是太棒了,好喜欢他 (as a software engineer, not homosexually)。
其实我也有一大堆未解之谜,但已经暂时性地自暴自弃了,等他先排查一遍我再仔细学习一个。
截至目前 (2025-11-22) 仍在持续更新中: https://t.me/iBugThought/4833
其实我也有一大堆未解之谜,但已经暂时性地自暴自弃了,等他先排查一遍我再仔细学习一个。
截至目前 (2025-11-22) 仍在持续更新中: https://t.me/iBugThought/4833