7.5. Editing Firewall Rule Sets

7.5.1. Adding and Removing Rules

Figure 7.37. Modifying Policy Rules

Modifying Policy Rules

Rules can be added, removed, or moved around in the rule set using the Rules menu or the context menu shown in Figure 7.37. To open the context menu, right-click the rule number in the (the first column of the rule).

Using these functions, you can add new rules above or below the currently selected rule in the policy, remove rules, move the current rule up or down, or use standard copy and paste operations on policy rules. Functions are appied to all selected rules.

The following rule-related functions are available in the Rules menu and the associated right-click context menu:

  • New Group

    Groups contiguous rules together for easier handling. A group of rules can be collapsed in the display so that only the group name appears. This can make it easier to work with rule sets that have many rules. The New Group command opens a dialog that lets you create and name the new group. The currently selected rule is automatically added to the group. Section 7.5.7 provides information on working with rule groups.

  • Add to the group

    This context menu selection appears only if you right-click a rule directly above or below an existing group. If selected, the current rule is added to the indicated group. Section 7.5.7 provides information on working with rule groups.

  • Remove from the group

    The context menu selection appears only if you right-click a rule that is currently in a group. This selection removes the rule from the group. If you remove a rule from the middle of a group, the group splits into two groups, one above and one below the selected rule. Both groups have the same name as the original group. Section 7.5.7 provides information on working with rule groups.

  • Change Color

    This menu item allows you to assign a color to the rule background. Assigning colors is a good way to group rules visually according to function.

  • Insert Rule

    Inserts new rule above the current one.

  • Add Rule Below

    Inserts a new rule below the current one.

  • Remove Rule

    Removes the selected rule from the rule set.

  • Move Rule Up

    Moves the selected rule up by one position. The keyboard shortcut is "Ctrl-PgUp" on Linux and Windows or "Cmd-PgUp" on Macintosh. If you select several consecutive rules and use this menu item, all selected rules move together.

  • Move Rule Down

    Moves current rule down by one position. Keyboard shortcut is "Ctrl-PgDown" on Linux and Windows or "Cmd-PgDown" on Macintosh. If you select several consecutive rules and use this menu item, all selected rules move together.

  • Copy Rule

    Copies the current rule to the clipboard.

  • Cut Rule

    Copies current rule to the clipboard and removes it from the rule set.

  • Paste Rule Above

    Inserts the rule from the clipboard above the current one.

  • Paste Rule Below

    Inserts the rule from the clipboard below the current one.

  • Disable Rule

    Marks the rule as disabled; this makes the policy compiler ignore it.

  • Compile rule

    This menu item compiles the selected rule and shows the result in the editor panel at the bottom of the main window.

 

Copyright © 2000-2012 NetCitadel, Inc. All rights reserved.
 Using free CSS Templates.