IPTables

Exposing Services Behind a Firewall

Synopsis

Sometimes you may find yourself in a situation in which you would like to host a service but sometimes you’re stuck behind a double NAT, or even just a firewall in which you do not control all of the rules for. Here I’m going to show you how to use Wireguard VPN to finagle around this issue and simply give your private server a public IP address. Important note: in order for this to work, you will need a publicly accessible VPS, preferably with a static IP address, i would recommend either AWS Lighsail or Linode as they are both cost-effective options with their cheapest tiers being bout $3.50/mo and $5/mo respectively (I like Linode’s speed more, they aren’t paying me to say this although I wish they were).

Read more >

Rate Limiting with IPTables

Synopsis

When hosting public servers, whether that be Web, SSH, or whatever you want to roll out, people’s biggest concerns are either automated attacks consuming resources and denying your access or those same attacks constantly attempting to authenticate to your application through brute forcing your authentication. I’m going to write this from the perspective of someone simply trying to secure a service that they expect a limited amount of use to, in my case ssh.

Read more >