Block all traffic from a Geo-located country with UFW firewall on Ubuntu

I was noticing some really strange requests in my web server’s log files on a VPS that I manage. Requests that seem to be focused on finding vulnerabilities or exploits. Turns out most of the originating IP addresses are from China. Since the VPS is not behind a router or otherwise managed firewall device, I decided to investigate if I could just block all traffic from China to my VPS. Turns out the software “Uncomplicated Firewall” or better know as UFW, that I already had running can do this easily. If you’re new to UFW have a look at this very comprehensive page showing how to set it up.

Here are two examples showing how to setup your UFW firewall to block IP addresses or ports based on Geo location. This should work on any system running UFW but in this case I did it on a headless Ubuntu 18.04 system. Click on Read more to view the rest of this article.

Continue reading

Banjo Guy Ollie

It’s been a while, but I’ve stumbled across a Youtuber that I got very exited about during my most recent Youtube-binge-watch, or rather said; my most recent descent in to the dark abyss that I call my personal “Recommended list” on Youtube.

But I made it back!! I’m here, I’m doing ok. There’s nothing to worry about. For now at least…

I realize that this guy has probably been an internet celebrity for years already and that I’m perhaps one of the last few that hadn’t discovered it yet but hey, I just discovered it for the first time, and I’m enthusiastic right now so there you go.

This Youtuber calls himself Banjo Guy Ollie and among a variety of other things, he also plays retro game-tunes / theme-songs on a range of instruments but mainly the Banjo, and he, himself and him, make really fun video’s by editing them with him playing all the instruments, performing these 8-bit tunes that are forever stored in the back of the brains of most people from my generation. That generation of old farts by now, that grew up during a time in which video gaming or the whole concept of it was only just emerging. Interesting times, especially now in retrospect.

I can already see myself rambling on from this point on so to prevent this from happening I’m just gonna stop my train of thoughts and provide you with the link to this awesome video that shows Ollie nailing the Mega man 2 tune. Enjoy!