Skip to content
KMyFirewall
Release 1.1.1 Download

The KMyFirewall Handbook

Just a bit of theory

Firewalling is a complex topic. This chapter gives a brief introduction to what firewalls are and how IPTables firewalls work.

When you think of a firewall, most people would say that firewalls just restrict network traffic. A modern firewall does more than restrict traffic, which is of course its main task.

You can filter by inspecting packet headers, which store information about where the packet comes from, which protocol is used and similar details. The filtering possibilities provided by IPTables are powerful enough to let in only packets that are known to belong to a connection you have made. This technology is called connection tracking or stateful packet filtering.

The second important feature a firewall provides is the ability to log network traffic. This is more important than it may seem, because log files give you a good view of activity in your network: who did what and when. Logs are also important when a firewall is compromised and you want to know how. If logging was not enabled, it is much harder to see what happened and how the configuration can be improved.

Most people think of firewalls as tools that block traffic from the Internet to a host. You can also configure a firewall to restrict Internet access. For example, you may block some well known sites on a child's computer, or allow email and web browsing in an office while preventing downloads over FTP.

All of this is easy to implement with IPTables once you understand how it works. Read the next chapters carefully to learn how to use this program effectively.

Continue reading

Back to top