Fortigate CLI __ Comandos Útiles I

May 27, 2016 | Author: Fernando Raza Céspedes | Category: Types, Instruction manuals
Share Embed Donate


Short Description

Comandos utiles para usar en cli de Fortigate...

Description

4/7/2015

Fortigate CLI :: Comandos útiles I

 (http://stackfire.com)

Stackfire » (http://stackfire.com) Productos & Servicios (http://stackfire.com/portfolio/) Cloud Services » Blog (http://stackfire.com/blog/) Cursos » (http://www.stackfire.com) Contacto (http://stackfire.com/contacto/)

Blog

Fortigate CLI :: Comandos útiles I (http://stackfire.com/fortigate­cli­ comandos­utiles­i/) By soporte (http://stackfire.com/author/soporte/) octubre 16, 2014 0 comments (http://stackfire.com/fortigate­cli­comandos­utiles­i/#respond) Fortinet (http://stackfire.com/category/fortinet/), Seguridad Informática (http://stackfire.com/category/seguridad­informatica/) Seguramente todos conocemos el enlace a la documentación técnica de Fortinet: http://docs.fortinet.com, pero no solo podemos encontrar información técnica en este sitio web, existen videos, recursos HTML, etc. que nos pueden servir de ayuda y que comentaremos en este artículo. Esta serie de publicaciones tiene el objetivo de incrementar la información de la terminal de comandos del appliance llamada Fortinet CLI. Los siguientes es la primer entrega de un listado de comandos generales de gran ayuda para todos los administradores de sistemas. Mostrar la configuración general del appliance y estado de los módulos:

myfirewall1 # get sys status Version: Fortigate-50B v4.0,build0535,120511 (MR3 Patch 7) Virus-DB: 14.00000(2011-08-24 17:17) Extended DB: 14.00000(2011-08-24 17:09) IPS-DB: 3.00150(2012-02-15 23:15) FortiClient application signature package: 1.529(2012-10-09 10:00) Serial-Number: FGT50B1234567890 BIOS version: 04000010 Log hard disk: Not available Hostname: myfirewall1 Operation Mode: NAT Current virtual domain: root Max number of virtual domains: 10 Virtual domains status: 1 in NAT mode, 0 in TP mode Virtual domain configuration: disable FIPS-CC mode: disable Current HA mode: standalone Distribution: International Branch point: 234 Release Version Information: MR3 Patch 7 System time: Thu Nov 15 13:12:30 2012 Mostrar las estadísticas del tráfico hasta el momento:

myfirewall1 # get system performance firewall statistics getting traffic statistics... Browsing: 544083 packets, 80679942 bytes DNS: 19333 packets, 2400831 bytes E-Mail: 52 packets, 3132 bytes FTP: 0 packets, 0 bytes Gaming: 0 packets, 0 bytes IM: 0 packets, 0 bytes Newsgroups: 0 packets, 0 bytes P2P: 0 packets, 0 bytes Streaming: 0 packets, 0 bytes TFTP: 0 packets, 0 bytes VoIP: 0 packets, 0 bytes Generic TCP: 13460 packets, 1301879 bytes Generic UDP: 7056 packets, 647156 bytes Generic ICMP: 172 packets, 11804 bytes Generic IP: 26 packets, 832 bytes Mostrar el estado del CPU y tiempo prendido:

1 2 3 4 5 6 7 8 9 10

myfirewall1 # get system performance status CPU states: 0% user 0% system 0% nice 100% idle CPU0 states: 0% user 0% system 0% nice 100% idle Memory states: 48% used Average network usage: 1 kbps in 1 minute, 0 kbps in 10 minutes, 0 kbps in 30 minutes Average sessions: 0 sessions in 1 minute, 0 sessions in 10 minutes, 0 sessions in 30 minutes Average session setup rate: 0 sessions per second in last 1 minute, 0 sessions per second in last 10 minutes, 0 sessions per second in last 30 minutes Virus caught: 0 total in 1 minute IPS attacks blocked: 0 total in 1 minute Uptime: 24 days, 11 hours, 25 minutes

Mostrar el uso del CPU ordenado por los procesos de mayor peso:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

myfirewall1 # get system performance top Run Time: 24 days, 11 hours and 26 minutes 0U, 0S, 100I; 249T, 119F, 60KF initXXXXXXXXXXX 1 S 0.0 4.5 cmdbsvr 23 S 0.0 6.8 zebos_launcher 27 S 0.0 4.7 uploadd 28 S 0.0 4.6 miglogd 29 S 0.0 5.9 miglogd 30 S 0.0 4.6 httpsd 31 S 0.0 7.0 nsm 32 S 0.0 1.1 ripd 33 S 0.0 0.9 ripngd 34 S 0.0 0.9 ospfd 35 S 0.0 0.9 proxyd 36 S 0.0 4.6 wad_diskd 37 S 0.0 4.6 scanunitd 38 S < 0.0 4.9 ospf6d 39 S 0.0 0.9 bgpd 40 S 0.0 1.0 isisd 41 S 0.0 0.9 proxyacceptor 42 S 0.0 0.7 proxyworker 43 S 0.0 1.8 getty 44 S < 0.0 4.6

Mostrar el estado del módulo de High Availability:

1 2 3 4 5 6 7 8 9 10

myfirewall1 # get sys ha status Model: 311 Mode: a-p Group: 0 Debug: 0 ses_pickup: enable Master:254 myfirewall1 FG311B1111111111 0 Slave :128 myfirewall2 FG311B1111111112 1 number of vcluster: 1 vcluster 1: work 10.0.0.1

http://stackfire.com/fortigate­cli­comandos­utiles­i/

1/3

4/7/2015

Fortigate CLI :: Comandos útiles I

10 vcluster 1: work 10.0.0.1 11 Master:0 FG311B1111111111 12 Slave :1 FG311B1111111112 Verificar la tabla de sesiones del Firewall:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

myfirewall1 # diag sys session full-stat session table: table_size=65536 max_depth=1 used=2 expect session table: table_size=1024 max_depth=0 used=0 misc info: session_count=1 setup_rate=0 exp_count=0 clash=0 memory_tension_drop=0 ephemeral=0/16368 removeable=0 ha_scan=0 delete=0, flush=0, dev_down=0/0 TCP sessions: 1 in ESTABLISHED state firewall error stat: error1=00000000 error2=00000000 error3=00000000 error4=00000000 tt=00000000 cont=00000000 ids_recv=00000000 url_recv=00000000 av_recv=00000000 fqdn_count=00000000 tcp reset stat: syncqf=0 acceptqf=0 no-listener=11025 data=0 ses=0 ips=0

La siguiente lista tiene una sola sesión, que puede ser una solicitud de DNS de 192.168.227.97 a .the servidor dns 65.39.139.53:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

myfirewall # diag sys session list session info: proto=17 proto_state=01 duration=2214 expire=123 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=3 origin-shaper= reply-shaper= per_ip_shaper= ha_id=0 hakey=28310 policy_dir=0 tunnel=/ state=local statistic(bytes/packets/allow_err): org=5095/76/1 reply=8757/75/1 tuples=2 orgin->sink: org out->post, reply pre->in dev=10->12/12->10 gwy=0.0.0.0/192.168.227.97 hook=out dir=org act=noop 192.168.227.97:54223->65.39.139.53:53(0.0.0.0:0) hook=in dir=reply act=noop 65.39.139.53:53->192.168.227.97:54223(0.0.0.0:0) misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0 serial=0047c5b4 tos=ff/ff imp2p=0 app=0 dd_type=0 dd_rule_id=0 total session 7

Aunque es de mucho mayor utilidad si se utiliza un filtro para buscar una sesión en particular:

1 myfirewall1 # diagnose sys session filter src 192.168.227.129 2 myfirewall1 # diag sys session list Documentos añadidos o actualizados recientemente  Estos son los documentos que se han incorporado o añadido en el WebSite de documentación (http://docs.fortinet.com (http://docs.fortinet.com/)): FortiGate/FortiOS  What’s New for FortiOS 5.2 (http://docs.fortinet.com/uploaded/files/1912/fortigate­whats­new­52patch1.pdf) (Actualizado) FortiOS 5.2.1 Maximum Values Tables (http://docs­legacy.fortinet.com/fgt/handbook/52/5­2­1/max­values/max­values.html) (Actualizado)FortiAnalyzer FortiAnalyzer 3900E QuickStart Guide (http://docs.fortinet.com/uploaded/files/2130/FortiAnalyzer­3900E­QuickStart%20­%20Online.pdf) (Nuevo) FortiAnalyzer 3500E QuickStart Guide (http://docs.fortinet.com/uploaded/files/2129/FortiAnalyzer­3500E­QuickStart%20­%20online.pdf) (Nuevo) FortiAnalyzer 5.0.8 Datasets (http://docs.fortinet.com/uploaded/files/2126/FortiAnalyzer_Dataset_Dictionary.pdf) (Nuevo) FortiAnalyzer 5.2.0 CLI Reference (http://docs.fortinet.com/uploaded/files/2090/fortianalyzer­cli­520.pdf) (Actualizado) FortiAnalyzer 5.0.6 CLI Reference (http://docs.fortinet.com/uploaded/files/1772/FortiAnalzyer­506­CLI­Reference.pdf) (Actualizado)FortiManager FortiManager 5.2.0 Administration Guide (http://docs.fortinet.com/d/fortimanager­5.2.0­administration­guide) (Nuevo) FortiManager 5.2.0 CLI Reference (http://docs.fortinet.com/uploaded/files/2089/fortimanager­cli­520.pdf) (Actualizado) VM Install Guide for VMware (http://docs.fortinet.com/uploaded/files/1128/FortiManager­VM­VMware­Install­Guide.pdf) (Nuevo) FortiManager 5.0.7 CLI Reference (http://docs.fortinet.com/uploaded/files/2000/fortimanager­cli­507.pdf) (Actualizado) FortiManager 5.0.6 CLI Reference (http://docs.fortinet.com/uploaded/files/1771/FortiManager­506­CLI­Reference.pdf) (Actualizado)FortiClient FortiClient (Windows) 5.2.1 Administration Guide (http://docs.fortinet.com/uploaded/files/1975/forticlient­admin­52.pdf) (Nuevo) FortiClient (Mac OS X) 5.2.1 Administration Guide (http://docs.fortinet.com/uploaded/files/1976/forticlient­admin­52.pdf) (Nuevo) FortiClient (Android) 5.2.3 User Guide (http://docs.fortinet.com/uploaded/files/1961/forticlient­android­user­guide­v52.pdf) (Actualizado) FortiClient VPN (Android) 5.2.3 User Guide (http://docs.fortinet.com/d/forticlient­vpn­android­5.2­user­guide) (Actualizado) FortiMail What’s New for FortiMail 5.2.0 (http://docs.fortinet.com/uploaded/files/2105/fortimail­whatsnew­520.pdf) (Nuevo) FortiMail 5.2.0 Administration Guide (http://docs.fortinet.com/uploaded/files/2093/fortimail­admin­520.pdf) (Actualizado) FortiWeb FortiWeb­VM 5.3 Install Guide (http://docs.fortinet.com/uploaded/files/1973/FortiWeb­VM_5_3_Install_Guide_Revision2.pdf) (Actualizado) FortiWeb 5.3 Administration Guide (HTML) (http://docs­legacy.fortinet.com/fweb/admin_hlp/5­3­0/index.html) (Actualizado) FortiWeb 5.3 Administration Guide (PDF) (http://docs.fortinet.com/uploaded/files/2108/FortiWeb_5_3_Administration_Guide_Revision1.pdf) (Nuevo) FortiWeb 5.3 Log Reference (PDF) (http://docs.fortinet.com/uploaded/files/2125/FortiWeb_5_3_Log_Reference_Revision1.pdf) (Actualizado) FortiWeb 5.3 CLI Reference (HTML) (http://docs­legacy.fortinet.com/fweb/5­2­0/cli/index.html) (Actualizado) FortiController FortiController Session­Aware Load Balancing Guide (http://docs.fortinet.com/uploaded/files/2039/forticontroller­session­aware­load­balancing­50.pdf) (Actualizado) FortiConverter FortiConverter 4.5 User Guide (http://docs.fortinet.com/uploaded/files/2127/FortiConverter_4_5_0_User_Guide_Revision1.pdf) FortiADC FortiADC E Series Help (http://docs­legacy.fortinet.com/fadc/4­0­4/html­e/Index.htm) (Actualizado) FortiADC E Series Handbook (http://docs.fortinet.com/d/fortiadc­e­series­fortiadc­handbook­for­e­series­models­3) (Actualizado) FortiDDoS FortiDDoS 4.1 Patch 2 Handbook (http://docs.fortinet.com/uploaded/files/2071/FortiDDoS_4_1_Patch_2_Handbook_Revision1.pdf) (Nuevo) FortiSandbox FortiSandbox 1.4 Administration Guide (http://docs.fortinet.com/uploaded/files/2077/fortisandbox­admin­v1.4.pdf) (Actualizado) FortiSandbox VMware Install Guide (http://docs.fortinet.com/uploaded/files/2107/fortisandbox­vm­vmware­install­guide.pdf) (Nuevo) Para mayor información consulta el manual de referencia de Fortinet  http://docs­legacy.fortinet.com/fweb/5­2­0/cli/index.html#page/FortiWeb%2520CLI%2520Reference/introduction.html (%20http://docs­legacy.fortinet.com/fweb/5­2­0/cli/index.html#page/FortiWeb%2520CLI%2520Reference/introduction.html)    

Leave a Reply Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados * Name

*

Email

*

URL Message

Puedes usar las siguientes etiquetas y atributos HTML (HyperText Markup Language):                

Submit  Recibir un email con los siguientes comentarios a esta entrada.  Recibir un email con cada nueva entrada.   Search  

  Search

Publicaciones marzo 2015 (http://stackfire.com/2015/03/) (1) noviembre 2014 (http://stackfire.com/2014/11/) (2) octubre 2014 (http://stackfire.com/2014/10/) (2) septiembre 2014 (http://stackfire.com/2014/09/) (2)

http://stackfire.com/fortigate­cli­comandos­utiles­i/

2/3

4/7/2015

Fortigate CLI :: Comandos útiles I

septiembre 2014 (http://stackfire.com/2014/09/) (2) agosto 2014 (http://stackfire.com/2014/08/) (1)  

Categorías Apple (http://stackfire.com/category/apple/) Blog (http://stackfire.com/category/blog/) Desarrollo (http://stackfire.com/category/desarrollo/) Fortinet (http://stackfire.com/category/fortinet/) Microsoft (http://stackfire.com/category/microsoft/) Seguridad Informática (http://stackfire.com/category/seguridad­informatica/) Uncategorized (http://stackfire.com/category/uncategorized/)  

Stackfire … 611 Me gusta

Me gusta esta página

Sé el primero de tus amigos en indicar que te gusta esto.

       

Rio Amur #30, Col. Cuauhtémoc CP. 01209, México D.F. +52 1209­1804 – Ventas Ext. 101 – Soporte Ext. 102 – Corporativos Ext. 103 [email protected]

Copyright © 2015 Stackfire. All Rights Reserved.     Powered by Stackfire (http://www.stackfire.com)

http://stackfire.com/fortigate­cli­comandos­utiles­i/

3/3

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF