am-fs
10-20-2009, 11:41 AM
My Host says im under a Brute Force SSH Attack.
They told me to set up firewall [iptables]
Problem is i never used SSH and have no clue on the settings.
I have had my VB site since 05 and never had any problems with attacks.
So now it is time to learn SSH.
When setting up SSH, what Bin should be used on the server? ( See Attachment )
Does this code look right:
iptables -N SSH_CHECK
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSH_CHECK
iptables -A SSH_CHECK -m recent --set --name SSH
iptables -A SSH_CHECK -m recent --update --seconds 60 --hitcount 4 --name SSH -j DROP
Also is there any other instructions after using the above code?
Like Rebooting server, ect?
Thanks
Am-fs
They told me to set up firewall [iptables]
Problem is i never used SSH and have no clue on the settings.
I have had my VB site since 05 and never had any problems with attacks.
So now it is time to learn SSH.
When setting up SSH, what Bin should be used on the server? ( See Attachment )
Does this code look right:
iptables -N SSH_CHECK
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SSH_CHECK
iptables -A SSH_CHECK -m recent --set --name SSH
iptables -A SSH_CHECK -m recent --update --seconds 60 --hitcount 4 --name SSH -j DROP
Also is there any other instructions after using the above code?
Like Rebooting server, ect?
Thanks
Am-fs