O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Commands

ipfwadm

-A command parameters [options]

ipfwadm

-I command parameters [options]

ipfwadm

-O command parameters [options]

ipfwadm

-F command parameters [options]

ipfwadm

-M [ -l | -s ] [options]

This command is used to set up and maintain IP firewall (both input -I and output -O) and accounting (-A option).

Example: To display your current rule set, use

ipfwadm -l
-A [direction] IP accounting rules. Direction specifies which direction of packet travel the accounting refers to (in, out, or both).
-I IP input firewall rules.
-O IP output firewall rules.
-F IP forwarding firewall rules.
-M IP masquerading administration. Use with -l and -s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required