NSM升级手册

  • 格式:docx
  • 大小:5.53 MB
  • 文档页数:74

NSM升级手册目录NSM升级手册 (1)一、NSM恢复出厂设置及版本升级 (1)二、NSM攻击特征库更新 (18)三、添加MIP地址 (23)四、SNMP 配置 (25)五、IDP-Policy添加 (31)六、防火墙及IDP设备添加 (45)七、NSM主备切换及恢复 (68)八、删除设备 (71)一、NSM恢复出厂设置及版本升级1、恢复出厂设置(1)将主备两台NSM恢复出厂设置的U盘插在NSM的USB口上,并重启设备重启设备命令:reboot(2)等设备重启后进入到安装界面,输入erase-re install,开始恢复出厂设置(3)恢复完后输入用户名和密码进入命令行界面用户名:admin密码:abc123(4)检查当前NSM版本,确认是否完成恢复出厂设置2、Master NSM版本升级(1)在本地用3CD软件搭建FTP服务器,利用FTP将升级所需文件导入到NSM中升级所需文件:nsm2012.2R8-systemupdate-linux.zipnsm2012.2R8_servers_linux_x86.zip(2)解压系统更新文件(3)解压Linux文件(4)设置参数(按照如下配置设置参数)参数设置如下:########## GATHERING INFORMATION ##########1) Install Device Server only2) Install GUI Server only3) Install both Device Server and GUI ServerEnter selection (1-3) []> 3Do you want to do NSM installation with base license? (y/n) [y]> Enter base directory location for management servers [/usr/netscreen]> ==> Set to /usr/netscreenEnable FIPS Support? (y/n) [n]>Select Device Schema to be loaded in NSM1) Load all Device Family Schemas2) Load Screen OS Device Schema only (Screen OS)3) Load Screen OS and J/SRX Devices Schema only (Screen OS + J/SRX Series)Enter selection (1-3)[1]> 1########## GENERAL SERVER SETUP DETAILS ##########Will this machine participate in an HA cluster? (y/n) [n]> yIs this machine the primary server for the HA cluster? (y/n) [y]> WARNING: The servers need to be stopped on the secondary server during the installation of this software to avoid data corruption.########## DEVICE SERVER SETUP DETAILS ##########Will the Device Server data directory be located on a shared disk partition? (y/n) [n]>The Device Server stores all of the user data under a single directory.By default, this directory is /var/netscreen/DevSvr. Becausethe user data (including logs and policies) can grow to be quitelarge, it is sometimes desirable to place this data in another partition.Please enter an alternative location for this data ifso desired, or press ENTER for the location specified in the brackets.==> Set to /var/netscreen/DevSvr########## GUI SERVER SETUP DETAILS ##########Will the GUI Server data directory be located on a shared disk partition? (y/n) [n]>The GUI Server stores all of the user data under a single directory.By default, this directory is /var/netscreen/GuiSvr. Becausethe user data (including database data and policies) can grow to be quite large, it is sometimes desirable to place this data in another partition.Please enter an alternative location for this data ifso desired, or press ENTER for the location specified in the brackets.==> Set to /var/netscreen/GuiSvrThe GUI Server stores all of the database logs under a single directory. By default, this directory is /var/netscreen/GuiSvr/xdb/log. Becausethe database log can grow to be quitelarge, it is sometimes desirable to place this log in another partition.Please enter an alternative location for this log ifso desired, or press ENTER for the location specified in the brackets.Enter database log directory location [/var/netscreen/GuiSvr/xdb/log]> Enter the management IP address of this server [172.17.245.44]> Enter the https port for NBI service [8443]>Setting GUI Server address and port to 172.17.245.44:7801 for Device ServerPlease enter a password for the 'super' userEnter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>Enter the one-time password for this Gui ServerEnter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>Will a Statistical Report Server be used with this GUI Server? (y/n) [n]> ==> CFM user is set to 'cfmuser'CFM password for user 'cfmuser'Enter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>Please try again. First entry does not match second entry.CFM password for user 'cfmuser'Enter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>Enter the same password again for CFM userChanging password for user cfmuser.New UNIX password:BAD PASSWORD: it is too simplistic/systematicRetype new UNIX password:passwd: all authentication tokens updated successfully.########## HIGH AVAILABILITY (HA) SETUP DETAILS ########## Enter the IP address for the primary HA Server [172.17.245.44]>Enter the IP address for the secondary HA Server []> 172.17.245.43 NOTE: Please make sure the heartbeat PASSWORD is the same for primary andsecondary machines.Please enter shared password that will be used for Heartbeat authenticationEnter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>Enter number of Heartbeat links between the primary and secondary machines [1]>NOTE: Heartbeat link(s) are needed between the primary and secondary machines.The IP addresses entered here must be correct and match on both ends ofthe link for automatic failover to function correctly.Enter the IP address for this machine's primary heartbeat link[172.17.245.44]>Enter the IP address for the peer's primary heartbeat link[172.17.245.43]>Enter the port used for heartbeat communication [7802]>Minimum HA failover time is 60 seconds.The heartbeat message interval times the number of missing heartbeatsmust equal at least this value.Using the defaults is recommended.Enter a time interval (seconds) between heartbeat messages [15]> Enter number of missing heartbeat messages before automatic switchover occurs [4]>An IP address outside the HA cluster is needed to monitor this server's network connection.Enter an IP address outside of the cluster []> 172.17.245.249Enter the rsync replication timeout [3600]>Enter HA directory [/var/netscreen/dbbackup]>The HA server(s) requires that you have previously installed the rsync program.Enter the full path to rsync [/usr/bin/rsync]>The HA server(s) requires that you have previously installed the ssh program.Enter the full path for the ssh command [/usr/bin/ssh]>Note: A trust relationship between the primary and thesecondary server, via ssh-keygen, is a requirement for theremote replication to work properly.Please reset the trust relationship with 'nsm' user.Here are sample commands:cd /home/nsmsu nsmssh-keygen -t rsachmod 0700 .ssh-- then copy .ssh/id_rsa.pub to the peer machines' .ssh/authorized_keys ########## BACKUP SETUP DETAILS ##########Will this machine require local database backups? (y/n) [y]>Enter hour of day to start the database backup (00 = midnight, 02 = 2am, 14 = 2pm ...)[02]>Will daily backups need to be sent to a remote machine? (y/n) [n]> Enter number of database backups to keep [7]>Enter the rsync backup timeout [3600]>########## DEVSVR DB SETUP DETAILS ##########Enter Postgres DevSvr Db port [5432]>Enter Postgres DevSvr Db super user [nsm]>Enter Postgres DevSvr Db password for user 'nsm'Enter password (password will not display as you type)>Please enter again for verificationEnter password (password will not display as you type)>########## POST-INSTALLATION OPTIONS ##########Start High Availability daemon processes when finished? (y/n) []> y########## CONFIRMATION ##########About to proceed with the following actions:- Install Device Server- Install GUI Server- Install High Availability Server- This machine will have base license with maximum 25 devices- Store base directory for management servers as /usr/netscreen- All Device Families Schemas Load- This machine participates in an HA cluster- This server is the primary: Yes- Store Device Server data in /var/netscreen/DevSvr- Store GUI Server data in /var/netscreen/GuiSvr- Store GUI Server database log in /var/netscreen/GuiSvr/xdb/log- Use IP address 172.17.245.44 for management- Use port 8443 for NBI Service- Connect to GUI Server at 172.17.245.44:7801- Set password for 'super' user- CFM user: cfmuser- CFM Password set for 'cfmuser'- IP address for the primary HA Server: 172.17.245.44- IP address for the secondary HA Server: 172.17.245.43- Set shared password for heartbeat- Number of Heartbeat links: 1- IP address for this machine's primary heartbeat link: 172.17.245.44 - IP address for the peer's primary heartbeat link: 172.17.245.43- IP address for remote HA replications: 172.17.245.43- Port for HA heartbeat communication: 7802- Seconds between heartbeat messages: 15- Missing heartbeat messages: 4- Outside pingable IP address: 172.17.245.249- Become primary in the event of a tie: y- HA rsync command replication timeout: 3600- Create database backup in /var/netscreen/dbbackup- Use rsync program at /usr/bin/rsync- Path for the ssh command: /usr/bin/ssh- Local database backups are enabled- Start backups at 02- Daily backups will not be sent to a remote machine- Number of database backups to keep: 7- HA rsync command backup timeout: 3600- Postgres DevSvr Db Server port: 5432- Postgres DevSvr Db super user: nsm- Postgres DevSvr Db password set for 'nsm'- Start High Availability daemon processes when finished: YesAre the above actions correct? (y/n)> y########## PERFORMING INSTALLATION TASKS ##########----- INSTALLING Device Server -----Looking for existing RPM package............................okRemoving existing Device Server RPM.........................okInstalling Device Server RPM................................okInstalling JRE..............................................okInstalling GCC..............................................okCreating var directory......................................okCreating /var/netscreen/dbbackup............................okPutting NSROOT into start scripts...........................okFilling in Device Server config file(s).....................okSetting permissions for Device Server.......................ok----- Setting up PostgreSQL for DevSvr -----Setting up PostgreSQL for DevSvr............................ok Installation of Device Server complete.----- INSTALLING GUI Server -----Looking for existing RPM package............................ok Removing existing GUI Server RPM............................okInstalling GUI Server RPM...................................okInstalling JRE..............................................okInstalling GCC..............................................okCreating var directory......................................okPutting NSROOT into start scripts...........................okFilling in GUI Server config file(s)........................okSetting permissions for GUI Server..........................okRunning generateMPK utility.................................okRunning fingerprintMPK utility..............................okInstallation of GUI Server complete.----- INSTALLING HA Server -----Looking for existing RPM package............................ok Removing existing HA Server RPM.............................okInstalling HA Server RPM....................................okCreating var directory......................................okPutting NSROOT into start scripts...........................okFilling in HA Server config file(s).........................okSetting permissions for HA Server...........................ok Installation of HA Server complete.----- SETTING START SCRIPTS -----Disabling Device Server start script........................okDisabling GUI Server start script...........................okEnabling HA Server start script.............................ok########## PERFORMING POST-INSTALLATION TASKS ########## Running nacnCertGeneration..................................okRunning idpCertGeneration...................................okConverting GuiSvr SetDB to XDB .............................okLoading GuiSvr XDB data from init files ....................okRunning webproxy Cert Generation............................okRemoving staging directory..................................okStarting HA Server..........................................okNOTES:- Installation log is stored in/usr/netscreen/DevSvr/var/errorLog/netmgtInstallLog.20150512142603 - Please note that TCP port 7808 is being used for server-UI communication- This is the GUI Server fingerprint:A9:4A:60:76:34:F0:9A:E6:2E:0B:98:FF:B6:C0:8B:7E:4C:2D:47:8AYou will need this for verification purposes when logging into the GUI Server. Please make a note of it.(5)检查版本信息(6)检查设备服务状态3、Backup NSM设备升级(1)升级过程参考Master NSM设备升级步骤注意:如下操作与Master NSM不同########## GENERAL SERVER SETUP DETAILS ##########Will this machine participate in an HA cluster? (y/n) [n]> yIs this machine the primary server for the HA cluster? (y/n) [y]> n WARNING: The servers need to be stopped on the secondary server during the installation of this software to avoid data corruption. (2)检查设备服务状态(3)检查HA状态4、两台NSM建立SSH信任关系 Master:Backup:版本升级完成!二、NSM攻击特征库更新1、上传特征库更新文件所需文件为:NSM-SecurityUpdateInfo.dat NSMFP17-DI-IDP.zip2、用NSM客户端登陆3、设置更新文件路径(1)点击导航栏中的Tools,选中Preferences(2)点击左侧Attack Object,在Download URL ScreenOS Device 文本框中输入更新文件路径,点击OK(注意:两个打钩的选项均不要选)文件路径为:file://tmp/NSM-SecurityUpdateInfo.dat4、更新特征库(1)点击导航栏中的Tools,选中View/Update NSM Attack Database(2)点击Next(3)点击Finish(4)等待更新完成特征库更新完成三、添加MIP地址1、添加Master设备的MIP地址(1)在左侧栏Administer中选中Servers,并双击右侧窗口中的条目双击(2)点击“+”图标添加MIP地址(3)填写MIP地址,点击OK2、选中HA栏,添加Backup设备的MIP地址,步骤同上四、SNMP 配置1、在左侧栏Administer中选中Action Manager中的Action Parameters,并双击右侧窗口中的条目双击2、在SNMP栏中点击“+”,添加SNMP地址3、填写SNMP管理名称、管理地址和Community,点击OK4、log Action Criteria配置(1)在左侧栏Administer中选中Action Manager中的Device Log Action Criteria,点击“+”(2)点击Severity栏,勾选Critical(3)点击Actions栏,勾选Send SNMP Traps,并点击勾选栏下方的编辑图标(4)将SNMP管理地址添加到右边的窗口中,点击OK五、IDP-Policy添加1、创建IDP-Policy (1)右击Policy右击这里(2)添加Policy名称为IDP-Policy,点击下一步(3)选择Stand Alone IDP Device,点击下一步(4)选择Empty Policy,点击下一步(5)点击Finish2、添加IDP Policy(1)点击创建好的IDP Policy,右击条目中的,Attacks,打开Select Attacks右击这里(2)点开Attack Group-IDP Objects,选中All Attacks,添加到右侧窗口中,点击OK(3)右击中间窗口上方的“IDP”标题,选择Security Policies中的Add Exempt Rulebase右击“IDP”(4)点击“+”图标,选择Add Rule(5)右击创建好的条目的Source列,选择Select Address(6)点击“+”图标,添加地址(7)在Name文本框中输入policy 的Source地址名称,在IP Address文本框中输入Source地址注:此次测试中所有的地址Name与IP Address相同(8)将建好的地址添加到右侧的窗口中,点击OK(9)右击条目中的Destination列,选择Select Address(10)点击“+”图标,添加地址(11)在Name文本框中输入policy 的Destination地址名称,在IP Address文本框中输入Destination地址(12)将建好的地址添加到右侧的窗口中,点击OK(13)右击条目中的Attacks列,选择Select Attacks(14)在Attack Group-IDP Objects中找到条目想对应的Attack,并添加到右侧窗口中,点击OK(15)再次创建第二条策略,步骤同上(16)如果Source地址或者Destination地址为一个地址组,则先创建一个地址组,再将地址加入到地址组中(17)如果Source地址或者Destination地址是一个地址段,则选择Add Network,添加一个地址段六、防火墙及IDP设备添加1、在NSM上添加直连防火墙设备(无需MIP)(1)在左侧栏Configure中选中Device Manager中的Devices,点击右侧窗口的“+”图标,选中Cluster(2)填写Cluster名称,并且选择设备的型号、OS名称和版本,点击OK(3)选中创建好的Cluster,点击“+”,选中Cluster Member(4)填写防火墙设备名称,点击Next(5)填写防火墙设备的管理IP地址,登陆时的用户名和密码,点击Next(6)在获得SSH Key后点击Next(7)此处防火墙设备是直连设备,无需MIP地址设置,点击Next(8)点击Next和Finish完成添加。