ufw (uncomplicated firewall)

By admin, 27 三月, 2023

在配置服务器端口无法访问的时候可以通过如下方式调试:

1. 通过内网访问,如果无法访问就不是防火墙问题。

此命令可以查看端口对应服务是否正常运作:

netstat -anp | grep 8002

2. 通过公网访问,如果无法访问,可能是服务器内部软件防火墙,也可能是云服务商安全配置里没有开放端口。

下面命令可以查看内部防火墙状态:

ufw status
iptables -L INPUT -n

 

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"