Wednesday, October 5, 2016

gratuitous_arp




Edit the file $FWDIR/boot/modules/fwkern.conf, adding the line:
fwha_use_arp_packet_queue=1
Note: If the file does not exist, create it.


~expert mode~
cd $FWDIR/boot/modules
vi fwkern.conf
fwha_gratuitous_arp_timeout = 10
esc
:w
:q


How to validate the Gratuitous Arp 

[Expert@myvpn-fwa:0]# fw ctl get int fwha_gratuitous_arp_timeout
fwha_gratuitous_arp_timeout = 600
[Expert@myvpn-fwa:0]#



How to enable ClusterXL Virtual MAC (VMAC) mode
Solution
Table of Contents:
  1. Overview
  2. VMAC support
  3. Configuring VMAC mode
    • In SmartDashboard (preferred method)
    • On Cluster Members
  4. VMAC value
    • Versions R76 and above
    • Versions prior to R76
  5. Verifying VMAC mode
  6. Related Solutions

(1) Overview

Upon fail-over in ClusterXL that is configured in High Availability New mode / Load Sharing Unicast mode (Note: any VSX cluster works in High Availability mode), a new Active member / new Pivot member will send a series of Gratuitous ARP Requests (G-ARP packets) for its Virtual IP addresses with the Physical MAC address of the new Active member / new Pivot member on each cluster subnet (and then the new Active member / new Pivot member sends such G-ARP packet every 'N' seconds - the timeout is controlled by the value (in HTUs) of the global kernel parameter 'fwha_gratuitous_arp_timeout').
Reports from the field show that some switches do not integrate the information from G-ARP packets fast enough into their ARP cache table. This leads to problems, where the switches still send the traffic to the physical MAC address of the old Active member / Pivot member that failed. As a result, there is a traffic outage on the network until the switches update their ARP cache table.
In some other cases, when there is a large number of Static NAT entries on a ClusterXL member, upon failover, the ClusterXL mechanism sends many G-ARP packets. Reports from the field show that in some cases, the number of G-ARP packets is more than different switches can handle, and some traffic is lost. In some other cases, different network components (VoIP phones) categorically ignore the G-ARP packets.
This Solution introduces a new variation of the High Availability New mode / Load Sharing Unicast mode for the cluster product: Cluster Virtual MAC (VMAC), which is available starting in R71.
When you configure a cluster to use VMAC with ClusterXL High Availability New mode, or Load Sharing Unicast mode, all cluster members associate the same Virtual MAC address with Virtual IP address.
Traffic originating from Active / Pivot cluster member is sent out in the following way:
  • Layer 2 Source (MAC) address - physical MAC address of corresponding member's interface.
  • Layer 3 Source (IP) address - Virtual IP address that was configured for corresponding cluster interfaces.
Traffic originating from hosts on the network should be sent out in the following way:
  • Layer 2 Source (MAC) address - physical MAC address of corresponding host's interface.
  • Layer 2 Destination (MAC) address - Virtual MAC address created for corresponding cluster interfaces.
  • Layer 3 Source (IP) address - IP address of corresponding host's interface.
  • Layer 3 Destination (IP) address - Virtual IP address that was configured for corresponding cluster interfaces.
As a result, the potential traffic outage during fail-over is minimized, and the use of G-ARP packets for NATed IP addresses becomes unnecessary.
In case switches/routers on the network still do not integrate the information from G-ARP packets fast enough into their ARP cache table, configure static MAC entry to associate Virtual MAC address and ports, which are connected to cluster members (refer to any ClusterXL Administration Guide (R71, R75, R75.20, R75.40, R75.40VS, R76, R77) - chapter 'High Availability and Load Sharing in ClusterXL' - 'Hardware Requirements, Compatibility and Cisco Example' - Table 4-2, Table 4-3, Table 4-4, Table 4-5).
Use of Virtual MAC is different from the use of Shared MAC in HA Legacy mode. VMAC that is advertised by the cluster members (via Gratuitous ARP Requests) keeps the real MAC address of each member and adds another Virtual MAC address on top of it. In HA Legacy mode, the Shared MAC address that is advertised replaces the real MAC address.
It is necessary to keep the real MAC address of each member, because connectivity to the member itself is required (with the real IP address of the member).

