The KMyFirewall Handbook
A note about security in general
A firewall cannot guarantee 100 percent security. Bugs in the underlying software, a configuration mistake or a hardware problem can open the door for the bad guys.
It is also a common mistake to believe that a firewall is enough to provide security. If you want a high level of security, you need a whole security concept that defines the basic rules for the network environment. This includes the software used, installing security updates, and good documentation about how the security level is enforced.
An example
Imagine you run a public web server. To make it possible for the world to reach you, you open TCP port 80 for incoming connections. By opening this port, your computer is reachable through the Internet. You as the administrator implement a solid firewall configuration and feel safe because the firewall protects you.
Then a security hole in the web server application is found and made public. If you did not install the security update because you forgot, or because it is not available yet, an attacker may use that hole in the web server, not in the firewall, to get access to your network. The firewall cannot do anything against it because you allowed people to connect to your server.
Basic rules to follow
- Install updates to the software you run.
- Read security focused websites to stay informed.
- Think about creating a security concept for your network.
- Never trust your configuration blindly.
- Watch your log files for strange activity.
- Keep an eye on legal users. Many networks have been compromised because users installed disallowed software, connected through a modem or wireless network that the firewall could not see, or installed a virus or hidden backdoor.
- Read books and documentation about the topic.
There is no safe host, except one that is offline.
Continue with IPTables basics. For current information about IPTables, see the IPTables project.