CheckPoint學習筆記——CLI Tools

      最近在學習checkpoint,可能陸續會有相關的文章貼上來和大家分享,請各位多多指點哦。

      這裏先貼上CLI Tools的學習筆記,講的不對的地方請大家不吝賜教。

      先介紹下CLI tools,  CLI是Command Line Interface的縮寫說白了CLI tools 就是checkpoint爲系統管理員提供的命令行管理界面及一些命令。跟linux text界面的概念是一回事。

       下面是相關命令介紹,附件有checkpoint expert mode CLI命令介紹的pdf文檔,記得下載哦。

1.系統配置命令: sysconfig

登錄checkpoint 命令行界面後之後在命令行中輸入sysconfig,系統將進入以下界面

 

sysconfig 命令界面

可以選擇相應的選項做相關的配置。這些配置在web管理界面都是可以做的,這裏就不詳細介紹了。

2.進入專家模式:expert
       登錄checkpoint firewall之後在命令行中輸入expert,輸入expert密碼,進入專家模式
       進入專家模式後可使用如下命令:
 
  1. tcpdum -i eth0 
  2. tcpdump命令選項: 
  3. Usage: tcpdump [-adeflnNOpqRStuvxX] [ -c count ] [ -C file_size ] 
  4.         [ -F file ] [ -i interface ] [ -r file ] [ -s snaplen ] 
  5.         [ -T type ] [ -U user ] [ -w file ] [ -E algo:secret ] [ expression ] 
  6.  
  7. fw unloadlocal  
  8.        unload current policy on the gateway,and sets the gateway to the default policy。 
  9. fw stat 
  10.        the policy name will be displayed。 
  11. fw ver 
  12.        the gateway version is displayed。 
  13. fw --help 
  14.        命令行幫助 
  15. [Expert@firewall]# fw --help 
  16.  Unknown command "--help" 
  17. Usage: 
  18. fw ver [-h] ...                                          # Display version 
  19. fw kill [-sig_no] procname                      # Send signal to a daemon 
  20. fw putkey ...                                           # Client server keys 
  21. fw sam ...                                               # Control sam server 
  22. fw sam_policy ...                                     # SAM policy editor 
  23. fw fetch targets                                     # Fetch last policy 
  24. fw amw fetch                                        # Fetch Anti Malware policy 
  25. fw tab [-h] ...                                         # Kernel tables content 
  26. fw monitor [-h] ...                                  # Monitor ***-1/FW-1 traffic 
  27. fw ctl [args]                                           # Control kernel 
  28. fw lichosts                                             # Display protected hosts 
  29. fw log [-h] ...                                          # Display logs 
  30. fw logswitch [-h target] [+|-][oldlog]        # Create a new log file; 
  31.                                                                # the old log is moved 
  32. fw repairlog ...                                         # Log index recreation 
  33. fw mergefiles ...                                       # log files merger  
  34. fw lslogs ...                                               # Remote machine log file list 
  35. fw fetchlogs ...                                         # Fetch logs from a remote host 
  36.  
  37. netstat -rn              displays the routting table 
  38. ifconfig 接口配置命令,具體看ifconfig -h 
  39.  
  40. cpstop      停止服務 
  41. cpstart      開啓服務 
  42. cprestart   重啓服務 
  43.  
  44. adduser  username   To add the administrator 
  45. deluser   username    To delete the administrator 
  46. showusers                 show all user 
  47. backup -f yourname_backup    創建備份 備份存儲路徑:/var/CPbackup/backups 
  48. restore -f backupfilename    還原備份  必須在備份目錄下 
 
 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章