1,服务器可ping通

2,服务器抓本地的http请求包,可以抓到

3,本地抓服务器返回的http响应包,抓不到

 

经过查找,是由于开启了Linux防火墙

查看防火墙配置(需要root权限)

[root@localhost ~]# service iptables status  
Redirecting to /bin/systemctl status  iptables.service  
iptables.service - IPv4 firewall with iptables     Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)  
Active: inactive (dead) 

关闭防火墙(需要root权限)

[root@localhost ~]# service iptables stop 

 

相关文章:

  • 2021-10-13
  • 2021-09-28
  • 2021-06-02
  • 2021-12-05
  • 2022-12-23
  • 2021-10-27
  • 2022-02-07
  • 2021-11-21
猜你喜欢
  • 2021-05-24
  • 2021-10-16
  • 2021-12-02
  • 2021-05-07
  • 2022-02-07
相关资源
相似解决方案