Skip to main content

Thread: How to block a country access to server


hello. wondering. have since moved ssh port custom during stay on port 22 noticed logon attempts came china. can block china access (www ssh anything) iptables or something, this?

ssh attacks come countries long have ssh set listen on default port 22. changing port, have done, best thing stop them.

far blocking country, don't know, should able block ip address ranges sshd_config


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [all variants] How to block a country access to server


Ubuntu

Comments