(2) VMAC support

Operating Systems The VMAC mode is supported only on SecurePlatform OS and on Gaia OS.
ClusterXL The VMAC mode is supported in ClusterXL only in High Availability New mode, and in Load Sharing Unicast mode.
VSX cluster The VMAC mode is supported in VSX cluster - both in High Availability (default mode), and in Virtual System Load Sharing (VSLS) mode (Note: any VSX cluster works in High Availability mode).
VMAC configuration method VMAC mode can be configured:
  • In SmartDashboard (via checkbox in 'ClusterXL and VRRP' section) - only in versions R76 and above, on Gaia OS (not including VSX)
  • On Cluster Members (via CLI) - in versions R71 and above; in R75.40VS/R76 and above in VSX mode
Virtual MAC address The 'ifconfig' command does not show the VMAC addresses (use 'cphaprob -a if' command instead).

(3) Configuring VMAC mode

Configure the VMAC mode in one of the following two ways:
  • In SmartDashboard (preferred method)

    Note: This method is available only for versions R76 and above, on Gaia OS (not including VSX).
    1. SmartDashboard - cluster object - 'Properties' - 'ClusterXL and VRRP' section:

      • under 'Select the cluster mode and configuration' - select 'High Availability' - select 'ClusterXL'
      • under 'Advanced Settings' - check the box 'Use Virtual MAC' - click 'OK'

    2. Save the changes: 'File' menu - 'Save'.
    3. Install the security policy onto this cluster object.

  • On Cluster Members

    • To enable VMAC mode, set the value of global kernel parameter 'fwha_vmac_global_param_enabled' to 1 (default value is 0).
    • To disable VMAC mode, set the value of global kernel parameter 'fwha_vmac_global_param_enabled' to 0.
    • To set the VMAC mode value on-the-fly,
      run this command on all cluster members:
      [Expert@HostName]# fw ctl set int fwha_vmac_global_param_enabled VALUE
    • To set the VMAC mode value permanently:
      refer to sk26202 (Changing the kernel global parameters on all platforms)
    Note:
    In order to get the current value of global kernel parameter 'fwha_vmac_global_param_enabled', run the this command on a cluster member:
    [Expert@HostName]# fw ctl get int fwha_vmac_global_param_enabled

