Bonjour !
Je viens de monter un petit serveur 16.04 sur une vielle machine. simplement pour le plaisir d'apprendre des trucs en autodidacte.
Je bloque sur la configuration du firewall...
tyv@serveur-ubuntu16:/$ sudo ufw status
État : actif
Vers Action De
---- ------ --
80 ALLOW Anywhere
21 ALLOW Anywhere
22 ALLOW Anywhere
25565 ALLOW Anywhere
80 (v6) ALLOW Anywhere (v6)
21 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
25565 (v6) ALLOW Anywhere (v6)
et depuis un autre client nmap me donne ca :
Starting Nmap 7.01 ( https://nmap.org ) at 2016-09-18 00:51 CEST
Nmap scan report for serveur-ubuntu16.home (192.168.1.152)
Host is up (0.032s latency).
Not shown: 997 filtered ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 11.67 seconds
donc tout passe sauf le 25565 ! Scandale, je veux jouer à Minecrafte moi, et puis ce port ou un autre je ne comprends pas pourquoi celui là reste fermé.
Starting Nmap 7.01 ( https://nmap.org ) at 2016-09-18 00:53 CEST
Nmap scan report for serveur-ubuntu16.home (192.168.1.152)
Host is up (0.0047s latency).
PORT STATE SERVICE
25565/tcp closed minecraft
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
bref, je ne vois pas comment je peut avoir allow d'un coté et closed de l'autre, j'ai dus loupé un truc
iptables semble cohérent :
Chain ufw-user-input (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT udp -- anywhere anywhere udp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT udp -- anywhere anywhere udp dpt:fsp
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT udp -- anywhere anywhere udp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:25565
ACCEPT udp -- anywhere anywhere udp dpt:25565
Enfin, avec UFW désactivé, 25565 apparaît toujours comme fermé.
Avez-vous des pistes ? désactiver UFW et gérer iptables a la main ? (ça a l'air compliqué iptables mais je suis arrivé jusqu'ici je vais pas m’arrêter)
Merci pour le coup de main!
PS: Énorme merci à la communauté, je suis ubuntero depuis 9ans, et c'est la première fois que ne ne trouve pas mon bonheur dans les tuto / forum.