A default-deny firewall
There are two ways to write a firewall: block the bad and allow everything else, or allow the good and block everything else. The second is far safer, and only a little more work.
Why default-deny wins
If you block only known threats, every service you forget about is open, and every new one is exposed until you remember it. With default-deny, anything you have not explicitly allowed is closed, so a forgotten port is a non-event rather than a hole.
Allow deliberately
Start by denying everything inbound, then open exactly the ports your services need, from the sources that should reach them. The result is a short, readable list of what is permitted — and that list doubles as documentation of what the server actually does.
Do not lock yourself out
The classic mistake is to cut your own access while tightening the rules. Keep out-of-band access as a safety net, and build on the firewall and stateful foundations so return traffic is handled correctly.
Still stuck? Mail support@novogara.com — an engineer answers, at any hour. Back to the knowledge base