old-www/LDP/nag2/x-087-2-accounting.flushing...

225 lines
3.2 KiB
HTML

<HTML
><HEAD
><TITLE
>Flushing the Ruleset</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="IP Accounting"
HREF="x-087-2-accounting.html"><LINK
REL="PREVIOUS"
TITLE="Resetting the Counters"
HREF="x-087-2-accounting.zeroing.counter.html"><LINK
REL="NEXT"
TITLE="Passive Collection of Accounting Data"
HREF="x-087-2-accounting.passive.collection.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x-087-2-accounting.zeroing.counter.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 10. IP Accounting</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x-087-2-accounting.passive.collection.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="X-087-2-ACCOUNTING.FLUSHING.RULES"
>10.5. Flushing the Ruleset</A
></H1
><P
>&#13;One last command that might be useful allows you to flush all the IP
accounting rules you have configured. This is most useful when you want to
radically alter your ruleset without rebooting the machine.</P
><P
>The <TT
CLASS="LITERAL"
>-f</TT
> argument in combination with the
<B
CLASS="COMMAND"
>ipfwadm</B
> command will flush all of the rules of the type
you specify. <B
CLASS="COMMAND"
>ipchains</B
> supports the <TT
CLASS="LITERAL"
>-F</TT
>
argument, which does the same:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># <TT
CLASS="USERINPUT"
><B
>ipfwadm -A -f</B
></TT
></PRE
></TD
></TR
></TABLE
>
or:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># <TT
CLASS="USERINPUT"
><B
>ipchains -F</B
></TT
></PRE
></TD
></TR
></TABLE
>
or:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># <TT
CLASS="USERINPUT"
><B
>iptables -F</B
></TT
></PRE
></TD
></TR
></TABLE
>
This flushes all of your configured IP accounting rules, removing them all
and saving you having to remove each of them individually. Note that flushing
the rules with <B
CLASS="COMMAND"
>ipchains</B
> does not cause any user-defined
chains to be removed, only the rules within them.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x-087-2-accounting.zeroing.counter.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x-087-2-accounting.passive.collection.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Resetting the Counters</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-accounting.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Passive Collection of Accounting Data</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>