Problème de port sous ElementaryOS (Linux)

cloud38690

Dev Java
18 Novembre 2016
36
0
17
24
97068720161118180714.png
J'ai réussi à me connecter avec l'ip local !!!!!!

Bon, maintenant, il reste quand même le plus gros ! Que l'adresse externe fonctionne !

J'ai besoin d'une commande dans le terminal pour faire un règle pour le port de minecraft soit 25565
 
Dernière édition par un modérateur:

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 891
158
3 004
347
26
Alsace
www.minecraftforgefrance.fr
Le port est déjà 25565 par défaut.

Et normalement ton adresse externe fonctionne déjà, mais pas pour toi, seulement pour ceux qui ne sont pas sur ton réseau.
C'est ce que je t'ai déjà expliqué deux fois ...
 

cloud38690

Dev Java
18 Novembre 2016
36
0
17
24
Maiissssss, avec Windows ça marche l'adresse externe :'(

Si je vais sur un site pour voir si c'est bien ouvert un port, si j'allume mon serveur sur linux ça mets que mon port est fermé si j'allume sur windows il est ouvert
 
Dernière édition par un modérateur:

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 891
158
3 004
347
26
Alsace
www.minecraftforgefrance.fr
Maiissssss, avec Windows ça marche l'adresse externe :'(
Donc Free gère aussi le nat même quand les requêtes viennent de l'intérieur ? Avec Orange ce n'est pas le cas.


Il y a peut-être quelque chose qui bloque toujours au niveau de Linux.
Tu as changé quoi dans les iptable ?
Sous Ubuntu par défaut rien n'est bloqué, c'est surement la même chose sous elementary os, donc normalement il n'y a rien à changer.
 

cloud38690

Dev Java
18 Novembre 2016
36
0
17
24
J'ai essayé d'installer un logiciel avec une interface graphique parce que pour les iptables je comprenez pas
 

cloud38690

Dev Java
18 Novembre 2016
36
0
17
24
Voici ce que ça m'écris :


Code:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination        
303K  425M ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
303K  425M ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
119K  160M ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
111K  159M ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
111K  159M ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
111K  159M ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination        
    0     0 ufw-before-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
    0     0 ufw-before-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
    0     0 ufw-after-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
    0     0 ufw-after-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
    0     0 ufw-reject-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
    0     0 ufw-track-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination        
171K   11M ufw-before-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
171K   11M ufw-before-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
66641 5031K ufw-after-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
66641 5031K ufw-after-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
66641 5031K ufw-reject-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
66641 5031K ufw-track-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-after-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-after-input (1 references)
pkts bytes target     prot opt in     out     source               destination        
  486 37908 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:137
   43  9951 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:138
    0     0 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:139
    0     0 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:445
   74 24302 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
    0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:68
  206 12730 ufw-skip-to-policy-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST

Chain ufw-after-logging-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

Chain ufw-after-logging-input (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-after-logging-output (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-after-output (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-before-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 4
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
    0     0 ufw-user-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-before-input (1 references)
pkts bytes target     prot opt in     out     source               destination        
  886 96282 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0          
  704  103K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 4
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:67 dpt:68
  829 86365 ufw-not-local  all  --  *      *       0.0.0.0/0            0.0.0.0/0          
   11  1014 ACCEPT     udp  --  *      *       0.0.0.0/0            224.0.0.251          udp dpt:5353
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            239.255.255.250      udp dpt:1900
  818 85351 ufw-user-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-before-logging-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-before-logging-input (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-before-logging-output (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-before-output (1 references)
pkts bytes target     prot opt in     out     source               destination        
  886 96282 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0          
  310 37324 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
  520 34824 ufw-user-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-logging-allow (0 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "

Chain ufw-logging-deny (2 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID limit: avg 3/min burst 10
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

Chain ufw-not-local (1 references)
pkts bytes target     prot opt in     out     source               destination        
   24  1630 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type LOCAL
   11  1014 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type MULTICAST
  794 83721 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST
    0     0 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-reject-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-reject-input (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-reject-output (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-skip-to-policy-forward (0 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-skip-to-policy-input (7 references)
pkts bytes target     prot opt in     out     source               destination        
  809 84891 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-skip-to-policy-output (0 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-track-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-track-input (1 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW

Chain ufw-track-output (1 references)
pkts bytes target     prot opt in     out     source               destination        
   35  2100 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW
  485 32724 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW

Chain ufw-user-forward (1 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-user-input (1 references)
pkts bytes target     prot opt in     out     source               destination        
    9   460 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:25565
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            78.209.40.228        tcp dpt:25565

Chain ufw-user-limit (0 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable

Chain ufw-user-limit-accept (0 references)
pkts bytes target     prot opt in     out     source               destination        
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0          

Chain ufw-user-logging-forward (0 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-user-logging-input (0 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-user-logging-output (0 references)
pkts bytes target     prot opt in     out     source               destination        

Chain ufw-user-output (1 references)
pkts bytes target     prot opt in     out     source               destination
 

robin4002

Expert en informatique et systèmes d'information
Staff
Responsable technique
Responsable forum
12 Novembre 2012
20 891
158
3 004
347
26
Alsace
www.minecraftforgefrance.fr
Tu as pas mal de règle, et visiblement sur le FORWARD il drop tout.
Je vais reboot sous Ubuntu pour comparer ce que j'ai de mon côté et j'édite ce message pour te dire ce que j'ai.

Mais à mon avis tu as bien quelque chose qui bloque ici.

EDIT : vide chez moi :

Code:
robin@robin-laptop:~$ sudo iptables -L -n -v
[sudo] Mot de passe de robin :
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination       

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination       

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Tu peux tout retirer avec un petit script : https://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html
puis relancer ton serveur pour voir si c'est bon ;)
 
Dernière édition: