Change the default ssh port. Most of the attacks are from automated crawlers that try to brute force port 22. Your logs will become much more manageable.
Who's Attacking My Server?
151–160 of 231 posts
Re: Who's Attacking My Server?
#152Earlier quoted context omitted.
Before going about a blocking potential people who are in fact interested in your content/service (which you can't know if they are or not based on the country), did you do the bare minimum to secure your server against attackers from any other location, namely changed from the default password and disabled password login? Your approach to security has a number of issues. First, you don't know if someone is actually…
I DO run a "public" service, in that it provides some info to people. However I run it at totally my own cost, the information is for entertainment value only (and not in the "I just say that to get around this being horrible in some way"; it's literally information about gaming and games), and I just don't need the hassle of the constant hack attempts. I block China and Russia, and have for years, using publicly ava…
Re: Who's Attacking My Server?
#153Earlier quoted context omitted.
Not an option for me, but thanks for the suggestion. I don't want to erect a geo-fence here.
chinese goverment already did that for you. anyone who really needs to access you site from inside china will use vpn or tor.
Re: Who's Attacking My Server?
#154I just ban China entirely from accessing my server. There's nothing on it a Chinese person could be interested in, just personal stuff and a private forum. Doing so has tremendously reduced the overall (remaining) abuse traffic volume. It's quite easy and efficient to do this using IPSet. IP ranges associated with China are available on the net.
IP ranges associated with China are available on the net. Didn't help me all that much. Most of the abuse and spam leveled at the servers I manage come through $5 DigitalOcean servers being used as relays. It's the same thing that ruined voice telephony: Make the connection so cheap that it can be abused at scale.
Re: Who's Attacking My Server?
#155Earlier quoted context omitted.
qmail has one of the most notoriously inscrutable codebases of all time, and it has a startlingly good track record, because there's a coherent security design behind it; the same --- to a greater extent! --- goes for OpenSSH.
There's a side of this that I agree with, however there's other sides. The reason I've been in the code base a bunch is because I've taken on support of forks bootstrapped by others in various scenarios. Design safety goes a fairly long way, but it's so easy to screw up patching code shaped this way. I might trust the core, but I don't trust external patches. The problem in practice is, distros can't help themselves.
Re: Who's Attacking My Server?
#156Re: Who's Attacking My Server?
#157It's also worth noting that if an attacker knows how to spoof your IP address, they can lock you out of your own server.
Re: Who's Attacking My Server?
#158I once made a very similar visualization to see where people were trying to attack my servers from by adapting (e.g. use local geoip database file instead of ipinfo service) the Python script from [1], which uses folium to generate an interactive (standalone HTML file) heatmap of IP address locations. [1] https://github.com/meesaltena/SSHHeatmap
Re: Who's Attacking My Server?
#159Earlier quoted context omitted.
I DO run a "public" service, in that it provides some info to people. However I run it at totally my own cost, the information is for entertainment value only (and not in the "I just say that to get around this being horrible in some way"; it's literally information about gaming and games), and I just don't need the hassle of the constant hack attempts. I block China and Russia, and have for years, using publicly ava…
Can you really call it a public service if its not accessible to the public? Maybe a "Americas/Europe"-only service, but then it would sound questionable...
Re: Who's Attacking My Server?
#160Earlier quoted context omitted.
I DO run a "public" service, in that it provides some info to people. However I run it at totally my own cost, the information is for entertainment value only (and not in the "I just say that to get around this being horrible in some way"; it's literally information about gaming and games), and I just don't need the hassle of the constant hack attempts. I block China and Russia, and have for years, using publicly ava…
Can you really call it a public service if its not accessible to the public? Maybe a "Americas/Europe"-only service, but then it would sound questionable...
The Seattle Public Library is a public service despite not allowing residents of Guangzhou to borrow books.