Liberar acesso remoto por ssh com módulo recent

Faça telnet na porta 2221 para liberar acesso a porta 22 para o IP de origem

iptables -A INPUT -p tcp --dport 22 -m recent --rcheck --name SSH --rsource -j ACCEPT

iptables -A INPUT -p tcp --dport 2221 -m recent --set --name SSH --rsource -j LOG --log-prefix "SSH: acesso liberado"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s