• 请不要在回答技术问题时复制粘贴 AI 生成的内容
learningman
V2EX  ›  程序员

为什么 WSL2 中 iptables 在不同用户下加载的模块不同?

  •  
  •   learningman ·
    Zxilly · Dec 4, 2020 · 842 views
    This topic created in 2009 days ago, the information mentioned may be changed or developed.

    我在开发一个使用了 iptables 的 NFQUEUE target 的程序,并试图在 Windows 下使用 WSL2 来完成程序的调试

    但是问题在于,当我使用我的用户账号时,执行iptables -j NFQUEUE -h可以找到模块,但是在 root 用户下就找不到了?

    image.png

    image.png

    这太让人迷惑了,在不同的用户下which iptables的结果也是相同的啊

    环境是微软商店全新安装的 Ubuntu with WSL2,系统是 20H2 的 Surface Pro 4

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 06:33 · PVG 14:33 · LAX 23:33 · JFK 02:33
    ♥ Do have faith in what you're doing.