
In a later tutotial we will do a deep dive into how to configure your iptables. This should display the current state of all the access and block rules you have configured on your system. To see a list of rules type sudo iptables -L In particular, this tutorial assumes that you have configured the rules with iptables. In this tutorial, you will see how to make iptables rules persistent after reboot on Ubuntu and CentOS based systems.īefore we start, make sure that you already have some rules configured on your system. After configuring your system’s iptables rules, there is one more important step thay you must do in order to make sure the rules are still there after a reboot.

The main quirk about iptables is that, by default, the configurations for iptables will not persist after a reboot. It provides the level of control that makes it possible to configure what network traffic is permitted or denied to the system.


Iptables is a powerful tool to help configure access to various ports on your computer or server.
