小编Mat*_*ios的帖子

CentOS 7 SNMP 端口总是关闭

我有一台 CentOS 7 服务器,我在其中打开了用于 SNMP 连接的端口。

即使我可以看到这里打开的端口:

[matias@Centos_7_VM ~]$  sudo firewall-cmd --list-all
[sudo] password for matias:
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens33
  sources:
  services: ssh dhcpv6-client
  ports: 80/tcp 10050/tcp 50000/tcp 161/tcp 160/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
Run Code Online (Sandbox Code Playgroud)

当我尝试从外部访问此端口时,我总是发现它已关闭。甚至 nmap 也同意这一点:

Starting Nmap 7.01 ( https://nmap.org ) at 2018-08-01 14:52 -03
Nmap scan report for Centos_7_VM (192.168.43.216)
Host is up (0.52s latency).
Not shown: 996 filtered ports
PORT      STATE  SERVICE
22/tcp    open   ssh
80/tcp    open   http …
Run Code Online (Sandbox Code Playgroud)

firewall centos port-scanning

3
推荐指数
1
解决办法
2540
查看次数

标签 统计

centos ×1

firewall ×1

port-scanning ×1