commands
View connections sorted by rule.
[Expert@myvpn-fwb:0]#
fw tab -u -t connections -f | awk -F ';' '{print $16,"\t", $8,"\t", $10,"\t", $11,"\t", $12}' |grep Rule | sort -ng
Interface Status of phisical interfaces (speed,duplex,driver type) in one line:
[Expert@myvpn-fwa:0]#
ifconfig -a | grep encap | awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'ethtool %; ethtool -i %' | grep '^driver\|Speed\|Duplex\|Setting' | sed "s/^/ /g" | tr -d "\t" | tr -d "\n" | sed "s/Settings for/\nSettings for/g" | awk '{print $5 " "$7 "\t " $9 "\t" $3}' | grep -v "Unknown" | grep -v "\."
1000Mb/s Full e1000e Sync:
10000Mb/s Full ixgbe eth1-01:
10000Mb/s Full ixgbe eth1-04:
[Expert@myvpn-fwa:0]#
[Expert@myvpn-fwa:0]# clish -c "show routed cluster-state detailed"
CLINFR0771 Config lock is owned by admin. Use the command 'lock database override' to acquire the lock.
Cluster: Clustered
Master/Slave: Slave
Master IP: NO_MASTER_ADDRESS
Sync IP: 192.168.10.1
Cluster Sync: In_Progress
Last Sent: NO_MESSAGE_SENT
Last Received: NO_MESSAGE_RECEIVED
Cluster VIPs
Interface IPv4 Address Global IPv6 Address
eth1-01 100.25.13.132 None
eth1-04 216.31.3.36 None
Current time:
Apr 12 12:45:44
Cluster State Change History
Timestamp State Change Type
Feb 5 14:44:41 Master to Slave
Jan 22 15:42:54 Slave to Master
Cluster State SIGQUIT History
Timestamp SIGQUIT Change Type
Apr 11 13:25:10 Slave to Slave
Apr 11 13:25:10 Slave to Slave
Apr 11 13:25:05 Slave to Slave
Apr 11 13:25:04 Slave to Slave
Apr 11 13:25:04 Slave to Slave
Apr 11 13:00:43 Slave to Slave
Apr 11 13:00:43 Slave to Slave
Apr 11 13:00:43 Slave to Slave
Apr 11 13:00:38 Slave to Slave
Apr 11 13:00:37 Slave to Slave
Apr 11 13:00:37 Slave to Slave
Apr 11 13:00:37 Slave to Slave
Feb 23 14:46:52 Slave to Slave
Feb 23 14:46:52 Slave to Slave
Feb 23 14:46:47 Slave to Slave
Feb 23 14:46:47 Slave to Slave
Feb 23 14:46:47 Slave to Slave
Feb 23 14:37:43 Slave to Slave
Feb 23 14:37:43 Slave to Slave
Feb 23 14:37:38 Slave to Slave
Cluster Routed Pnote Change History
Timestamp Pnote State Event Description
Jan 22 15:40:21 PNOTE_OK DR Isn't Configured
Cluster Routed Pnote History
Timestamp Pnote State Event Description
Feb 5 14:21:14 PNOTE_OK Master: Sigquit Received
Feb 5 14:21:14 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:09 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:09 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:09 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:03 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:03 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:03 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:03 PNOTE_OK Master: Sigquit Received
Jan 25 11:12:03 PNOTE_OK Master: Sigquit Received
Jan 22 15:49:50 PNOTE_OK Master: Sigquit Received
Jan 22 15:48:08 PNOTE_OK DR Isn't Configured
Jan 22 15:47:03 PNOTE_OK DR Isn't Configured
Jan 22 15:45:56 PNOTE_OK DR Isn't Configured
Jan 22 15:45:45 PNOTE_OK DR Isn't Configured
[Expert@myvpn-fwa:0]#
Install Policy
# mgmt_cli install-policy
Show unused objects:
# mgmt_cli show unused-objects offset 0 limit 50 details-level "standard" --format json
R80.10+ debug VPN
# iketool
Shows Cluster information
> show routed cluster-state detailed
Over three decades of Information Technology experience, specializing in High Performance Networks, Security Architecture, E-Commerce Engineering, Data Center Design, Implementation and Support
Thursday, April 12, 2018
Monday, April 9, 2018
Threat Prevention tab
Normally,
there is no need for tuning the cache.
To change the
relevant settings:
A.
Go
to Threat Prevention tab.
B.
In
the left tree, expand the Advanced - click on Engine
Settings.
C.
Scroll
to the bottom - in the Threat Emulation Settings section,
click on the Configure settings... button.
D.
Set
the desired limits:
o Maximum file size for
emulation - Files
that are larger than this value are not sent for emulation (because large files
can reduce network performance)
o Maximum emulation time - The maximal time that Threat
Emulation does analysis on a file (used only for a Local Emulation)
o Maximum file time in queue - The maximal time that a file
waits for Threat Emulation analysis
o Number of file hashes to
save in local cache -
Number of file hashes that are stored in the Threat Emulation local cache
E.
Click
on OK.
F.
Install
the Threat Prevention policy.
Wednesday, March 21, 2018
How to set up a Site-to-Site VPN with a 3rd-party remote gateway
| Solution ID | sk53980 |
| Product | IPSec VPN |
| Version | All |
| Platform / Model | All |
| Date Created | 13-Sep-2010 |
| Last Modified | 06-Aug-2017 |
Introduction
This document describes how to set up a VPN connection between a Check Point gateway and a 3rd party Interoperable Device.
There are 3 main sections:
- New VPN Check Point Gateway configuration.
- Interoperable Device and VPN community configuration.
- Required Firewall Rule Base definition.
Table of Contents
- Configuring Check Point Security Gateway with VPN
- Configuring the Interoperable Device and VPN community
- Defining VPN encryption domain for Interoperable Device
- Creating a rule for the traffic
- Completing the procedure
- Troubleshooting
- Related solutions and documentation
Configuring Check Point Security Gateway with VPN
Note: If you have a fresh installed Check Point Gateway that is also defined as Security Management server and should be used as a VPN Gateway, start from step 6.
In most cases this Gateway has the
icon and is named "gw-<number>".
In most cases this Gateway has the
To create Check Point Security Gateway:
- In the Network Object right-click on Check Point and Security Gateway/Management.

