Difference between revisions of "Fwd restart via CLI"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
(Created page with "command line fwd restart == stop/start commands == cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd" cpwd_admin start -name FWD -path "$FWDIR/bin/fw" -...")
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
command line fwd restart
 
  
== stop/start commands ==
+
== Problem==
  cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd"
+
1)  A firewall is logging locally. Symptoms will include:
  cpwd_admin start -name FWD -path "$FWDIR/bin/fw" -command "fwd"
+
 
 +
A) No new logs are coming into the SmartCenter or CLM according to the SmartViewTracker or fw log command
 +
 
 +
B) The $FWDIR/log/fw.log file is increasing in size on the firewall in question
 +
 
 +
2) There is not TCP log connection between the firewall fwd process and the log server / SmartCenter / CLM.
 +
 
 +
You should normally see an ESTABLISHED connection when running the following command on a firewall that is configured to log remotely. 
 +
[Expert@chkpfw]# '''netstat -anp | grep ":257" | grep -v -E "LISTEN|127.0.0.1"'''
 +
tcp        0      0 172.16.0.254:48956          192.168.1.100:257          ESTABLISHED 31856/fwd
 +
 
 +
where 172.16.0.254 = local firewall address and 192.168.1.100 = remote log server address
 +
 
 +
== Solution ==
 +
 
 +
1) Make sure fwd is running on the SmartCenter or other logger and that there is free disk space.  
 +
 
 +
2) Restart fwd on the firewall(s).
 +
 
 +
'''command line fwd restart'''
 +
 
 +
'''start command'''
 +
# cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd"
 +
 
 +
'''stop command'''
 +
  # cpwd_admin start -name FWD -path "$FWDIR/bin/fw" -command "fwd"
 +
 
 +
[[category:logging]]

Latest revision as of 23:09, 15 November 2013

Problem

1) A firewall is logging locally. Symptoms will include:

A) No new logs are coming into the SmartCenter or CLM according to the SmartViewTracker or fw log command

B) The $FWDIR/log/fw.log file is increasing in size on the firewall in question

2) There is not TCP log connection between the firewall fwd process and the log server / SmartCenter / CLM.

You should normally see an ESTABLISHED connection when running the following command on a firewall that is configured to log remotely.

[Expert@chkpfw]# netstat -anp | grep ":257" | grep -v -E "LISTEN|127.0.0.1"
tcp        0      0 172.16.0.254:48956          192.168.1.100:257           ESTABLISHED 31856/fwd 

where 172.16.0.254 = local firewall address and 192.168.1.100 = remote log server address

Solution

1) Make sure fwd is running on the SmartCenter or other logger and that there is free disk space.

2) Restart fwd on the firewall(s).

command line fwd restart

start command

# cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd"

stop command

# cpwd_admin start -name FWD -path "$FWDIR/bin/fw" -command "fwd"