Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux 7 - How To Store Iptables Rules To Survive Across Reboots and OSMS Patching

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!