jackpot
V2EX  ›  Ubuntu

关于 WSL 下 Ubuntu 防火墙的问题

  •  
  •   jackpot · Dec 21, 2019 · 9351 views
    This topic created in 2355 days ago, the information mentioned may be changed or developed.

    请教下!!! sudo ufw status 报错: ERROR: problem running iptables: iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. 是因为 WSL 子系统没防火墙,跟 win 共用的入站规则的原因吗?还是我安装配置的问题呢?

    12 replies    2020-08-05 19:50:13 +08:00
    codehz
        1
    codehz  
       Dec 21, 2019
    wsl 不支持 ufw.
    masker
        2
    masker  
       Dec 21, 2019 via Android
    wsl 就是个阉割版,还想完全功能?
    deorth
        3
    deorth  
       Dec 21, 2019
    建议 wsl2
    7654
        4
    7654  
       Dec 21, 2019
    是的,和 Win 共用防火墙
    lostberryzz
        5
    lostberryzz  
       Dec 21, 2019
    建议虚拟机
    Mmiracle110
        6
    Mmiracle110  
       Dec 21, 2019
    虚拟机又和 Docker desktop 有冲突
    ysc3839
        7
    ysc3839  
       Dec 21, 2019
    WSL 只是个能跑 Linux 程序的子系统,并没有 Linux 的系统功能 (比如 iptables)。
    haoxingxing
        8
    haoxingxing  
       Dec 22, 2019 via iPad
    @Mmiracle110
    用 hyperv 就不会有冲突
    因为 docker desktop 就是基于 hyperv 的
    encro
        9
    encro  
       Dec 22, 2019
    @deorth

    目前不建议 wsl2,文件共享性能烂
    Mmiracle110
        10
    Mmiracle110  
       Dec 23, 2019
    @haoxingxing 然后我就是这个冲突了,开启 Hyter-V 后,安装不了虚拟机里面的 Linux 系统了
    b00tyhunt3r
        11
    b00tyhunt3r  
       Dec 23, 2019
    @deorth wsl2 必须升级 inseider 吗?刚买的 pro 不想升啊
    MarkLeeyun
        12
    MarkLeeyun  
       Aug 5, 2020
    哎。。被微软的操作迷倒了。。。不知道把功能都给实现吗。。我去。哈哈哈哈哈哈。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6048 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 39ms · UTC 03:03 · PVG 11:03 · LAX 20:03 · JFK 23:03
    ♥ Do have faith in what you're doing.