How to Inspect and Activate Default Rules

View the currently-enforced iptables rules by running the command:

# iptables -nL –line-numbers

The command is analogous for the ip6tables program.

If the firewall does not appear to be active (i.e., no rules appear), activate it and ensure that it starts at boot by issuing the following commands (and analogously for ip6tables):

# service iptables restart
# chkconfig iptables on

Comments are closed.