4o8o4
(usa CentOS)
Enviado em 16/10/2016 - 14:02h
Execute os comando e cole a saída aqui.
netstat -nltp|grep 22
e
iptables-save
tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 1878/sshd
tcp 0 0 :::22 :::* OUÇA 1878/sshd
# Generated by iptables-save v1.4.7 on Sat Oct 8 10:44:31 2016
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [53:15872]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Sat Oct 8 10:44:31 2016