Iptables Cheatsheet

What is Policy Scripts for setting up iptables often start with setting the policy which is specified with -P or --policy. The policy can take a value of ACCEPT or DROP and is what will happen to any packets that don't manage to fit into any rules that are specified…

Read this article

Rate Limit Requests with Iptables

You can rate limit connections to your server by IP so that no single IP can create more than X connections per Y period before being blocked. These can be any type of connection, based on port. Below is my example that will limit the number of connections to my…

Read this article