Adding Network Address Translation IP Addresses to Audit Vault Agent
You can add Network Address Translation (NAT) IP addresses to Audit Vault Agent.
Network Address Translation (NAT) is a method of remapping one IP address space into another. This is done by modifying network address information in the IP header of packets when they are in transit across traffic routing devices. Use this procedure to manually add the NAT IP address of the Audit Vault Server to the Audit Vault Agent.
In some deployments, Audit Vault Servers are within NAT networks. The Agents are deployed in a network outside of the NAT configured network with actual IP addresses of Audit Vault Server. In such cases, the Agents cannot reach Audit Vault Server.
In this case, you can add the NAT IP address and port mapping information to the dbfw.conf file of Audit Vault Server. This ensures adding an extra connection string in the Agent’s bootstrap.prop file so that Agents can be deployed in both NAT and non NAT networks.
Use Cases
| Case | Configuration Type | Description |
|---|---|---|
| Case 1 | Audit Vault Server configuration without high availability. |
|
| Case 2 | Audit Vault Server configuration with high availability. |
|
| Case 3 | Primary and secondary Audit Vault Servers with different NAT IP addresses. |
|
To add the NAT IP address of Audit Vault Server into Audit Vault Agent, follow these steps:
-
Log in to the Audit Vault Command Line Interface (AVCLI) as the admin or oracle user.
-
Take a backup of the configuration file before proceeding:
cp /usr/local/dbfw/etc/dbfw.conf /usr/local/dbfw/etc/dbfw.conf.backup -
Edit the
dbfw.conffile to include the NAT IP address in the Audit Vault Server as follows:NAT_PRIMARY_IP_ADDRESS=<xx.yyy.zzz.aaa> NAT_PRIMARY_AGENT_PORT_TLS=<12345> NAT_PRIMARY_AGENT_PORT=<12346> -
Save the changes.
-
Regenerate the agent by running the following command:
avca configure_bootstrapAfter this, all of the Agents downloaded contain one of the strings with the NAT IP address. To verify, check the contents of the bootstrap file at
/var/lib/oracle/dbfw/av/conf/bootstrap.propwhich should be as follows:SYS.CONNECT_STRING999=(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS=(PROTOCOL=TCP)(HOST=10.240.114.167)(PORT=13031))(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB))) SYS.SSL_CONNECT_STRING999=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=10.240.114.167)(PORT=13032))(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)(SERVER=DEDICATED))(SECURITY= (SSL_SERVER_CERT_DN="DC=com,CN=avserver,OU=db,O=oracle"))) -
The above case is applicable in Case 1 that is mentioned in the table above. In Case 2 and Case 3, Audit Vault Server is in high availability mode. In these cases, you need to configure the
dbfw.conffile with an additional set of parameters as follows:NAT_PRIMARY_IP_ADDRESS=<xx.yyy.zzz.aaa> NAT_PRIMARY_AGENT_PORT_TLS=<12345> NAT_PRIMARY_AGENT_PORT=<12346> NAT_SECONDARY_IP_ADDRESS=<xx.yyy.zzz.ccc> NAT_SECONDARY_AGENT_PORT_TLS=<56789> NAT_SECONDARY_AGENT_PORT=<12678> -
Save the changes.
-
After this, the Agent’s
bootstrap.propfile is configured with a high availability connect string to include the above set of IP addresses and ports. To verify this, check the contents of the bootstrap file at/var/lib/oracle/dbfw/av/conf/bootstrap.propwhich should be as follows:SYS.CONNECT_STRING999=(DESCRIPTION_LIST=(LOAD_BALANCE=off)(FAILOVER=on)(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=<NAT_PRIMARY_AGENT_PORT>)(PORT=<NAT_PRIMARY_AGENT_PORT>))) (CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)))(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=<NAT_SECONDARY_IP_ADDRESS>)(PORT=NAT_SECONDARY_AGENT_PORT>)))(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)))) SYS.SSL_CONNECT_STRING999=(DESCRIPTION_LIST=(LOAD_BALANCE=off)(FAILOVER=on)(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCPS)(HOST=<NAT_PRIMARY_IP_ADDRESS>)(PORT=<NAT_PRIMARY_AGENT_PORT_TLS>)))(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)(SERVER=DEDICATED))(SECURITY= (SSL_SERVER_CERT_DN="DC=com,CN=avserver,OU=db,O=oracle")))(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCPS)(HOST=<NAT_SECONDARY_IP_ADDRESS>)(PORT=<NAT_SECONDARY_AGENT_PORT_TLS>)))(CONNECT_DATA=(SERVICE_NAME=DBFWDB.DBFWDB)(SERVER=DEDICATED))(SECURITY=(SSL_SERVER_CERT_DN="DC=com,CN=avserver,OU=db,O=oracle"))))