




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
FortiGate 常用配置命令一、命令结构 config Configure object. 对策略,对象等进行配置 get Get dynamic and system information. 查看相关关对象的参数信息 show Show configuration. 查看配置文件 diagnose Diagnose facility. 诊断命令 execute Execute static commands. 常用的工具命令,如 ping exit Exit the CLI. 退出二、常用命令1、配置接口地址 : FortiGate # config system interface FortiGate (interface) # edit lan FortiGate (lan) # set ip 192.168.100.99/24 FortiGate (lan) # end 2、配置静态路由 FortiGate (static) # edit 1 FortiGate (1) # set device wan1 FortiGate (1) # set dst 10.0.0.0 255.0.0.0 FortiGate (1) # set gateway 192.168.57.1 FortiGate (1) # end 3、配置默认路由 FortiGate (1) # set gateway 192.168.57.1 FortiGate (1) # set device wan1 FortiGate (1) # end 4、添加地址 FortiGate # config firewall address FortiGate (address) # edit clientnet new entry clientnet added FortiGate (clientnet) # set subnet 192.168.1.0 255.255.255.0 FortiGate (clientnet) # end5、添加ip池 FortiGate (ippool) # edit nat-pool new entry nat-pool added FortiGate (nat-pool) # set startip 100.100.100.1 FortiGate (nat-pool) # set endip 100.100.100.100 FortiGate (nat-pool) # end 6、添加虚拟ip FortiGate # config firewall vip FortiGate (vip) # edit webserver new entry webserver added FortiGate (webserver) # set extip 202.0.0.167 FortiGate (webserver) # set extintf wan1 FortiGate (webserver) # set mappedip 192.168.0.168 FortiGate (webserver) # end 7、配置上网策略 FortiGate # config firewall policy FortiGate (policy) # edit 1 FortiGate (1)#set srcintf internal /源接口 FortiGate (1)#set dstintf wan1 /目的接口 FortiGate (1)#set srcaddr all /源地址 FortiGate (1)#set dstaddr all /目的地址 FortiGate (1)#set action accept /动作 FortiGate (1)#set schedule always /时间 FortiGate (1)#set service ALL /服务 FortiGate (1)#set logtraffic disable /日志开关 FortiGate (1)#set nat enable /开启natend 8、配置映射策略 FortiGate # config firewall policy FortiGate (policy) #edit 2 FortiGate (2)#set srcintf wan1 /源接口 FortiGate (2)#set dstintf internal /目的接口 FortiGate (2)#set srcaddr all /源地址 FortiGate (2)#set dstaddr FortiGate1 /目的地址,虚拟ip映射,事先添加好的 FortiGate (2)#set action accept /动作 FortiGate (2)#set schedule always /时间 FortiGate (2)#set service ALL /服务 FortiGate (2)#set logtraffic all /日志开关 end 9、把internal交换接口修改为路由口 确保关于internal口的路由、dhcp、防火墙策略都删除 FortiGate # config system global FortiGate (global) # set internal-switch-mode interface FortiGate (global) #end 重启-1、查看主机名,管理端口 FortiGate # show system global 2、查看系统状态信息,当前资源信息 FortiGate # get system performance status3、查看应用流量统计 FortiGate # get system performance firewall statistics 4、查看arp表 FortiGate # get system arp 5、查看arp丰富信息 FortiGate # diagnose ip arp list 6、清楚arp缓存 FortiGate # execute clear system arp table 7、 查看当前会话表 FortiGate # diagnose sys session stat 或 FortiGate # diagnose sys session full-stat; 8、 查看会话列表 FortiGate # diagnose sys session list 9、查看物理接口状态 FortiGate # get system interface physical10、查看默认路由配置 FortiGate # show router static 11、查看路由表中的静态路由 FortiGate # get router info routing-table static 12、查看ospf相关配置 FortiGate # show router ospf13、查看全局路由表FortiGate # get router info routing-table all- 1、查看HA状态 FortiGate # get system ha status 2、查看主备机是否同步FortiGate # diagnose sys ha showcsum- 3.诊断命令: FortiGate # diagnose debug application ike -1 -execute 命令: FortiGate #execute ping 8.8.8.8 /常规ping操作 FortiGate #execute ping-options source 192.168.1.200 /指定ping数据包的源地址 192.168.1.200 FortiGate #execute ping 8.8.8.8 /继续输入ping的目标地址,即可通过192.168.1.200的源地址执行ping操作 FortiGate #execute traceroute 8.8.8.8 FortiGate #ex
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年天津市河东区中考二模物理试题(解析版)
- 小学6年级毕业考试试卷及答案
- 初一期末考试试卷及答案
- 蒸馏法课件教学课件
- 2025年北京高考物理试题+答案
- 2025年高考历史试题分类汇编:中国古代史(先秦-魏晋)选择题解析版
- 2025年辽宁省中式面点师(初级)证考试题库
- 橡胶船物理题目及答案
- 乡村幼师答辩题目及答案
- 2025采购合同样式范文
- 《橇装式加油装置管理规范》征求意见稿
- 2022-2023部编新人教版小学6六年级数学上册(全册)教案
- 三年级数学下册混合脱式计算1300道练习题
- Web前端技术PPT完整全套教学课件
- 柴埠溪大峡谷景区开发项目可行性研究报告书
- 外送检验服务评分表
- 四川大学宣传介绍PPT
- 小学生元宵中秋猜谜语竞赛题目
- 《商业银行资本管理办法》附件13-账簿划分和名词解释
- 燃气轮机离心式压缩机组运行操作手册教学教材
- 2023年重庆市社区工作者考试试题
评论
0/150
提交评论