Appendix F - Using Unix DHCP as the IoT Discovery Engine
You can set up an IoT discovery engine on the Check Point Security Gateway or Management Server to discover IoT assets in your network. The IoT discovery engine uses the network devices in the network, such as switches, routers, gateways, or Network Access Control (NAC) devices to discover IoT assets.
You can use Unix DHCP server as an IoT discovery engine. It maintains a pool of IP addresses and provides an IP address to every new DHCP-enabled client.
Unix DHCP integration is based on log files for events which are created by Unix DHCP server. Such events may include the MAC address of the device and the leased IP address. Unix DHCP integration reads the actual log files from a local directory to which these files are copied.
Prerequisites
-
Unix DHCP server with Cron installed. If Cron is not installed, install it using the package manager for your Linux distribution.
-
IP address and login credentials of your Check Point Security Gateway / Management Server that is used to discover IoT assets in your network.
-
On your Check Point Security Gateway / Management Server, the default shell must be the Expert mode (
/bin/bash
).To change the default user shell:
-
Connect to the command line on the Check Point Security Gateway / Management Server (over SSH or console).
-
Next step depends on the current configuration:
-
If you default shell is the Expert mode, then the prompt shows the word "
Expert
" in front of the hostname.There is nothing else to configure.
Example:
-
If you default shell is Gaia Clish, then the prompt shows only the hostname.
Example:
You can change the default shell in one of these ways:
-
In Gaia Portal, configure:
-
Go to User Management > Users.
-
Select and edit the admin user.
-
In the Shell field, select /bin/bash.
-
Click OK.
-
-
In Gaia Clish, run:
-
set user admin shell /bin/bash
-
save config
-
-
-
-
Restart your SSH session and check if you are in Expert mode by default.
If you are still in Clish mode, make sure you have entered the correct commands and restart the SSH session.
-
Connect to the command line on the Check Point Security Gateway / Management Server (over SSH or console) again.
-
The prompt must show the word "
Expert
" in front of the hostname.
-
Setting Up Unix DHCP as the IoT Discovery Engine
To set up Unix DHCP as the IoT Discovery Engine:
-
Create a Cron task to copy the log files from the Unix DHCP server to the Check Point Security Gateway server / Management Server:
-
Download the
unix-dest.sh
file:-
Click here.
The Download Details page appears.
-
Click Download.
The system downloads the file.
-
-
Transfer the file to the Unix DHCP server.
-
Connect to the command line on your Unix DHCP server (over SSH or console).
-
Log in with your administrator credentials.
Output:
-
Run:
sudo bash unix-dest.sh
Output:
-
Enter the administrator password.
Output:
Note - If the following output appears, you must install Cron. See Prerequisites.
-
To install the discovery engine, enter 1 and press Enter.
Output:
-
Enter the IP address of your Check Point Security Gateway server / Management Server, and press Enter.
Output:
-
Enter the IP address of the Unix DHCP server.
Output:
-
Enter y and press Enter.
Output:
Note - If this output appears, make sure that the Unix DHCP server is up and running, and enter the correct IP address.
Resolve the issue and repeat step i.
-
Enter the Expert mode password of your Check Point Security Gateway server / Management Server, and press Enter.
Output:
The discovery engine setup is complete.
-
To close the setup tool, press any key.
After the installation, the system copies the DHCP logs to your Security Gateway / Management Server at one-minute intervals.
-
-
Configure Unix-DHCP as the discovery engine in Quantum IoT Protect:
-
Log in to Check Point Infinity Portal.
-
In the Quantum section, go to IoT Protect > IoT > Profiles.
-
Click
and select IoT Discovery Source Profile.
-
Enter these:
-
In the Discovery Source section, from the Discovery source type list, select Unix DHCP Server.
-
In the Discovery Source Settings section, in the IP address field, enter the IP address of the Unix DHCP server.
-
In the Run Discovery On section, select the Security Gateway from the list.
If you use a Standalone or Management Server, select Install discovery settings on management.
-
In the Gateways That Use This Service section, select the gateways relevant to your discovered assets, or select the policy-package for all gateways.
-
-
Click Enforce.
The system installs the Unix-DHCP discovery engine and starts running on the Check Point Security Gateway / Management Server.
-
Testing the Unix DHCP IoT Discovery Engine
-
Connect to the command line on the Check Point Security Gateway / Management Server (over SSH or console).
-
Log in to the Expert mode.
-
Run:
cpnano -s
Note - The output for this command may take time to appear depending on how long the system takes to enforce the profile. If you do not see the output, then verify whether you have selected the correct Security Gateway in the Profiles setting.
-
These nano services must be running:
-
Check Point Orchestration
-
Check Point IoT Unix DHCP
Output:
-
Removing Unix DHCP as the IoT Discovery Engine
To remove Unix DHCP as the IoT discovery engine from the Unix DHCP server:
-
Connect to the command line on your Unix DHCP server (over SSH or console).
-
Log in with administrator credentials.
Output:
-
Run:
sudo bash unix-dest.sh
Output:
-
Enter the administrator password.
Output:
-
To uninstall the discovery engine, enter 2 and press Enter.
Output:
-
To confirm, enter y and press Enter.
The system removes the scheduled copy task and uninstalls the Unix DHCP server as the discovery engine.
Output:
-
To close the tool, press any key.
DHCP logs are no longer copied to the Check Point Security Gateway / Management Server.
To remove the IoT Discovery Source Profile in Quantum IoT Protect:
-
Log in to Check Point Infinity Portal.
-
In the Quantum section, go to IoT Protect > IoT > Profiles.
-
On the Unix-DHCP discovery engine profile, click
and then Delete.
-
Click OK.
-
Click Enforce.
Troubleshooting the Unix DHCP IoT Discovery Engine
-
Connect to the command line on the Check Point Security Gateway / Management Server (over SSH or console).
-
Log in to the Expert mode.
-
The DHCP logs files are available in this location:
/var/log/iot-discovery/unix-dhcp-logs