(4) VMAC value

  • Versions R76 and above

    All cluster interfaces are configured with the same VMAC address using the following format (having different VMAC addresses for each cluster interface is not necessary - typically a modern switch uses a different CAM table for each VLAN, so it is possible to have the same MAC address on the same switch in different VLANs; in addition, having the same VMAC for each cluster interface makes it easier to understand, which cluster is sending the packet without a need to know each interface address):
    Total 48 bits (from left-to-right):

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
    00 1C 7F 0000000 VSID value of 'fwha_mac_magic'

  • Versions prior to R76

    Specific range of VMAC addresses was assigned for VMAC mode:
    00:1C:7F:00:00:00 -> 00:1C:7F:1F:FF:FF
    Total 48 bits (from left-to-right):
    • Left 24 bits - 00:1C:7F - unique constant value.
    • Next 3 bits - are 000.
    • Next 13 bits - sequence number - interfaces on different members that belong to the same VIP, share the same sequence number.
    • Next 8 bits - value of the global kernel parameter 'fwha_mac_magic' (default hex value is 'FE') - needed to prevent collisions between different clusters on the same segment - refer to sk25977 (Connecting multiple clusters to the same network segment (same VLAN, same switch).

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
    00 1C 7F 000 sequence number value of 'fwha_mac_magic'

(5) Verifying VMAC mode

  1. Run the 'cphaprob -a if' command on all cluster members:

    Notes:
    • On SecurePlatform OS, this command has to be run in Expert shell.
    • On Gaia OS, this command can be run in either shell (Clish, or Bash).
    • Each cluster interface will display its VMAC address, if VMAC mode is configured.


    • Example for versions prior to R76:

      [Expert@HostName]# cphaprob -a if
      
      Required interfaces: 3
      Required secured interfaces: 1
      
      eth0       UP                    non sync(non secured), multicast
      eth2       UP                    non sync(non secured), multicast
      eth1       UP                    sync(secured), multicast
      
      Virtual cluster interfaces: 2
      
      eth0            192.168.204.20        VMAC address: 00:1C:7F:00:D0:FE
      eth2            20.20.20.20        VMAC address: 00:1C:7F:00:D1:FE
      

    • Example for versions R76 and above (non-VSX):

      [Expert@HostName]# cphaprob -a if
      
      Required interfaces: 3
      Required secured interfaces: 1
      
      eth0       UP                    non sync(non secured), multicast
      eth2       UP                    non sync(non secured), multicast
      eth1       UP                    sync(secured), multicast
      
      Virtual cluster interfaces: 2
      
      eth0            192.168.204.20        VMAC address: 00:1C:7F:00:00:FE
      eth2            20.20.20.20        VMAC address: 00:1C:7F:00:00:FE
      

  2. Run the following debug commands on all cluster members (in Expert shell):

    [Expert@HostName]# fw ctl zdebug -m cluster + conf > /var/log/data.txt &
    [Expert@HostName]# cphaconf debug_data
    [Expert@HostName]# fg
    press CTRL+C

    The /var/log/data.txt file contains useful cluster information.

    The 'VMAC mode' section in that file should look similar to the examples below (refer to 'VMAC value' section above):


    • Example for versions prior to R76:
      ..............................
      ;[cpu_0];[fw_0];----   VMAC mode:   ----
      ;
      ;[cpu_0];[fw_0];VMAC: vmac mode is enabled;
      ;[cpu_0];[fw_0];VMAC: the vmac of each interface:;
      ;[cpu_0];[fw_0];Interface: 0) eth0, vmac: 00:1C:7F:00:D0:FE;
      ;[cpu_0];[fw_0];Interface: 1) eth2, vmac: 00:1C:7F:00:D1:FE;
      ;[cpu_0];[fw_0];VMAC: priomisc mode interfaces (by the VMAC mechanism) are:;
      ;[cpu_0];[fw_0];Interface: 0) eth0, vmac_index=0xd0;
      ;[cpu_0];[fw_0];Interface: 1) eth2, vmac_index=0xd1;
      ;[cpu_0];[fw_0];------------------------
      ..............................
      

    • Example for versions R76 and above (non-VSX):
      ..............................
      ;[cpu_0];[fw_0];----   VMAC mode:   ----
      ;
      ;[cpu_0];[fw_0];VMAC: vmac mode is enabled;
      ;[cpu_0];[fw_0];VMAC: the vmac of each interface:;
      ;[cpu_0];[fw_0];Interface: 0) eth0, vmac: 00:1C:7F:00:00:FE;
      ;[cpu_0];[fw_0];Interface: 1) eth2, vmac: 00:1C:7F:00:00:FE;
      ;[cpu_0];[fw_0];------------------------
      ..............................
      
    The output shows 'vmac mode is enabled', and shows that a VMAC address is assigned to each interface.
  3. Make sure that the ARP tables of the hosts connected to these cluster members now contain the VMAC value.
    Use the relevant command for the Operating System on the hosts (e.g., Linux : # arp -an ; Windows: # arp -a)
  4. Capture traffic that arrived at the ClusterXL gateway and make sure it is destined (check the 'Destination MAC Address' field) to the cluster VMAC according to the incoming VIP.

Monday, September 12, 2016

How to create VLAN interfaces in Gaia Clish

sk92356
To create VLANs on Gaia, one can use either the Gaia Portal, or the Gaia Clish shell.
Important Note: On Security Gateway in VSX mode, VLAN interfaces must be created via SmartDashboard in the object of VSX Gateway / VSX Cluster.
Performing the procedure from Clish provides the ability to mass copy/paste the commands necessary to quickly create a large number of VLANs.
When creating VLAN interfaces via Clish, the following commands should be used:
  1. Bringing on the Physical interface, on which the VLAN interfaces will be created:

    Note: This command may be skipped, if the interface's state is already on.

    HostName> set interface <Name_of_Physical_Interface> state on
  2. Adding a VLAN interface:

    HostName> add interface <Name_of_Physical_Interface> vlan <VLAN_ID>
  3. Assigning an IP address to newly created VLAN interface:

    HostName> set interface <Name_of_VLAN_Interface> ipv4-address <IP_Address> mask-length <Subnet_Mask_Length>
  4. Saving the configuration (so it survives reboot):

    HostName> save config

Example:
  • Physical interface - eth1
  • VLAN interface - eth1.100
  • VLAN IP address - 192.168.1.1 / 24
Required Clish commands:
HostName> set interface eth1 state on
HostName> add interface eth1 vlan 100
HostName> set interface eth1.100 ipv4-address 192.168.1.1 mask-length 24
HostName> save config

Note: Users can have all the required commands listed out in a simple text editor (Notepad, Notepad++, Notepad2, PSPad, etc) and then paste them directly into the Clish command line at once to easily and quickly add all the necessary VLAN interfaces.

Thursday, September 1, 2016

SSL_Inspection competitive



Players in the SSL Inspection

  1. Checkpoint
  2. A10
  3. BlueCoat
  4. ZScaler
  5. Fortinet

This document is a competitive analysis of 3 SSL Inspection technologies: A10, Zscaler and Checkpoint.


A10 Solution

The A10 Thunder appliances provide the ability to off-load SSL inspection.
·         This solution creates decrypted zone for any appliance to inspect traffic in the clear text.
·         There is a security risk when creating a decrypted zone inside your network. The clear text traffic in the decrypted zone can be accessed by anyone with access to the A10 devices, span ports, or taps could potentially collect user credentials, health information, credit card numbers, etc.
·         If someone captures data from the decrypted zone created by the A10 Thunder potentially wouldn’t leave a trace.



Checkpoint:
·         HTTPS inspection on the Check Point appliances, the decrypted traffic is not visible to the administrator.
·         Checkpoint does not provide any ability to capture the unencrypted data on the appliance.
·         The only way to off-load the HTTPS inspection on Check Point appliance would be to enable ICAP on the gateway and point to a specific ICAP receiver.

·         All ICAP options on the Check Point appliance are off by default. If any administrator modifies ICAP setting an audit record is generated.





Zscalers Solution

Security
·         Threat intelligence - Threat Library contains ~121,000 protections.
·         Application database - Has 200 applications and 90 categories
·         Application visibility –  Has no P2P apps and less than 70 file sharing apps


Management
·         No unified management – Can manage only security policy of users outside of the organization. A separate solution is required for on premise-security policy to manage internal users and traffic security at an extra cost
·         Administration overhead – Increase security architecture complexity, labor time and security risks by forcing security admins to manage separate policies and configurations for mobile and on-premise users
·         Lack of out-of-the-box protection - Cumbersome policy configuration with more than 15 different security policies

Traffic Redirection
·         Proxy based – Redirect users to their cloud through a manually configured hosted PAC file which is not secure and can be easily bypassed
·         Port evasive – Applications which do not use proxy ports will not be forwarded to Zscaler and will be bypassed
·         VPN – Has no dedicated VPN client for laptops users, forcing them to manually configure VPN on each client
·         Limited SSL decryption - SSL decryption for laptops requires dedicated proxy ports at additional costs

Deployment
·         Manual endpoint configuration –  Requires to manually deploy PAC files to redirect laptop traffic to the cloud with limited methods to enforce traffic redirection
·         Limited redundancy to cloud – redirection to the cloud is based on fixed IP addresses or static DNS names. Solution lacks dynamic redundancy and user connectivity to multiple cloud gateways



Checkpoint Solution

This solution utilizes Application control which includes SandBlast Agent, URL and VPN.  

Security
·         Threat intelligence Library contains 46 million searchable protections through Check Point Threat library (ThreatWiki).
·         Application database  7,000 apps and 163 categories in Check Point Application Library (AppWiki).
·         Application visibility  - 350 P2P and file sharing apps in Check Point




Note: Zscaler solution lacks threat intelligence which increase the ability to protect against the most advanced cyber threats 


Criteria Zscaler Checkpoint A10
Cloud Yes No No
Cost - (HW/Services) $$$$$ $ $$$ ($250K List)
Coverage (On Network) Yes Yes Yes
Coverage (Off Network) TBD (ADFS Validation/Agent Needed) Yes - Replacement Agent No
VPN Coverage  Yes (routing or agent changes needed Yes (routing or agent changes needed Yes  (routing changes needed)
Whitelisting (By LAN ID) Yes Yes TBD
Whitelisting (By Domain) Yes Yes TBD
Outbound Geo Protection Whitelisting (By Domain) Yes No TBD
FireEye (Decrypted SSL Feed) ICAP Feed (Ugly) ICAP Yes (via secure tap)
Sandbox Like Yes (Sandbox solution) Yes (Agent Based) TBD
SIEM Feed Yes Yes Yes
Desktop (App Install) Yes (requirements for Symantec AV agents) Replace VPN Agent No
Desktop (Browser Cert) Yes Yes Yes
Support (Scale from 1 to 10) TBD 7 TBD
Additional features Yes (Feature rich) Yes (Feature rich) Yes (limited)

Thursday, August 4, 2016

FWM - Troubleshoot

Installation failure on MGNT server occurs in verification or complication stage of the installation.  To troubleshoot this failure, follow these steps:
               
1.       Install policy from the CLI
fwm –d load $FWDIR/conf/PolicyName.W <target>

2.       Install the policy from the SmartDashboard
a.       Clean the old log files
cd $FWDIR/log
rm fwm.elg

echo  ‘ ‘> fwm.elg
                               
enable the fwm debug
fw debug fwm on TDERROR_ALL_ALL=5
fw debug fwm on OPSEC_DEBUG_LEVEL=9
                                                                                          .
Replicate the problem by installing the policy from the Dashboard GUI
                                Stop the fwm debug on the FWMGMT  server
fw debug fwm off TDERROR_ALL_ALL=1
fw debug fwm off OPSEC_DEBUG_LEVEL=1

Debug output are stored in fwm.elg, located under $FWDIR/log.

Policy Installation failure could be result of SIC, Misconfigured rules, GUI client connectivity problems or improper entered information, expired license. Evaluate output file fwm.elg to determine with of these may have cause the failure.


Lab   Troubleshoot SIC   - Policy Installation failure

From A-SMS (FW Management Server)
1.       cpca_client lscert    (use this command to validate certificate)
2.       fw debug fwm on Establish
3.       from Client GUI DashBoard, attempt to restablish SIC
4.       from A-SMS     fw debug fwm off
5.       review debug log output        less $FWDIR/log/fwm.elg 
6.       WinSCP to transfer fwm.elg file  and view in Test Editor to identity source of problem from debug file


Lab   Troubleshoot MisConfigured Rules  - Policy Installation Failure

From A-SMS (FW Management Server)
1.       In Expert mode
cd  $FWDIR/log
echo >fwm.elg
fw debug fwm on

2.       fw debug fwm on
TDERROR_ALL_ALL
fwm –d load $FWDIR/conf/standard.W A-GW

Note: you will see the output on the screen and fwm.elg. you can see additional info if you do a TDERROR_ALL_ALL=5

Stop the debugs
fw debug fwm off
unset TDERROR_ALL_ALL
                view fwm.elg     less $FWDIR/conf/fwm.elg


Lab   Troubleshoot GUI Client Connectivity Problem 

Look at less $FWDIR/con/gui-client file for allowed IP address

From A-SMS (FW Management Server)
cpconfig command
At the prompt type 3 and enter
Type Y and Enter , Type D and Enter  (delete your IP to test failure)
Enter 10.20.59.250   (your IP address)
Exit cpconfig option 9 enter

From the command prompt type
fw debug fwm on TDERROR_ALL_ALL=5

from your Client 10.20.59.250  Dashboard, launch the GUI

from the FWM stop the debug and view logs of the GUI client IP
fw debug fwm off
grep 10.20.59.250 $FWDIR/log/fwm.elg | less





How to uninstall and install another policy on firewall

ISSUE

There may be a time where you install the wrong policy onto a Check Point Firewall. This can block your connections, and screw which traffic is allowed through the firewall.

RESOLUTION

These steps will show you how to remove and reinstall the correct policy via the CLI on the manager (SCS),

  1. First of all we look at the policy history, so we can find out the name of the policy we need to reinstall.

fw stat -l [firewall ip]

  2. Next we remove the security policy from the firewall.

fwm unload [fwname]

  3. Finally we install the correct policy back onto the Firewall.

Note : Note how we add the .W to the policy name as it has yet to be be compiled into a .cf file (which is what is installed onto the Firewall/Gateway)
[PolicyName].W is  uncompelled policy
[PolicyName].CF is compiled Policy

fwm load [PolicyName].W [fwname]
fwm load RuleBaseName.W TargetGatewayName


[Expert@MYFWM01]# fwm load Standard samplegw
Installing policy on R77 compatible targets:
Standard.W: Security Policy Script generated into CustomerPolicy.pf
Standard:
Compiled OK.
Installing Security Gateway policy on: examplegw . ..

Security Gateway policy installed successfully on examplegw. ..
Security Gateway policy installation complete
Security Gateway policy installation succeeded for: examplegw



Installation failed; reason – load on module failed, failed to load security policy
Recently I tried a policy installation on a Security Gateway appliance which failed with the message: Installation failed; reason - load on module failed, failed to load security policy

From my experience I know that a cpstop ; cpstart normaly solves this problem.

But since I was dealing with a remote site gateway which also was stand-alone installation, issuing cpstop was no option since it would interrupt the service.

So I utilized the cpwd_admin command for stopping and restarting FWM and CPD.

cpwd_admin stop -name FWM -path "$FWDIR/bin/fw" -command "fw kill fwm"
cpwd_admin start -name FWM -path "$FWDIR/bin/fwm" -command "fwm"

cpwd_admin stop -name CPD -path "$CPDIR/bin/cpd_admin" -command "cpd_admin stop"
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd"

Then I checked the status of all my services with cpwd_admin list.

All services were up and I tried policy installation again, which worked as expected.




I was able to solve the issue using the following steps i stumbled on while surfing the net:

1.            tellpm process:monitord
2.            ps aux | grep cpd
3.            kill -15
4.            tellpm process:monitord t
5.            cpwd_admin start -name CPD -path “$CPDIR/bin/cpd” -command “cpd”

Here is the expected output:
[Expert@CP-DMZ:0]# tellpm process:monitord
[Expert@CP-DMZ:0]#
Message from syslogd@ at Tue Sep 16 10:27:42 2014 …
CP-M-DMZ monitord[4129]: monitord got killed
[Expert@CP-DMZ:0]#
[Expert@CP-DMZ:0]# ps aux | grep cpd
admin 4461 0.0 0.3 212412 3196 ? Dsl Aug06 42:47 cpd
admin 6905 0.0 0.0 1816 492 pts/2 S+ 10:27 0:00 grep cpd

[Expert@CP-DMZ:0]# kill -15 4461

[Expert@CP-DMZ:0]#
[Expert@CP-DMZ:0]# tellpm process:monitord t

[Expert@CP-DMZ:0]#
[Expert@CP-DMZ:0]# cpwd_admin start -name CPD -path “$CPDIR/bin/cpd” -command “cpd”
cpwd_admin:
Process CPD started successfully (pid=7030)
[Expert@CP-DMZ:0]#

So the problem was solved without service interruption.

Wednesday, August 3, 2016

SSL Inspection - UserCheck


UserCheck  (Enable Block Pages)

SK100571  SK97951  SK100281    Check URL Categorization

Exceptions - via regular expression
----------------------------------
(.*\.|)logmein\.com
(.*\.|)dropbox\.com
(.*\.|)gotomeet\.me
(.*\.|)citrixonline\.com
*.gotomeet.me

Packet Flow


  1. Firewall Rules  - Firewall Rule base work on Layer 3 (IP/Networks) and Layer 4  (TCP Services)
  2. Application Blade  works on  Layer 5-6-7 
    1. IPS Blade - Streaming - Passive Streaming Session 


1. Checkpoint firewall object - Usercheck - Accessability - Edit- Through all Interfaces
2. Engine settings -  URL Filtering  uncheck (categorize HTTPS sites)  - must put back to allow other to w  Global Property
3. reset userset daemon
 # mpclient stop UserCheck
 # mpclient start UserCheck 

[Expert@mytestint-fwa:0]# mpclient stop UserCkeck
Exception: An exception has occurred during an RPC request: Portal not found
[Expert@mytestint-fwa:0]# mpclient stop UserCheck
Portal stopped
[Expert@mytestint-fwa:0]# mpclient start UserCheck
Portal started

[Expert@mytestint-fwa:0]# 


[Expert@mytestint-fwa:0]# ps -aux | grep UserCheck
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
admin    26902  0.0  0.0   1740   528 pts/2    S+   13:07   0:00 grep UserCheck
[Expert@mytestint-fwa:0]# 




sk100571 
Webpage does not redirect to UserCheck page

Symptom
  • When browsing to a block site, the site gets blocked however the page does not redirect to the UserCheck web page
Cause:
On SmartDashboard, the UserCheck Web Portal "Main URL" is configured with the incorrect IP. On a cluster, it is not configured as the virtual IP (VIP) of the cluster.


Solution
Change the UserCheck Web Portal "Main URL" to the correct IP address:
Open SmartDashboard > Edit Cluster/Gateway Object > UserCheck > Main URL
Once you have changed the Main URL, you will need to restart the UserCheck portal. From CLI run the following commands:
# mpclient stop UserCheck
# mpclient start UserCheck 


sk97951
UserCheck block page not displayed when accessing blocked site as per URL Filtering policy

Symptoms
  • UserCheck Block page is not displayed when users connect from the internal interfaces, even with the UserCheck portal or the Main URL field being configured as the primary URL for the web portal that shows the UserCheck notifications.
  • HTTPS Inspection and HTTP/HTTPS Proxy is not enabled on the Security Gateway.
Cause
In the Security Gateway object properties - "UserCheck" pane - "Accessibility" section - the option "Through internal interfaces" is selected. However, the option "Including DMZ internal interfaces" or the option "Including undefined internal interfaces" was not selected.
Solution
Follow these steps:
  1. Open Security Gateway object properties.
  2. Go to 'UserCheck' pane.
  3. In the 'Accessibility' section, click on 'Edit...' button.
  4. Configure the interfaces on the Security Gateway, through which the UserCheck portal can be accessed.

    Select the options below, according to where the users are connecting from, so they are redirected to the UserCheck portal:

    • Through all interfaces
    • Through internal interfaces

      • Including undefined internal interfaces - select this option, if users are connecting through the internal interfaces
      • Including DMZ internal interfaces - select this option, if users are connecting through the DMZ internal interface
      • Including VPN encrypted interfaces
    • According to the Firewall Policy (select this option if there is a rule that states who can access the portal)
  5. Click on 'OK' to apply the settings.
  6. Save the changes: go to 'File' menu - click on 'Save'.
  7. Install policy onto involved Security Gateways.


sk100281
Cannot access UserCheck page


Symptoms
  • When using Application Control and URL Filtering with UserCheck enabled, blocked websites are successfully blocked, however the browser does not redirect to the UserCheck page. It will also not be possible to directly browse to the UserCheck page based on the alias set up in SmartDashboard.
  • UserCheck connectivity debug (fw ctl zdebug + crypt) shows
    ;vm_mux_first_packet: Connection is for http(s)? = 1 (allow redirect = 1); ;vm_mux_first_packet: is mp port allowed? allow_80_443_ports = 0 or connection from internal interfaces = 0;
Cause
UserCheck is not enabled on the correct interfaces.
Solution
 To resolve this issue, perform one of the following two solutions:
  1. Navigate to 'Firewall object -> UserCheck -> Accessibility' and enable:
    Through Internal Interfaces:
    * Including VPN encrypted interfaces* including undefined internal interfaces* Including DMZ internal interface

     
  2. Navigate to 'Firewall object -> Topology -> Edit Topology'

    Confirm that the interfaces have been correctly configured as 'Internal' or 'External'. If an internal interface is misconfigured as an 'External' interface, UserCheck page will not be displayed. Only traffic from an 'Internal' interface will allow the UserCheck webpage to be displayed.
    The only exception would be if 
    UserCheck is configured to be displayed through 'All Interfaces' in 'Firewall object -> UserCheck -> Accessibility'.




Tuesday, August 2, 2016

CPView CPKstats

1) CPView.

sk101878 | CPView Utility

https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk101878&partition=General&product=Security


1a] To view a timestamp in history. We can also use this to verify against the times that the issue was reported.

# cpview -t <timestamp>

Example:
# cpview -t 01Mar2015 10:54:15


1b] When we are experiencing an issue with high CPU on a firewall worker.

