您尚未登录。

#1 2023-05-27 23:04:00

greenhandzdl
会员
注册时间: 2023-05-27
帖子: 1

防火牆設置問題

![如圖](https://imgs.wiki/imgs/2023/05/27/38573e59135105e7.png)
我已經對防火牆進行設置了,但是我掃描端口時還是發現沒有打開,這令我很困惑(我也嘗試了關閉防火牆,發現掃描本地迴環是正常的,但是掃描外部時還是沒有打開,不能訪問)
```
➜  ~ nmap 127.0.0.1
Starting Nmap 7.94 ( https://nmap.org ) at 2023-05-27 23:02 CST
Nmap scan report for kubernetes.docker.internal (127.0.0.1)
Host is up (0.00039s latency).
Not shown: 996 closed tcp ports (conn-refused)
PORT     STATE SERVICE
22/tcp   open  ssh
631/tcp  open  ipp
9090/tcp open  zeus-admin
9091/tcp open  xmltec-xmlmail

Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
➜  ~ ifconfig
bond_0(eno1&lo): flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.110.4  netmask 255.255.255.0  broadcast 192.168.110.255
        inet6 fd::1a87:f309:d35f:859a  prefixlen 64  scopeid 0x0<global>
        inet6 fd::462f  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::9d92:2299:90fb:4818  prefixlen 64  scopeid 0x20<link>
        ether ce:f1:2a:1e:fb:87  txqueuelen 1000  (Ethernet)
        RX packets 79010  bytes 84758837 (80.8 MiB)
        RX errors 0  dropped 11  overruns 0  frame 0
        TX packets 58846  bytes 11665014 (11.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether ce:f1:2a:1e:fb:87  txqueuelen 1000  (Ethernet)
        RX packets 146702  bytes 153069620 (145.9 MiB)
        RX errors 0  dropped 17  overruns 0  frame 0
        TX packets 111048  bytes 19603996 (18.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0xb3280000-b32a0000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 209246  bytes 151109398 (144.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 209246  bytes 151109398 (144.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

➜  ~ nmap 192.168.110.4
Starting Nmap 7.94 ( https://nmap.org ) at 2023-05-27 23:03 CST
Nmap scan report for archlinux.lan (192.168.110.4)
Host is up (0.00064s latency).
Not shown: 999 closed tcp ports (conn-refused)
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds
```

离线

页脚