Hey Linode!

After getting my VPS shut down for a second time by Digital Ocean (which apparently was issuing DOS network packets – no further explanation from DO), I decided to give Linode another whirl.

And here we are.

Running Ubuntu 16.04 LTS and it’s a smooth as butta.

Software for now:

  • nginx 1.10
  • PHP 7.0.8
  • MySQL 5.7.15

Will also probably get Node v6 running up there soon too.

Linux – Blocking bad IPs

This is more an informational post for myself, but here’s some nifty commands that help debug what’s going wrong on a server when things aren’t going right.

netstat -t
netstat -tn

These are good for watching WHO is hitting your server and what their IP is. netstat -tn shows the unresolved address, so you should get the IP’s of possible spammers

Once you’ve got the IP(s) you can block them with iptables like so:

iptables -I INPUT -s <IP ADDRESS> -j DROP

Another good tool for watching network traffic is iftop. You’ll need to install this one via Yum or Apt though:

Β iftop -N -i eth0

1__ssh

And for overall machine health, nothing beats good old htop! Ahh, CPU usage back to normal.

1__ssh