Fortiweb 4.0 MR4 CLI Reference, 1St Edition
Total Page:16
File Type:pdf, Size:1020Kb
CLI Reference for FortiWeb™ 4.0 MR4 Courtney Schwartz Contributors: George Csaba Martijn Duijm Patricia Siertsema Idan Soen Shiji Li Hao Xu Shiqiang Xu Forrest Zhang Contents Introduction ............................................................................................24 Scope ............................................................................................................................. 24 Conventions .................................................................................................................. 25 IP addresses............................................................................................................. 25 Cautions, notes, & tips.............................................................................................. 25 Typographic conventions.......................................................................................... 25 Command syntax...................................................................................................... 26 What’s new .............................................................................................28 Documentation changes .............................................................................................. 32 Using the CLI ..........................................................................................34 Connecting to the CLI................................................................................................... 34 Connecting to the CLI using a local console............................................................. 35 Enabling access to the CLI through the network (SSH or Telnet or CLI Console widget) .................................................................... 36 Connecting to the CLI using SSH............................................................................. 37 Connecting to the CLI using Telnet .......................................................................... 38 Command syntax .......................................................................................................... 39 Terminology.............................................................................................................. 39 Indentation................................................................................................................ 41 Notation .................................................................................................................... 41 Subcommands .............................................................................................................. 44 Table commands ...................................................................................................... 45 Example of table commands.............................................................................. 46 Field commands ....................................................................................................... 46 Example of field commands ............................................................................... 47 Permissions................................................................................................................... 47 CLI Reference for FortiWeb 4.0 MR4 2 http://docs.fortinet.com/ • Document feedback Tips & tricks................................................................................................................... 50 Help .......................................................................................................................... 50 Shortcuts and key commands .................................................................................. 50 Command abbreviation............................................................................................. 51 Environment variables .............................................................................................. 51 Special characters .................................................................................................... 52 Language support & regular expressions................................................................. 53 Screen paging........................................................................................................... 55 Baud rate .................................................................................................................. 56 Editing the configuration file on an external host...................................................... 56 config ......................................................................................................58 log alertemail ................................................................................................................. 60 Syntax....................................................................................................................... 60 Example.................................................................................................................... 60 Related topics........................................................................................................... 61 log attack-log................................................................................................................. 62 Syntax....................................................................................................................... 62 Example.................................................................................................................... 63 Related topics........................................................................................................... 63 log custom-sensitive-rule............................................................................................. 64 Syntax....................................................................................................................... 64 Example.................................................................................................................... 66 Related topics........................................................................................................... 66 log disk........................................................................................................................... 67 Syntax....................................................................................................................... 67 Example.................................................................................................................... 68 Related topics........................................................................................................... 68 log email-policy ............................................................................................................. 70 Syntax....................................................................................................................... 70 Example.................................................................................................................... 72 Related topics........................................................................................................... 73 log event-log.................................................................................................................. 74 Syntax....................................................................................................................... 74 Example.................................................................................................................... 75 Related topics........................................................................................................... 75 log forti-analyzer ........................................................................................................... 76 Syntax....................................................................................................................... 76 Example.................................................................................................................... 77 Related topics........................................................................................................... 77 3 CLI Reference for FortiWeb 4.0 MR4 http://docs.fortinet.com/ • Document feedback log fortianalyzer-policy................................................................................................. 78 Syntax....................................................................................................................... 78 Example.................................................................................................................... 78 Related topics........................................................................................................... 79 log memory.................................................................................................................... 80 Syntax....................................................................................................................... 80 Example.................................................................................................................... 81 Related topics........................................................................................................... 81 log reports ..................................................................................................................... 82 Syntax....................................................................................................................... 82 Example...................................................................................................................