> Source: [sk181609](https://support.checkpoint.com/results/sk/sk181609)

# sk181609 - Security Gateway forwards logs to the real IP address of the Management Server instead of the public (NATed) IP address

| Property | Value |
|----------|-------|
| Solution ID | sk181609 |
| Date Created | 2023-11-20 |
| Last Modified | 2026-04-27 |
| Technical Level | General |
| Products | Security Gateway, Cloud Firewall |
| Versions | R82, R81.20, R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS), R81.20, R82 |
| OS | Gaia |
| Platform | AWS, Azure |

## Symptoms

- The Security Gateway forwards logs to the real IP address of the Management Server instead of the public IP address.

## Solution

This problem was fixed. The fix is included in:

* [Check Point R82](https://support.checkpoint.com/results/sk/sk181127)
* [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 54
* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 141
* [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 99
* [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 211

<br />

After upgrading the Security Gateway, do this **manual configuration**.
**Configuration**   

1. Connect to the command line on the Security Gateway / each Cluster Member.
2. Log in to the Expert mode.
3. On a VSX Gateway / VSX Cluster Member, go to the context of the applicable Virtual System:  
   `# vsenv <VSID>`
4. Run the applicable command:
   1. To force the Security Gateway to forward logs only to the public (NATed) IP address of the Management Server, run:
      1. `# sed -i.bak '/DLPDIR/a LOG_FORWARD_FORCE_NAT_ENV_VAR=1; export LOG_FORWARD_FORCE_NAT_ENV_VAR; hash 1>/dev/null 2>&1' "$CPDIR/tmp/.CPprofile.sh"`
      2. `# cpstop;cpstart`
   2. To return to the initial behavior, where the Security Gateway forwards forwarded logs to the real IP address of the Management Server run:
      1. `# cp -v $CPDIR/tmp/.CPprofile.sh.bak $CPDIR/tmp/.CPprofile.sh`
      2. `# cpstop;cpstart`

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
