V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
learningman
V2EX  ›  程序员

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

  •  
  •   learningman ·
    Zxilly · Dec 4, 2020 · 793 views
    This topic created in 1969 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   ·   5201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.