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

# sk44559 - DHCP Discover packets are dropped by Satellite Gateway in Star community after VPN is established

| Property | Value |
|----------|-------|
| Solution ID | sk44559 |
| Date Created | 2010-04-08 |
| Last Modified | 2023-05-03 |
| Technical Level | General |

## Symptoms

- * Satellite Gateway in VPN Star community drops DHCP Discover packets (sent from IP 0.0.0.0 to IP 255.255.255.255) when "VPN Routing" in community properties is set to "`To center, or through the center to other satellites, to internet and other VPN targets`".

* DHCP Discover packets pass correctly when "VPN Routing" in community properties is set to "`To center and to other satellites through center`".

* *Example topology* :  
  DHCP Server --- \[Center Gateway\] === VPN === \[Satellite Gateway\] --- DHCP Client

* Office Mode DHCP Requests fail when sent over VPN Site-to-Site tunnel.

* SmartView Tracker log shows:

  "`Connection Failed: You cannot receive an Office Mode IP address at this time. Try to connect again. If the problem persists, contact your administrator.`"
* DHCP Request is traversing the VPN tunnel as expected; DHCP Offer comes back from the DHCP server, but is not handled properly by the Security Gateway.

## Solution

This problem was fixed. The fix is included in (refer to the section "*Hotfix configuration instructions*"):

* [Check Point R77.10](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk97617)
* [Jumbo Hotfix Accumulator for R75.47](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk95827) - since *Take_18*
* [Check Point R75.20 HFA_60 (R75.20.60)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk100442) for [600](https://supportcenter.checkpoint.com/supportcenter/portal?&eventSubmit_doShowproductpage=&model=&version=R77&os=&productTab=downloads&product=421) / [1100](https://supportcenter.checkpoint.com/supportcenter/portal?&eventSubmit_doShowproductpage=&model=&version=R77&os=&productTab=downloads&product=420) / Series-80 appliances

For **other [supported](http://www.checkpoint.com/support-services/support-life-cycle-policy/index.html) versions** , [Check Point Support](http://www.checkpoint.com/support-services/contact-support/index.html) can supply a **Hotfix** .  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPInfo files](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92739) from the Security Management Server and Security Gateways involved in the case.

### Code was improved:

* The code was changed to allow the DHCP Discover packets to pass even when not encrypted. After passing the rule base, the packets will be encrypted and passed to the VPN peer's network.
* A new kernel parameter was added to control this behavior - "**`allow_dhcp_discovery`**".
* To enable the new behavior (allowing the DHCP Discover packets to pass even when not encrypted), set the value of the kernel parameter **`allow_dhcp_discovery`** to **`1`** (default value is 0).

### Hotfix installation instructions:

1. Hotfix has to be installed on ***Security Gateway / each cluster member***.

   **Note:** In cluster environment, this procedure must be performed on *all* members of the cluster.
2. Procedure:

   * Using CPUSE - On Security Gateway running Gaia OS R75.40 and above:

     Make sure to install the [latest build of the CPUSE Agent](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#Latest build of CPUSE and What's New).

     Refer to [sk92449: CPUSE - Gaia Software Updates (including Gaia Software Updates Agent)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE):
     * Section "[(4-A-c)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Portal)" / "[(4-A-d)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to download and import a CPUSE package - Import instructions for Offline procedure - Gaia Clish)" - refer to import instructions for *Offline procedure*
     * Section "[(4-B-a)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#How to work with CPUSE - How to install a CPUSE package - Installing a Hotfix package / Minor Version package)" - refer to installation instructions for *Hotfixes*

     You can also use the [sk111158 - Central Deployment Tool (CDT)](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk111158) to install this hotfix on Security Gateways.

     **Note:** Reboot is required.
   * Using Legacy CLI - On VSX Gateway running Gaia OS R75.40VS and above; On Security Gateway running SecurePlatform/XOS/IPSO OS:

     Note: On these versions of VSX, the Gaia CPUSE does not support installation of hotfixes (refer to [sk92449](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk92449#System requirements and limitations) - section "(2)" - "VSX Gateways").
     1. Transfer the hotfix package to the machine (into some directory, e.g., */some_path_to_fix/*).

     2. Unpack and install the hotfix package:

        ***\[Expert@HostName\]# cd /some_path_to_fix/***   
        ***\[Expert@HostName\]# tar -zxvf fw1_wrapper_\<HOTFIX_NAME\>.tgz***   
        ***\[Expert@HostName\]# ./fw1_wrapper_\<HOTFIX_NAME\>***
        **Note:** The script will stop all of Check Point services (*cpstop*) - read the output on the screen.
     3. Reboot the machine.

### Hotfix configuration instructions:

To enable the new behavior (allowing the DHCP Discover packets to pass even when not encrypted), set the value of the kernel parameter **`allow_dhcp_discovery`** to **`1`**.

* To check the current value of this kernel parameter:

  ***\[Expert@HostName\]# fw ctl get int allow_dhcp_discovery***
* To set the desired value for this kernel parameter *on-the-fly* (does not survive reboot):

  ***\[Expert@HostName\]# fw ctl set int allow_dhcp_discovery 1***
* To set the desired value for this kernel parameter *permanently*:

  Follow [sk26202 - Changing the kernel global parameters for Check Point Security Gateway](http://supportcontent.checkpoint.com/solutions?id=sk26202).
  > For Gaia / SecurePlatform OS:
  > 1. Create the *$FWDIR/boot/modules/fwkern.conf* file (if it does not already exit):
  >
  >    ***\[Expert@HostName\]# touch $FWDIR/boot/modules/fwkern.conf***
  > 2. Edit the *$FWDIR/boot/modules/fwkern.conf* file in Vi editor:
  >
  >    ***\[Expert@HostName\]# vi $FWDIR/boot/modules/fwkern.conf***
  > 3. Add the following line (spaces and comments are not allowed):
  >
  >    ***allow_dhcp_discovery=1***
  > 4. Save the changes and exit from Vi editor.
  >
  > 5. Check the contents of the *$FWDIR/boot/modules/fwkern.conf* file:
  >
  >    ***\[Expert@HostName\]# cat $FWDIR/boot/modules/fwkern.conf***
  > 6. Reboot the Security Gateway.
  >
  > 7. Verify that the new value was set:
  >
  >    ***\[Expert@HostName\]# fw ctl get int allow_dhcp_discovery***

### Workaround

If you do not wish to install a hotfix, a **workaround** is available:

1. Connect with SmartDashboard to Security Management Server.

2. Create a new "Address Range" object with First IP address 0.0.0.0 and Last First IP address 0.0.0.0

3. Add this "Address Range" object to the encryption domain of Security Gateway / Cluster.

4. Install the policy onto relevant Security Gateway / Cluster object.

### Related solutions:

* [sk116957 - "Connection Failed: You cannot receive an Office Mode IP address at this time" message when VPN Remote Access client tries to connect](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk116957)

---

# 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
