1 00:00:00,000 --> 00:00:11,320 To understand firewalling in Linux, you need to know that it all is implemented in the 2 00:00:11,320 --> 00:00:18,400 kernel. In the kernel, we have a framework, and this framework is called Netfilter. And 3 00:00:18,400 --> 00:00:25,480 Netfilter is providing three different interfaces. The most important interfaces are the different 4 00:00:25,480 --> 00:00:32,840 chains. So the chains are input for incoming packages. We have forward, which is going 5 00:00:32,840 --> 00:00:39,520 to be if this is a router. And we have output, which is going to filter outgoing traffic. 6 00:00:39,520 --> 00:00:43,919 Now what are you going to do to manage your firewall? Well, you need to get them into 7 00:00:43,919 --> 00:00:49,759 Netfilter in some way. And there are different solutions in order to do so. In the old days, 8 00:00:49,759 --> 00:00:59,799 it was IP tables. Nowadays, NFT, the Netfilter tables, is the default. And using IP tables 9 00:00:59,799 --> 00:01:06,839 or NFT, you write rules into your input chain, or you write rules into your output chain. 10 00:01:06,839 --> 00:01:12,559 And these are always processed for every single packet that comes into your system. Now, IP 11 00:01:12,559 --> 00:01:19,099 tables and NF tables are a little bit complex, and that is why there are also front-end utilities. 12 00:01:19,099 --> 00:01:27,019 And these front-end utilities are firewalld and ufw. These write either to IF tables or 13 00:01:27,019 --> 00:01:32,220 NF tables, and the result is that you get your rules into the input chain or in the 14 00:01:32,220 --> 00:01:37,739 output chain to process the incoming and outgoing packets. In the next couple of videos, you'll 15 00:01:37,739 --> 00:01:39,180 learn how to work with these tools.