We should always configure the firewall on a device that connects to the Internet. In fact, it is not at all advisable to connect a device to the Internet without properly configuring the firewall on it. A firewall is a network security system that monitors all the inbound and outbound network packets of a system and matches them with a predefined set of rules to detect and prevent unauthorized access.
Configuring the firewall on Linux is easy. Using iptables, one can easily set the required firewall rules. However, there is a concern regarding saving iptables rules on Linux. One can use the iptables-save command to save rules, but when rebooting the system, the changes are lost, which causes much inconvenience.
Is there any way to make iptables rules persistent over system reboots on a Linux system? How can we do that? Let’s explore this in more detail.
0 Comments