- Click Wizard Mode

- Enter
- Gateway name
- Gateway platform
- IPv4 address

- Click Next and enter the one-time password as defined on Check Point Security Gateway during installation.

- Click Next after trusted communication established, then click Finish.

- In the General Properties window of your Security Gateway, make sure the 'IPSec VPN' checkbox is selected.

- Define VPN encryption domain for your Gateway. Make sure that you have at least one internal and one external interfaces. VPN encryption domain will be defined to all networks behind internal interface.

- Click Accept

- Click OK and close the Gateway dialog

Configuring the Interoperable Device and VPN community
Create an object to represent the peer gateway.
- Right-click the white space of Network Objects and select: New -> Others -> Interoperable Device

- Give the gateway a name, IP address, and (optional) description in the properties dialog window that is displayed and click OK.

- In the SmartDashboard IPSec VPN tab, right-click in the open area on the top panel and select: New -> Meshed Community.

- A Meshed Community Properties dialog pops up.
In the General menu, enter your VPN community name:
- In the Participating Gateways menu click: Add, select your both gateways objects, and click OK.

- In the Encryption menu, you can change the Phase 1 and Phase 2 properties.
You can also define which IKE version should be used. For IKEv1 leave the default, for IKEv2 select IKEv2 only.
Note: Make a note of the values you select in order to set the peer to match them.
- In the Tunnel Management menu you can define how to setup the tunnel.Note: The recommended tunnel sharing method is one VPN tunnel per subnet pair (default).
This shares your network on either side of the VPN and makes the Phase 2 negotiation smooth. It also requires fewer tunnels to be built for the VPN.
If you need to restrict access over the VPN, you can do that later through your security Rule Base. - For preshered authentication, expand the Advanced Settings menu and select: Shared Secret.
Select the 'Use only Shared Secret for all External members' checkbox.
Select your peer gateway from the entries in the list below and click Edit to edit the shared secret.Note: remember this secret, as your peer will need it to set up the VPN on the other end.
- Expand the Advanced Settings menu and select: Advanced VPN Properties. Here, you can modify the more advanced settings regarding Phase 1 and 2.Note: Keep note of the values used. It is also a good idea to select:
Disable NAT inside the VPN community so you can access resources behind your peer gateway using their real IP addresses, and vice versa. - Click OK on the VPN community properties dialog to exit back to the SmartDashboard.
You may see the following message:
- We are about to address the VPN domain setup in the next section, so click Yes to continue.
Now you can see your VPN community defined:
Defining VPN encryption domain for Interoperable Device
You now need to define your VPN encryption domains.
If you have not already done so, create network objects to represent your local networks and the peer networks they will be sharing with you.
To define VPN encryption domains:
If you have not already done so, create network objects to represent your local networks and the peer networks they will be sharing with you.
To define VPN encryption domains:
- From the Network Objects menu, right click on Networks and select Network to define a new network. In the following image, we are creating a network to represent our peer's internal network that they will be sharing with Check Point VPN gateway:

