Use the right rules in your firewall
How should an administrator determine what rules to set up in a particular firewall?
Incoming and outgoing traffic flow rules are the traffic flows used by your applications and operating system. You should document their source, destination, ports and any other useful characteristics about them. Lay them out in tables or in a spreadsheet to allow you to better visual and keep track of them. You should also try to "lock" down your rules. If it is possible to limit the source or destination of traffic flow, then do so. For example, if you only need to access two DNS servers then you can write rules to ensure traffic on port 53 can only go to those DNS servers.
Defensive rules consist of rules designed to counter known network-based attacks, scanning and other forms of malicious traffic. There are a variety of these available to you. Many of them are documented in various iptables scripts or sites online. These include rules to counteract network and port scans, SYN/ACK attacks, SYN flooding and other types of malicious traffic. These change on a regular basis so you need to keep up with current attacks and counters. You also need to extensively test these sorts of rules. In the past, badly coded applications have occasionally behaved like attack or scanning tools and had their traffic blocked by these types of rules.
Dig Deeper on Linux servers
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our Data Center experts
View all Data Center questions and answers
Start the conversation
0 comments