Juste en passant, je suggère :
Code : Tout sélectionner
sudo ss -plant
Code : Tout sélectionner
sudo ss -lant
A+
Modérateurs : Francois, maxty01
Code : Tout sélectionner
sudo ss -plant
Code : Tout sélectionner
sudo ss -lant
Code : Tout sélectionner
[Sat Jun 26 00:00:59.854864 2021] [ssl:warn] [pid 682] AH01909: 127.0.1.1:44301:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 26 00:00:59.855663 2021] [mpm_prefork:notice] [pid 682] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sat Jun 26 00:00:59.855721 2021] [core:notice] [pid 682] AH00094: Command line: '/usr/sbin/apache2'
Code : Tout sélectionner
Starting Nmap 7.70 ( https://nmap.org ) at 2021-06-26 10:11 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000082s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 993 closed ports
PORT STATE SERVICE
21/tcp open ftp
80/tcp open http
443/tcp open https
631/tcp open ipp
3306/tcp open mysql
4445/tcp open upnotifyp
10000/tcp open snet-sensor-mgmt
Code : Tout sélectionner
State Recv-Q Send-Q Local Address:Port
LISTEN 0 5 127.0.0.1:631
LISTEN 0 128 0.0.0.0:4445
LISTEN 0 80 127.0.0.1:3306
LISTEN 0 128 0.0.0.0:10000
ESTAB 0 0 192.168.0.102:4445
ESTAB 0 64 192.168.0.102:4445
ESTAB 0 0 192.168.0.102:60258
LISTEN 0 32 *:21
LISTEN 0 5 [::1]:631
LISTEN 0 511 *:443
LISTEN 0 128 [::]:4445
LISTEN 0 511 *:80
Code : Tout sélectionner
ufw status verbose
Comme le disait piper, si aucun service ne réponds sur 44301, peut importe que le pare-feu soit ouvert ou pas, tu ne le verras pas.JackJack44 a écrit : ↑sam. 26 juin 2021 10:49Je ne comprends pas pourquoi ce 2ème RPI de tests ne voit pas le port ouvert ??
Code : Tout sélectionner
To Action From
-- ------ ----
4445 ALLOW IN Anywhere
22 DENY IN Anywhere
443 ALLOW IN Anywhere
80/tcp ALLOW IN Anywhere
443/tcp ALLOW IN Anywhere
10000/tcp ALLOW IN Anywhere
8443 ALLOW IN Anywhere
44301 ALLOW IN Anywhere
44301/tcp ALLOW IN Anywhere
4445 (v6) ALLOW IN Anywhere (v6)
22 (v6) DENY IN Anywhere (v6)
443 (v6) ALLOW IN Anywhere (v6)
80/tcp (v6) ALLOW IN Anywhere (v6)
443/tcp (v6) ALLOW IN Anywhere (v6)
10000/tcp (v6) ALLOW IN Anywhere (v6)
8443 (v6) ALLOW IN Anywhere (v6)
44301 (v6) ALLOW IN Anywhere (v6)
44301/tcp (v6) ALLOW IN Anywhere (v6)