Oracle Linux 7 - How To Store Iptables Rules To Survive Across Reboots and OSMS Patching
in Linux
APPLIES TO:
Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux OS - Version Oracle Linux 7.0 to Oracle Linux 7.9 [Release OL7 to OL7U9]
Linux x86-64
GOAL
The following steps show how to store iptables rules to survive across reboots and OSMS patching. Iptables rules were wiped after OSMS patching (OSMS removed and then installed iptables package).
SOLUTION
1. Make sure firewalld is down and disabled. If they are not down/disabled, please run:
$ systemctl stop firewalld $ systemctl disable firewalld
2. Install iptables-services package and start/enable iptables service, as follows:
$ yum install -y iptables-services.x86_64 $ systemctl start iptables $ systemctl enable iptables
Tagged:
0