Я не могу использовать ufw на WSL-Ubuntu

Я использую Windows 10 домой (создайте 17134.471) с WSL-Ubuntu 16.04 (гостеприимный).

Я выполнился apt update -y && ufw --force enable и получил следующую трассировку (я не знаю то, что это означает - возможно, некоторые функции ядра, отсутствующие таким образом, некоторые привели syscalls к сбою).

Там какой-либо путь состоит в том, чтобы использовать WSL-Ubuntu что касается сегодня так или иначе?

Трассировка:

ERROR: problem running ufw-init
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.0-17134-Microsoft
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.

Problem loading ipv6 (skipping)
Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/etc/ufw/user.rules'
0
задан 13 December 2018 в 16:09

1 ответ

Поскольку у Вас нет ядра Linux.

ufw frontend для netfilter. Netfilter является поддержкой Ядер Linux фильтрации пакетов IP. Windows имеет другой механизм, обычно называемый Windows Firewall.

ufw только поддержки netfilter, не Windows Firewall или другие технологии фильтрации IP. Это таким образом только работает над системами с ядром Linux.

Страница справочника упоминает это:

This  program  is for managing a Linux firewall and aims to provide an
easy to use interface for the user.

Некоторые инструменты являются действительно не портативными на различные платформы. Это включает инструменты это, как ufw, попытки соединить интерфейсом с ядром операционной системы.

3
ответ дан 26 October 2019 в 20:51

Другие вопросы по тегам:

Похожие вопросы: