System Servicesfirewallguipolicycompileriptablespfipfiltercisco

Firewall Builder

Firewall Builder is a GUI-based firewall administration tool that uses an object-oriented approach to manage firewall policies across multiple platforms. It compiles abstract policy rules into platform-specific configurations using dedicated policy compilers.

Description

Firewall Builder consists of an object-oriented GUI and a set of policy compilers for various firewall platforms including iptables, ipfilter, PF, ipfw, Cisco PIX, and IOS ACL. Firewall policy is defined as a set of rules using abstract objects that represent real network objects and services such as hosts, routers, firewalls, networks, and protocols. The tool helps users maintain a database of objects and enables policy editing through simple drag-and-drop operations.

Use cases include managing complex firewall configurations across heterogeneous environments, automating policy compilation for batch processing of multiple firewall objects, and generating platform-specific scripts from a unified policy model. The GUI generates XML files describing firewalls, which are then processed by compilers to produce native configuration code. This separation ensures a consistent abstract model applicable to different firewall platforms.

The suite includes the main fwbuilder GUI, command-line compilers like fwb_ipt and fwb_pf, batch compilation tools like fwb_compile_all, and utilities such as fwbedit for object tree management. It supports automated network object discovery and bulk import, making it suitable for enterprise network security administration.

How It Works

Firewall Builder operates using an object-oriented model where policies are defined as rules composed of abstract objects (hosts, networks, services, protocols) stored in an XML data file. The GUI (fwbuilder) enables drag-and-drop policy editing and object management, generating XML firewall descriptions. Policy compilers (fwb_ipt, fwb_pf, etc.) parse this XML, match rules to the target platform, and generate native configuration scripts (e.g., iptables scripts, PF rules, Cisco ACLs). Batch tools like fwb_compile_all process multiple firewalls by selecting the appropriate compiler based on each object's platform. Object editing is handled by fwbedit for tree manipulation and upgrades.

Installation

bash
sudo apt install fwbuilder

Flags

-f FILESpecify the name of the data file to be processed (fwb_compile_all, fwbuilder, compilers)
-d wdirSpecify working directory for output files (fwb_compile_all, compilers)
-vVerbose mode: print diagnostic messages (fwb_compile_all, fwbuilder, compilers)
-aProcess all firewall objects in the /Firewalls subtree (fwb_compile_all)
-4Generate script for IPv4 part of the policy (fwb_iosacl)
-6Generate script for IPv6 part of the policy (fwb_iosacl)
-rOpen RCS head revision of the file if in RCS (fwbuilder)
-P object_namePrint rules and objects for the firewall object and exit (fwbuilder)

Examples

Compiles policies for multiple firewall objects specified on command line or all in /Firewalls subtree
fwb_compile_all -ffile.xml [-dwdir] [-av] [obj[ obj ...]]
Compiles Cisco IOS ACL policy from XML data file for specified firewall object
fwb_iosacl [-vV] [-d wdir] [-4] [-6] [-i] -f data_file.xml object_name
Compiles iptables policy script for Linux 2.4.x/2.6.x firewalls
fwb_ipt [-x level] [-v] [-V] [-q] [-f filename.xml] [-d destdir] [-D datadir ] [-m] [-4|-6] firewall_object_name
Compiles OpenBSD PF policy for packet filter firewalls
fwb_pf [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-D datadir] [-m] [-4|-6] firewall_object_name
Launches the GUI firewall configuration tool, optionally loading file or printing object rules
fwbuilder [-ffile.fwb] [-d] [-h] [-ofile] [-Pobject_name] [-r] [-v]
Performs object tree operations like new, delete, modify, list, or upgrade data file
fwbedit command [options]
Compiles ipfilter policy for various platforms
fwb_ipf [-x] [-v] [-V] [-f filename.xml] [-o output.fw] [-d destdir] [-m] firewall_object_name
Updated 2026-04-16kali.org ↗