ufw 不工作

ufw 不工作
ufw allow 11963/tcp
ufw reload
ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
11963/tcp                  ALLOW IN    Anywhere
11963/tcp (v6)             ALLOW IN    Anywhere (v6)

root@something# sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      3115/systemd-resolv
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      885/sshd: /usr/sbin
tcp        0      0 127.0.0.1:12798         0.0.0.0:*               LISTEN      299986/cardano-node
tcp        0      0 127.0.0.1:12788         0.0.0.0:*               LISTEN      299986/cardano-node
tcp6       0      0 :::22                   :::*                    LISTEN      885/sshd: /usr/sbin

但它不在那里,如果我尝试类似的网站,就会确认https://www.yougetsignal.com/tools/open-ports/或者http://port.ping.pe/请帮助我理解。

答案1

您已使用 UFW 允许端口监听,但尚未启动端口监听,请安装 netcat(如果尚未安装),然后尝试:

nc -l 11963

相关内容