Using fwprint

Version 6.0.1 November 14, 1998

Introduction

fwprint formats the information contained in the data files that FW-1 produces, and prints it out in a human-readable format.

It contains many command-line options that can be used to print out specific information you may be looking for, or everthing that is contained in those data files, suitable for report generation.

It works in conjunction with a shell script wrapper program, which sends the output to another program that formats and prints it.

Download fwprint-6.0.1.tgz here

Download fwprint-6.0.1.tar here

Download fwprint-6.0.1.bin.tgz here

Background Information

A firewall is a component or set of components that restricts access between a protected network and the Internet, or between other sets of networks. Our firewall contains a specific list of properties that allows communications between authorized parties. All other information communicating with the firewall is dropped, preventing access from unauthorized hosts.

Contained in the Firewall-1 version 3.x data files are all the attributes of a typical firewall rule.

It is important to have an understanding of the type of information a firewall needs before one can make use of the information it provides. A typical packet of information that passes through a firewall has a set of headers containing certain information. The main information is:

Additionally, the firewall machine and firewall software knows things about the packet that aren't reflected in the packet headers, such as:

Available Information

Some of the information fwprint can provide the user with is as follows:

Command Usage

fwprint is the main program that reads the Firewall-1 objects and prints them to the screen. It accepts multiple command-line arguments to tailor the output to the desired information the user is requesting.

This program requires the two files that comprise the actual firewall code. Typically default.W, called the rule-base, and objects.C, called the filter-file should be used.

Typing:

fwprint -h
will show its available arguments that can be used:

fwprint 6.0.1 November 14, 1998
See http://nic.com/~dave/Security/fwprint.html
Usage:
        fwprint [-r|-o|-s|-a|-x|-h] [-v] [-n objname] [-g gwname]
                -j filter-file -f rule-base

        Try using default.W for rule-base and objects.C for filter-file

        -r               Print rules only
        -o               Print objects only
        -s               Print services only
        -n objname       Print information about a specific object
        -a               Print all information available
        -v               Combined with other options, will print more verbosely
        -p               Force printing to screen
        -i [0|1]         Use 0 for source or 1 for destination
        -g gwname        Specify gateway name
        -x               Show a list of usage examples

         NOTE: The -a, -r, -s and -o default to postscript output
         Use -p option to force ASCII printing to stdout

The arguments -a, -r, -o, -s cannot be combined.

The -f and -j arguments must always point to your rule-base file and filter-file FW-1 source files.

The rule-base contains the actual rules you wish to process. This file typically ends in 'W'. Such an example might be default.W

The filter-file contains the objects that define the filter-file. This file typically ends in 'C'. Such an example might be objects.C

The examples shown below will use default.W and objects.C as the rule-base and filter-file.

The options -a, -r, -o, and -s default to printing postscript to the standard output. You should pipe this to a printer, or specify the -p option to print ASCII to standard output instead.

Command Execution