logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fgadm - filtergen command program

Author

fgadm was written by Jamie Wilkinson <jaq@spacepants.org> for the filtergen package, to ease  maintenance
       of filtergen-based firewalls.

                                                  June 7, 2004                                          FGADM(8)

Bugs

fgadmsave  does  not work on Debian systems with iptables due to a lack of common sense in the iptables
       package.

Description

fgadm is a simple command interface for managing filtergen(8) based packet filters.

Examples

       One may find the following sequence of commands useful for making firewall changes on live servers:

       # atnow+2min
       warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
       at> fgadmstop
       at> ^D<EOT>
       job 53 at 2004-06-07 17:25
       # fgadmcheck
       # fgadmreload
       # atq
       53
       # atrm53
       # fgadmsave

Files

/etc/filtergen/rules.filter
       Packet filter descriptions are read from this file when fgadm is used.

   /etc/filtergen/fgadm.conf
       This file alters the behaviour of filtergen as called from fgadm.

Name

       fgadm - filtergen command program

See Also

filtergen(8), filter_syntax(5), filter_backends(5)

Synopsis

fgadm [ check | reload | save | stop ]

Usage

fgadm  can  be  used  to  stop  existing filters (thus turning them off), reload new packet filters, save
       currently running filters for longevity, and to check filter scripts for errors before reloading.

       The following commands are accepted by fgadm:

       check  Check the filter script /etc/filtergen/rules.filter for errors.   The  generated  filter  will  be
              printed on standard output, and errors printed to standard error.

       reload Replace  the  current  live packet filter with the one in /etc/filtergen/rules.filter.  The script
              will be tested for errors before reloading.

       save   The current live packet filter will be saved in a distribution-friendly way.  On Red Hat  systems,
              this  will save the iptables or ipchains firewall that is currently loaded into the kernel to load
              at boot with the iptables or ipchains initscript.

       stop   This command will flush the current live packet filter out and put it in a  default  accept  mode,
              thus no firewalling will be in place.  This is useful to abort firewalls in an emergency.

See Also