- If you or your peer is sharing more than one network over the tunnel, create groups to represent each side's VPN domain. From the Network Objects menu, right click on Groups, select Groups and then Simple Group...In this example, only one network is shared, so the group will have only one object included, but you can put as many networks in this group as you want to share.
Note: it is important not to add groups within a group as this can impact performance. Make sure the group is "flat".
Give your group a meaningful name such as: Local_VPN_Domain.
Click OK once you have added all of your local networks and then repeat the procedure to create a group to represent your peer's shared networks. - Open the properties for the peer gateway and select the group/network that represents its VPN domain:

- Click OK to complete the peer gateway configuration.
Creating a rule for the traffic
Now, you have both objects set up for VPN and you have defined your community. All that is left is to create a rule for the traffic.
Here is where you should restrict access if it is required.
To create a rule for the traffic:
- To allow VPN traffic, you should add the relevant rules to your Firewall Rule Base.
Navigate Rule Base, Firewall -> Policy
- Decide where in your rule base you need to add your VPN access rule and right click the number on the rule just above where you want it and select: Add Rule -> Below.
- You should explicitly set the VPN community in the VPN column on your rule, you have created before.
In the VPN column, right-click the Any Traffic icon and select: Edit Cell....
Select the: Only connections encrypted in specific VPN Communities option button and click Add.
Select the VPN community created in the above steps and click OK and then OK again.
- In this example, we are allowing any service/any host across the tunnel in both directions. Your rule should now show the VPN community in the VPN column:

