December 2018
Beginner
826 pages
22h 54m
English
Each of these examples are used to manipulate the running firewall configuration on your box. When you use the userland tools, as with the querying examples in the last section, you're actually modifying the Netfilter framework of the kernel.
Personally, I find it easiest to understand what's going on by using the iptables command, though you may find yourself more comfortable with an alternative.
As we saw in the last section, if you enable firewalld or ufw, you will also find that your default iptables rules change. Without firewalld or ufw enabled, the out-of-the-box iptables configuration will be much simpler, as we can see in the following lines:
$ sudo iptables -S-P INPUT ACCEPT-P FORWARD ACCEPT-P OUTPUT ACCEPT
Whenever ...
Read now
Unlock full access