Using the fbidsmate command-line utility

The fbidsmate utility works from the command line. Although you can execute the commands directly against the Firebox, the tool is used most frequently in the context of an IDS application script. The command syntax is:

fbidsmate firebox_address [rwpassphrase | -f rwpassphrase_file] [add_hostile hostile_address] | [add_log_message priority(0-7) "message"]
fbidsmate import_passphrase rwpassphrase rwpassphrase_filename

add_hostile
    This command adds a site to the Auto-Blocked Site list, with the duration set by the administrator in Policy Manager's Blocked Sites dialog box. It effectively extends your control of the Auto-Block mechanism inside the Firebox.

add_log_message
    This command causes a message to be added to the log stream emitted by the Firebox. Because the priority is used by the Firebox to construct syslog messages, its range is the standard syslog 0=Emergency to 7=Debug. There is no limit on message length; the message is automatically broken into multiple messages if necessary.

import_passphrase
    You can store the Firebox configuration passphrase in encrypted form instead of putting it in clear text in your IDS scripts. This command stores the passphrase in the designated file using 3DES encryption. Rather than using the configuration passphrase, use the file name in your scripts. If you are managing multiple Fireboxes, you need one passphrase file per Firebox.

Return value

The return value of fbidsmate is zero if the command executed successfully; otherwise it is non-zero. This value should be checked upon return if calling fbidsmate from a shell script or through some other interface.

Examples

In the following examples, the IP address of the Firebox is 10.0.0.1 with a configuration passphrase of "secure1".

Example 1
    The IDS detects a port scan from 209.54.94.99 and asks the Firebox to block that site:
    fbidsmate 10.0.0.1 secure1 add_hostile 209.54.94.99
    The 209.54.94.99 site appears on the auto-blocked sites list and remains there for the duration set in Policy Manager. In addition, the following message appears in the log file:
    Temporarily blocking host 209.54.94.99

Example 2
    The IDS adds a message to the Firebox's log stream:
    fbidsmate 10.0.0.1 secure1 add_log_message 3 "IDS system temp. blocked 209.54.94.99"
    With the IDS running on host 10.0.0.2, the following message appears in the Firebox log file:
    msg from 10.0.0.2: IDS system temp. blocked 209.54.94.99

Example 3
    Because you are running your IDS application outside the firewall perimeter, you decide to encrypt the configuration passphrase used in your IDS scripts. Note that even with encryption, you should lock down the IDS host as tightly as possible. First, you must import the passphrase "secure1" to an encrypted file on the IDS host:
    fbidsmate import_passphrase secure1 /etc/fbidsmate.passphrase
    Then you could rewrite the previous examples as:
    fbidsmate 10.0.0.1 -f /etc/fbidsmate.passphrase add_hostile 209.54.94.99
    fbidsmate 10.0.0.1 -f /etc/fbidsmate.passphrase add_log_message 3 "IDS system temp. blocked 209.54.94.99"

Return to Top

Copyright © 1996 - 2004 WatchGuard Technologies, Inc. All rights reserved.
Legal Notice/Terms of Use