Completing the procedure
- Install the policy to your local Check Point gateway.
- Once the remote side has setup their VPN to match, verify that you have secure communication with their site.
Troubleshooting
- Problem: Traffic is dropped by 3rd party gateway and main IP configuration was defined to internal IP address for Check Point Gateway.
Generally, it is recommended to define main gateway IP address with external IP (in Check Point Gateway General Properties). In some cases, for example: StandAlone gateway, administrator wants to define main IP address as internal IP in order to allow managing from internal network.
In this case, VPN link selection should be changed.
Open Check Point gateway properties dialog, select IPSec VPN -> Link Selection and click Source IP address settings...
In opened dialog, select Selected address from topology table and select relevant external IP address, used by remote peer
- Problem: IKE keys were created successfully, but there is no IPsec traffic (relevant for IKEv2 only).
In some cases, remote peer chooses NAT-T encapsulation but Check Point gateway sends traffic without this encapsulation. As a result, a remote peer drops the IPsec traffic since it expecting NAT-T.
There are two workarounds available to resolve this problem:
- If IKEv2 is required by remote peer, NAT-T should be disabled.
To do so, open Check Point gateway properties dialog, select IPSec VPN -> VPN Advanced and clear 'Support NAT traversal (applies to Remote Access and Site to Site connections)' checkbox:
Note: This solution is not suitable for gateways participating in the Remote Access community. - If IKEv2 is not required, in the SmartDashboard, go to Community -> Encryption and change configuration to IKEv1.
- If IKEv2 is required by remote peer, NAT-T should be disabled.
Related solutions and documentation
Sunday, March 18, 2018
Site to Site Tunnel Status Monitoring
In R80.10 SmartConsole - Click on Log and Monitor then Click on New Tab then go to External App Tunnel and User Monitoring at the bottom as shown below
Thursday, March 15, 2018
R80.10 IPS Protections in Detect
With R80.10, the new default profile "Optimized" sets all newly downloaded IPS protections to be in state "detect (staging)" or "inactive".
1. We start with the general page. It has settings in which a protection should be in detect, prevent, or inactive.
2. Then, in the "updates" page, we see that newly downloaded protections are automatically set to "Detect". This means that:
- If a newly downloaded protection was supposed to be in "prevent", it will be set as "detect (staging)".
- If a newly downloaded protection was supposed to be in "detect", it will be set as "detect (staging)".
- If a newly downloaded protection was supposed to be in "inactive", it will remain inactive.
3. Sometimes an IPS update issues an update to an existing protection. In this case, the updated protection is back to "newly downloaded protection" state, which leaves it as either in "detect (staging)" or "inactive".
It is important to remember these things, because it requires you to manage your staging protections - otherwise they will not be in Prevent mode.
You can do that either from:
1. IPS Protections page with the filter for "Staging" status
2. Logs that appear in the query page for "IPS --> Staging"
You can also automate some of this work:
1. Apply additional configuration which excludes some protections from the "Detect (Staging)" status, leaving them with Prevent or Detect or Inactive.
2. Automatically change protections to Inactive based on tags.
3. Using the show threat-protections and set threat-protection API commands, you can create an automatic reaction which automatically changes the action from "Detect (Staging)" to "Prevent" or "Inactive" based on custom decision factors.
set threat-protection name "Aggressive Aging" overrides.remove.1 "New profile 1" overrides.remove.2 "New Profile 2"
Keeping threats from impacting your organization doesn’t have to be challenging! Join Threat Prevention Expert Nick McKerral to learn how to implement Threat Prevention Best Practices using Check Point Infinity:
- Learn how to activate the IPS, AB, AV blades in R80.10
- Learn how to activate and utilize Threat Emulation and Extraction to protect web and email
- Learn all about Check Point’s new inline threat extraction capabilities
- Learn about Sandblast Agent with browser based Threat Emulation, Extraction, Anti-phishing, domain credential protection capabilities, and more!
Watch the recording: TechTalk: Advanced Threat Prevention Best Practices Video
Answers to questions we did not get to during the session will be summarized and answered below.
Saturday, March 3, 2018
Thursday, March 1, 2018
Configure Checkpoint Identity Awareness
Configuring CheckPoint Identity Awareness
Identity Awareness allows you to enforce access based on user and computer identity. It integrates with both Active Directory and non Active Directory networks and will authenticate employees and guests. When integrated with Active Directory the connection is clientless and authentication is transparent to the user.
There are five “identity sources” which Identity Awareness can use to acquire identities:-
- AD Query
- Browser-Based Authentication
- Endpoint Identity Agent
- Terminal Servers Identity Agent
- Remote Access
This post describes the basics of how to configure Identity Awareness, integrate with Active Directory (AD Query method) and configure a rule to require authentication for accessing the internet.
Configuring Identity Awareness
Open the properties of the CheckPoint gateway
Tick the “Identity Awareness” software blade

Select the correct gateway that will be used to identify users
Select the “AD Query” method for acquiring identity

Select an Active Directory, entering Domain Administrator credentials when prompted, click Connect to establish a connection

Once the connection between the gateway and Active Directory has been establish go to the “Users and Administrators” tab in SmartDashboard

Right click “Access Roles” and click “New Access Roles”
Name the new “Access Role” appropriately eg “Allowed_Internet_Access”

Specify “Networks” if you wish to allow access from

Click the “Users” tab

Click “Specific users/groups”, click the green + button and browse to the location of the user or group

Click the “Machines” tab, click the green + button and specify the machines or group of machines you wish to allow access from

Click OK to finish configuration of the new “Access Role”
Either create a new firewall rule or modify an existing rule to specify the source of the new “Access Role”
Before…

After…

When a user who is a member of the AD group “Allowed Internet Access” is logged on to the computer “XP” from the internal subnet defined as “Net_Internal” they will be allowed access

However the same user accessing the internet from a machine not specified in the access rule will be dropped.

When the user attempts to make the connection and not all conditions are met, the connection will be dropped and NO warning or error message will be displayed. The captive portal webpage could be enabled to prompt the users for a username and password or even explain why they are not allowed access.
In testing in my lab I have found out that a connection which meets network, user and computer conditions will be allowed access, but when the user is logged off and another user logs on who is NOT a member of the correct group allowing internet access they are allowed access. I believe this is because the gateway still assumes the connection is still from the same user/computer source so is therefore access is allowed. In most scenarios this would not matter if the same user used the same computer, I can imagine in schools where users share computers this would be an issue. Further investigation required…..
Subscribe to:
Posts (Atom)






