# FortiOS

FortiOS is Fortinet's real-time network security operating system.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Sniffowanie w FortiOS

DevFeed: [Sniffowanie w FortiOS](<https://devfeed.tech/articles/sniffowanie-w-fortios-27514.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/01/sniffowanie-w-fortios/>)

Author: Tom

Published: 2012-01-23T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [FortiOS](<https://devfeed.tech/topics/fortios.md>), [Fortigate](<https://devfeed.tech/topics/fortigate.md>), [debug](<https://devfeed.tech/topics/debug.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>)

Tags: [debug](<https://devfeed.tech/tags/debug.md>), [diagnose](<https://devfeed.tech/tags/diagnose.md>), [fortigate](<https://devfeed.tech/tags/fortigate.md>), [fortios](<https://devfeed.tech/tags/fortios.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [trace](<https://devfeed.tech/tags/trace.md>)

### AI overview

A Polish technical note documenting FortiOS commands for live traffic sniffing and IPsec tunnel diagnostics on Fortigate devices. It explains flow filters, console output, packet-count limits, and IKE debug commands, noting that IPsec diagnostics cannot be filtered according to the author.

### Source excerpt

Zawsze gdy potrzebuję zesniffować coś na żywo na Fortigate'ach muszę przeszukać Knowledge Base external link by przypomnieć sobie wszystkie polecenia do tego potrzebne. Tym razem robię notatki 😃 Sniffowanie diagnose debug enable diagnose debug flow filter addr ip address clear clear filter daddr dest ip address dport destination port negate inverse filter port port proto protocol number saddr source ip address sport source port vd index of virtual domain # np. diagnose debug flow filter saddr 10.10.80.3 diagnose debug flow filter daddr 8.8.8.8 diagnose debug flow filter dport 53 # wyświetl wyniki na konsoli diagnose debug flow show console enable # opcjonalne: wyświetla nazwy funkcji np. odwołania do routingu, itp diagnose debug flow show function-name enable # uruchomienie sniffowania - warto podać na końcu jakaś wartość # by sniffowanie zakończyło się po takiej liczbie pakietów # w przeciwnym wypadku wyniki będą się wypisywać na konsoli # aż uda nam się na oślep wyłączyć sniffowanie diagnose debug flow trace start 100 # zresetowanie filtrowania flow diagnose debug reset # wyłączenie sniffowania diagnose debug disable Diagnostyka tuneli IP-Sec # tutaj jest dużo prościej, najpierw włączamy debuga diagnose debug enable # a potem diagnose debug application ike 2 # lub dla bardzo, bardzo szczegółowych logów diagnose debug application ike -1 Niestety nie ma tutaj możliwości filtrowania (albo jeszcze o tym nie wiem), więc jeśli mamy dużo aktywnych tuneli to najlepiej zbierać wypisywane komunikaty do pliku i dopiero przeglądać.