Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/05/2017, 01:08
Avatar de cluster28
cluster28
 
Fecha de Ingreso: enero-2008
Ubicación: Donostia - San Sebastián
Mensajes: 756
Antigüedad: 16 años, 4 meses
Puntos: 32
Respuesta: Nginx en Vagrant

Código BASH:
Ver original
  1. $ sudo netstat -tulnp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  4. tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      1405/nginx -g daemo
  5. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1292/sshd      
  6. tcp6       0      0 :::22                   :::*                    LISTEN      1292/sshd      
  7. udp        0      0 0.0.0.0:68              0.0.0.0:*                           1198/dhclient  
  8. udp        0      0 192.168.56.103:123      0.0.0.0:*                           1398/ntpd      
  9. udp        0      0 10.0.2.15:123           0.0.0.0:*                           1398/ntpd      
  10. udp        0      0 127.0.0.1:123           0.0.0.0:*                           1398/ntpd      
  11. udp        0      0 0.0.0.0:123             0.0.0.0:*                           1398/ntpd      
  12. udp6       0      0 fe80::a00:27ff:fe54:123 :::*                                1398/ntpd      
  13. udp6       0      0 fe80::a00:27ff:fe44:123 :::*                                1398/ntpd      
  14. udp6       0      0 ::1:123                 :::*                                1398/ntpd      
  15. udp6       0      0 :::123                  :::*                                1398/ntpd
Código BASH:
Ver original
  1. $ sudo iptables -S
  2. -P INPUT ACCEPT
  3. -P FORWARD ACCEPT
  4. -P OUTPUT ACCEPT
  5. -A INPUT -p icmp -m comment --comment "000 accept all icmp" -j ACCEPT
  6. -A INPUT -i lo -m comment --comment "001 accept all to lo interface" -j ACCEPT
  7. -A INPUT -d 127.0.0.0/8 ! -i lo -m comment --comment "002 reject local traffic not on loopback interface" -j REJECT --reject-with icmp-port-unreachable
  8. -A INPUT -m comment --comment "003 accept related established rules" -m state --state RELATED,ESTABLISHED -j ACCEPT
  9. -A INPUT -p tcp -m multiport --dports 22 -m comment --comment "100 tcp/22" -j ACCEPT
  10. -A INPUT -p tcp -m multiport --dports 80 -m comment --comment "100 tcp/80" -j ACCEPT
  11. -A INPUT -m comment --comment "999 drop all" -j DROP

Parece que está aquí el problema. A ver si me apaño para solucionarlo...

Última edición por cluster28; 16/05/2017 a las 01:20 Razón: Iptables info