Identify the worker.
# top

Go to CPView
# cpview

Advanced > CoreXL > Instances > Find the particular instance that we are seeing high CPU

'Statistics are NOT active (may affect performance). Press 'a' to activate.

You will then be prompted to type 'y' to proceed.

You should be able to scroll down in the instance pane and find the devices that are being handled by this firewall worker instance.

You can deactivate it by following the same steps to activate it.


1c] We can also look at the following areas to see what services may be causing this issue.

CPU > Top-Protocols > Instances > Find the particular instance that we are seeing high CPU

Network > Top-Connections (OR) Top-Protocols



2) CPKstats

Should we not be able to access CPView again, we can follow the below SK to get the same results.

sk103293 | How to get per CPU statistics and TOP FW-lock consumers with cpkstats

https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk103293&partition=Expert&product=CoreXL%22



3) The CPView database failed to upload for some reason and I was hoping that we could upload that one more time from each firewall.

# tar czvf /var/log/cpview_`hostname`.tgz /var/log/CPView_history/CPViewDB.dat

# cpinfo -n -f /var/log/cpview* -s 1-8319371181 -u <UserCenter Username>



4) The core dump that was generated was a User Check core dump and I'm not sure that it would cause the issue that we saw as the failover time where we lost all connections to the gateways did not add up to when the core dump was generated.

-----------------------
User Mode Core Dumps
-----------------------
total 45868
-rw-r--r-- 1 admin root 46912760 Jul 29 15:32 usrchkd.28001.core.gz