Configuring OEM 13c For Oracle Database Firewall
Configuring OEM 13c For Oracle Database Firewall
Edward Whalen
Performance Tuning Corporation
Publication Date: 09/05/2018
Introduction
Oracle Enterprise Manager Cloud Control 13c is the best way to monitor and manage your Enterprise. A
critical part of your enterprise is the Firewall server. Because of the enhanced security on the Firewall
server it can be a little tricky to install the Cloud Control agent. This paper will assist with that process.
There are several steps that must be completed on the Firewall console and the Firewall server in order
to allow the OEM agent to be installed.
Change the Firewall server to use a fully qualified hostname. This should include both a hostname and a
domain name such as fw01.perftuning.com. This is done through the network configuration screen on
the Firewall console. If necessary, it will require a reboot.
Enable SSH connectivity. This is done through the services configuration screen. Select All for SSH
access.
Log on the Firewall server as root and update the network. This is done by logging into the Audit Vault
server as support and using su to switch to root (su -).
Edit the /usr/local/dbfw/templates/template-hosts file and add an entry for your OEM 13c server
172.17.50.7 cc02.perftuning.com cc02
Edit the /usr/local/dbfw/templates/template-iptables file and add the following lines to open port 3872
and 1521.
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW --dport 3872 -j
ACCEPT-A RH-Firewall-1-INPUT -i <%= @management_device %> -p tcp -m
state --state NEW --dport 1521 -j ACCEPT
Edit the /usr/local/dbfw/templates/template-listener.ora file and add the following line just below the
local host line
(ADDRESS = (PROTOCOL = TCP)(HOST = <FW IP Address>)(PORT = 1521))
Restart sshd
$ service sshd restart
Note: To permanently change sshd access for oracle you must change the template. However, since we
only need it to install the agent it should be fine to do it manually. It is recommended that this change
be removed after the host agent installation has completed.’
This will prepare the Oracle user for the agent installation.
At this point you are ready to deploy the agent from the cloud control console.
This brings up the Add Host Targets: Host and Platform screen. Click the +Add button and fill in the host
name and Platform.
Fill in the Installation Base Directory as /var/lib/oracle/agent13c. The Instance directory will be auto-
populated from the base.
Create a named credential for the oracle user on the Firewall server. This is done by clicking the +
button next to Named Credential. Fill in the UserName and Password and give it a descriptive name and
click the OK button.
Click next when you have completed the above steps and proceed to the Add Hosts Targets: Review
screen.
You should now see the Firewall server in the Hosts monitor of OEM 13c.
Note: If you are monitoring other security products I highly recommend that you change the target
name. Key Vault, Firewall and Audit Vault all have the database named dvfwdb and it is not sufficiently
descriptive in the database targets.
You should now see the Firewall database in the Databases target screen.
Select Add Target | Auto Discovery Results from the Setup dropdown menu.
Username: admin
Password: <password>
Preferred Connection String: Should point to the Audit Vault database.
(DESCRIPTION_LIST=(LOAD_BALANCE=off)(FAILOVER=on)
(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))
(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)))
You can find this connect string by going to the Settings tab in the Audit Vault server web interface and
clicking on Status (in the SYSTEM section). The connect string is shown there.
Once you have promoted the AV Server you can then go to All Targets and find the Firewall Server and
view the Firewall monitor. This monitor provides an awesome view of the Firewall server.
Summary
It is important to monitor the critical systems in your Enterprise. Included in these systems is the Audit
Vault and Firewall servers. Because of the enhanced security of the Firewall appliance there are a few
additional considerations that have been covered in this paper. Once you have followed these steps and
setup the Firewall for OEM monitoring you will be able to watch not only the servers but the
components of the Firewall as well.
Acknowledgements
Thanks to Russ Lowenthal and George Csaba of Oracle for their help with the technical details.