Answer the question
In order to leave comments, you need to log in
Ubuntu 18.04 brute 22 port?
There is a lot of traffic on port 22 during the night, 10 gigs ran up, I suspect that my VDS is being brute, I found on the Internet how to block IP in iptables, I prescribe the command, but the brute still goes. Brutus from Turkish IP
Answer the question
In order to leave comments, you need to log in
well, hide it on a different port number,
for example, on 1022 or another
manual
If there is a brute, then iptables will not help. If it would be a local computer, then just set the router (or firewall) and configure the blocking of this IP. There are few options on VDS: either, as Vladimir said , just put it on another port or contact the hosting provider and ask to block incoming traffic from this Turkish IP!
They are all screwed up.
It is enough to put the server on the Internet - and your 22nd brute and brute and brute.
Try configuring iptabels with the following options:
sudo iptables -A INPUT -p tcp --dport ssh -m state --state NEW -m recent --name SSH_BRUTE --set
sudo iptables -A INPUT -p tcp --dport ssh -m state --state NEW -m recent --name SSH_BRUTE --update --seconds 60 --hitcount 3 --rttl -j REJECT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question