Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)
Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)
前方火热讨论中:做开源 VS 赚钱,能兼得吗?亮出你的观点
你认为做开源是理想主义吗?能否利用开源创业、实现开源变现
1. fw ctl chain
Check Checkpoint Security Gateway packet inspection order/chain. For more details, check
the post “How Firewalls (Security Gateways) Handle the Packets?“
in chain (18):
net sec 关注 0 0 0
9: 2000000 (f1779c30) (00000003) vpn policy outbound (vpn_pol)
https://blog.csdn.net/netsec51sec/article/details/98956588 1/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
10: 10000000 (f2902cb0) (00000003) SecureXL outbound (secxl)
2. Proxy Arp
a. Use the Gaia portal.
Network Management -> Arp -> Proxy ARP
Actually the GAIA command above convert it automatically to a file called local.arp
Verify the changes after a policy push with command “fw ctl arp”:
200.0.0.102 eth0
4. TCPDUMP
tcpdump port 257 , <– on the firewall, this will allow you to see if the logs are passing
from the firewall to the manager, and what address they are heading to.
tcpdump -i Mgmt -vvv -s0 -w tcpdumpfile.log <– this captures the FULL packets to a
file usefull for wireshark the -s0 stops the files being shortened
net sec 关注 0 0 0
tcpdump -i INT port 67 <– view dhcp requests
https://blog.csdn.net/netsec51sec/article/details/98956588 2/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
tcpdump -eP -nni any host 10.9.4.30 <-disable both name and service port resolution
while performing a capture, by using the -nn option; -e Print the link-level header on
each dump line. This can be used, for example, to print MAC layer addresses for
protocols such as Ethernet and IEEE 802.11. -p–no-promiscuous-mode.
tcpdump -i any <- any can be used to tell tcpdump to listen on all interfaces
5. FW Monitor
fw monitor -e ‘accept host(192.168.1.12);’ <– Show packets with IP 192.168.1.12 as
SRC or DST
fw monitor -pi ipopt_strip -e ‘accept udpport(53);’ <–Show UDP port 53 (DNS) packets,
pre-in position is before ‘ippot_strip’
fw monitor -m O -e ‘accept udp and (sport>1023 or dport>1023);’ <– Show UPD traffic
from or to unprivileged ports, only show post-out
fw monitor -v 23 -e ‘accept tcpport(80);’ <–Show Capture web traffic for VSX virtual
system ID 23
fw monitor -e ‘accept ip_p=50 and ifid=0;’ <–Show all ESP (IP protocol 50) packets on
the interface with the ID 0. (List interfaces and corresponding IDs with fw ctl iflist)
6. VPN tu
vpn tu or vpn tunnelutil
(Q) Quit
7. Disk/File/Folder Commands
Checkpoint SK60080 displays some solutions to resolve excessive disk consumption on
SPLAT/Gaia/IPSO/Lunix OS system. Here are some helpful commands:
a. df -h (view the partition table and its associated utilization)
b. du -h –max-depth=1 /opt | sort -n -r (examine disk space utilization at directory-level)
c. ls -1 $FWDIR/conf/db_versions/repository/ | wc -l (check the number of database
revisions on a Security Management server) net sec 关注 0 0 0
https://blog.csdn.net/netsec51sec/article/details/98956588 3/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
d. ls -l $RTDIR/distrib/* | wc -l (counts the number of records)
e. evstop & evstart (Stop / start the Eventia / SmartEvent)
f. rm -r $RTDIR/distrib/* (Purge this directory of stale records)
8. Connections
CP-1> fw tab -t connections -s
HOST NAME ID #VALS #PEAK #SLINKS
Note:
The VALS colum is the current number of connections that are in the connections table at the time the command was run.
The PEAK number is the max number of connections that have been recorded since the last reboot.
The SLINKS table is a table of symbolic link that point to the real connection entry. There are usually 4 symbolic links per connection. This way no
matter which direction the packet comes, there will be an entry for it. There is more to it than that, but that is the general idea.
Total memory allocated: 71303168 bytes in 17408 (4096 bytes) blocks using 1 pool
Total memory bytes used: 9703728 unused: 61599440 (86.39%) peak: 18891512
Total memory blocks used: 2665 unused: 14743 (84%) peak: 4705
Cookies:
0 chain free
https://blog.csdn.net/netsec51sec/article/details/98956588 4/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
231169 total, 7807 TCP, 4665 UDP, 182351 ICMP,
Fragments:
NAT:
Sync:
Version: new
Note: The fwaccel off command is not persistent and SecureXL will be enabled again after a
reboot of the system. SecureXL can be permanently disabled through the CPconfig utility.
To check the number of accelerated connection and other SecureXL statistics: CP[admin]#
netstat -f
To check the number of accelerated SA (VPN traffic): CP[admin]# netstat -s
To check overall SecureXL statistics: CP[admin]# fwaccel stat
or
net sec 关注 0 0 0
https://blog.csdn.net/netsec51sec/article/details/98956588 5/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
[[email protected]]# ls1 11 12 13 14 15 16 17 18 2 3 4 5 6 7 8 9
All version are in those number directories. Actual version info is in versioning_db.fws
or
for SPLAT the default shell is /bin/cpshell which is not showing from /etc/shells file.
from
net sec 关注 0 0 0
https://blog.csdn.net/netsec51sec/article/details/98956588 6/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
Note: Please check my previous post: Enable SFTP to Checkpoint Gaia OS System for
more details.
d788583cf44389b83b0dd6990cb53f63 Check_Point_R77.20.linux.tgz
Actions/
Actions/cpconfig
Actions/CheckPackage
Actions/CRSValidator
Actions/GetPa
……
***********************************************************
***********************************************************
* R77_20_JUMBO_HF
************************************************************************
———— ——
https://blog.csdn.net/netsec51sec/article/details/98956588 7/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
************************************************************************
[[email protected]:0]#
b. Ignore Hangup
[[email protected]:0]# fw monitor -e “accept host(172.16.0.1);” -o test.cap & [1] 27524
[[email protected]:0]# ps -aux | grep “fw monitor”
admin 27524 0.7 2.1 88268 21256 pts/2 S 14:09 0:00 fw monitor -e accept host(172.16.0.1);
-o test.cap
disown 27524
Closing, or having the SSH session end due to timeout will no longer send a hangup to this
process, since it is no longer a child process of the SSH session.
A new SSH session or console session can be started later, and the process can be killed
manually to stop it.
kill 27524
[[email protected]:0]# nohup fw ctl kdebug -T -f -o debug.txt -m 10 -s 50000 & [1] 30209
nohup: appending output to ‘nohup.out’
This example is creating cyclic debug files, 10 files, with a maximum of 50000Kb. Again, the
PID is displayed, and the output of the command is piped to the text file ‘nohup.out’.
The SSH session can be ended with “exit” or timed out, and the hangup sent to this child
process will be ignored, the debug will continue running until we log in again and manually
kill the PID.
This creates a pnote (problem notification) that is in problem state at current cluster member
and force a failover to another member:
https://blog.csdn.net/netsec51sec/article/details/98956588 8/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
and
cphaprob -i list
Once you’ve finished your testing, run these two to reset it:
Required interfaces: 5
eth1 2.13.11.60
eth2 10.1.90.14
Mgmt 10.1.72.14
eth3.104 10.1.104.14
eth3.106 10.1.106.14
eth3.102 10.1.102.14
Built-in Devices:
Current state: OK
Current state: OK
Registered Devices:
Registration number: 0
Timeout: none
Current state: OK
https://blog.csdn.net/netsec51sec/article/details/98956588 9/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
Registration number: 1
Timeout: none
Current state: OK
Registration number: 2
Timeout: none
Current state: OK
Registration number: 3
Timeout: none
Current state: OK
Registration number: 4
Timeout: none
Current state: OK
Usually it was caused by the connection between firewall interface port and switch port.
UDP port 8116 will help us to find out which one is not sending the keep-alive packets:
Cluster Control Protocol (CCP) runs on UDP port 8116, and allows cluster members to
report their own states and learn about the states of other members, by sending keep-alive
packets (applies only to ClusterXL clusters). Also CCP keeps cluster member sync state.
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
11:13:17.497801 00:00:00:00:fe:01 > 01:00:5e:5b:66:0e, ethertype IPv4 (0x0800), length 92: 0.0.0.0.8116 >
11:13:17.597743 00:00:00:00:fe:01 > 01:00:5e:5b:66:0e, ethertype IPv4 (0x0800), length 76: 0.0.0.0.8116 >
11:13:17.676067 00:00:00:00:fe:00 > 01:00:5e:5b:66:0e, ethertype IPv4 (0x0800), length 76: 0.0.0.0.8116 >
11:13:17.676182 00:00:00:00:fe:00 > 01:00:5e:5b:66:0e, ethertype IPv4 (0x0800), length 92: 0.0.0.0.8116 >
https://blog.csdn.net/netsec51sec/article/details/98956588 10/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
This control (customization) can be done on-the-fly using the fw ctl set int command
(change takes effect immediately). However, the value of the kernel parameter returns to its
default value after a reboot. At times, it may be required to control (customize) the behavior
of Security Gateway permanently. In addition, it is necessary for some kernel parameters to
be changed upon boot. fwkern.conf file is the one which holds all those kernel parameters
value. If it is not existing in your system, you will need to create it manually.
fwha_mac_magic=40
fwha_mac_forward_magic=41
fw_allow_simultaneous_ping=1
fwha_forw_packet_to_not_active=1
Reference:
1. Check Point/SPLAT/Network Debug Cheat Sheet
Share this:
More
https://blog.csdn.net/netsec51sec/article/details/98956588 11/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
Click to share on Skype (Opens in new window)
Like this:
Like Loading...
Related
mysql 数据库无法启动(Ignoring the redo log due to missing MLOG_C… 姚远的博客 1724
数据库机器的CPU和主板都换了,重新开机,发现mysql数据库无法启动! Ignoring the redo log due to …
优质评论可以帮助作者获得更高权重 评论
相关推荐
Basic Check Point Gaia CLI Commands and Installation Videos... 8-6
This post summarises some basic but useful CLI commands for your daily working reference especiall…
安装配置CHECKPOINT防火墙 7431
大纲 一、 首先明确两个概念二、 VPN/FW Moudule 或者 Managerment Server 在 WIN…
【AI实战】手把手教你文字识别(检测篇二:AdvancedEAST... 8-12
gitclonehttps://github.com/huoyijie/AdvancedEAST.git (2)下载模型文件 下载AdvancedEAST预训练好的…
Hadoop-2.4.1学习之SecondaryNameNode、CheckpointNode、Ba…skyWalker_ONLY 3406
在Hadoop-2.x版本之前只存在SecondaryNameNode,没有CheckpointNode、BackupNode的概念,在…
无服务器应用程序的版本控制策略_weixin_26752759的博客 8-19
Start with the simple Hello World app that’s scaffolded for you by the AWS SAM CLI. 从AWS SAM CLI…
redis配置文件redis.conf详细说明_殇沫流年的专栏 8-13
#redis 配置文件示例#当你需要为某个配置项指定内存大小的时候,必须要带上单位,#通常的格式就是 1k …
“够用就好”的Linux命令快速教程_Debug_Snail的专栏 7-15
the shell's default language is calledbash. Unlike Windows users who primarily point-and-click inside of…
https://blog.csdn.net/netsec51sec/article/details/98956588 12/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
转自:https://zhuanlan.zhihu.com/p/34650908事务: 说起mysql innodb存储引擎的事务,首先想到就…
tensorflow报NotFoundError (see above for traceback): Key G_b0 not fou… 修炼之路 3847
错误提示 在使用TensorFlow加载ckpt文件的时候报NotFoundError (see above for traceback): Key G_b0…
net sec
码龄2年 暂无认证
541 5 2 3 28
积分 粉丝 获赞 评论 收藏
私信 关注
搜博主文章
热门文章
https://blog.csdn.net/netsec51sec/article/details/98956588 13/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
Two Different CA Certificate... 1155
分类专栏
Blog
Security
最新评论
您愿意向朋友推荐“博客详情页”吗?
最新文章
2011年 32篇
net sec 关注 0 0 0
https://blog.csdn.net/netsec51sec/article/details/98956588 14/15
19/8/2021 Advanced Checkpoint Gaia CLI Commands (Tips and Tricks)_Cyber Security Memo-CSDN博客
目录
1. fw ctl chain
2. Proxy Arp
4. TCPDUMP
5. FW Monitor
6. VPN tu
7. Disk/File/Folder Commands
8. Connections
net sec 关注 0 0 0
https://blog.csdn.net/netsec51sec/article/details/98956588 15/15