Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

System Administration Guide: IP Services
Previous Next

Deactivating and Disabling Solaris IP Filter

You might want to deactivate or disable packet filtering and NAT under the following circumstances:

  • For testing purposes

  • To troubleshoot system problems when you think the problems are caused by Solaris IP Filter

The following task map identifies the procedures associated with deactivating or disabling Solaris IP Filter features.

Table 26-2 Deactivating and Disabling Solaris IP Filter (Task Map)

Task

Description

For Instructions

Deactivate packet filtering.

Deactivate packet filtering using the ipf command.

How to Deactivate Packet Filtering

Deactivate NAT.

Deactivate NAT using the ipnat command.

How to Deactivate NAT

Disable packet filtering and NAT.

Disable packet filtering and NAT using the ipf command.

How to Disable Packet Filtering

How to Deactivate Packet Filtering

The following procedure deactivates Solaris IP Filter packet filtering by flushing the packet filtering rules from the active filtering rule set. The procedure does not disable Solaris IP Filter. You can reactivate Solaris IP Filter by adding rules to the rule set.

  1. Assume a role that includes the IP Filter Management rights profile, or become superuser.

    You can assign the IP Filter Management rights profile to a role that you create. To create the role and assign the role to a user, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Use one of the following methods to deactivate Solaris IP Filter rules:
    • Remove the active rule set from the kernel.

      # ipf -Fa

      This command deactivates all packet filtering rules.

    • Remove incoming packet filtering rules.

      # ipf -Fi

      This command deactivates packet filtering rules for incoming packets.

    • Remove outgoing packet filtering rules.

      # ipf -Fo

      This command deactivates packet filtering rules for outgoing packets.

How to Deactivate NAT

The following procedure deactivates Solaris IP Filter NAT rules by flushing the NAT rules from the active NAT rules set. The procedure does not disable Solaris IP Filter. You can reactivate Solaris IP Filter by adding rules to the rule set.

  1. Assume a role that includes the IP Filter Management rights profile, or become superuser.

    You can assign the IP Filter Management rights profile to a role that you create. To create the role and assign the role to a user, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Remove NAT from the kernel.
    # ipnat -FC

    The -C option removes all entries in the current NAT rule listing. The -F option removes all active entries in the current NAT translation table, which shows the currently active NAT mappings.

How to Disable Packet Filtering

When you run this procedure, both packet filtering and NAT are removed from the kernel. If you use this procedure, you must re-enable Solaris IP Filter in order to reactivate packet filtering and NAT. For more information, see How to Re-Enable Solaris IP Filter.

  1. Assume a role that includes the IP Filter Management rights profile, or become superuser.

    You can assign the IP Filter Management rights profile to a role that you create. To create the role and assign the role to a user, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Disable packet filtering and allow all packets to pass into the network.
    # ipf –D

    Note - The ipf -D command flushes the rules from the rule set. When you re-enable filtering, you must add rules to the rule set.


Previous Next

 
 
  Published under the terms fo the Public Documentation License Version 1.01. Design by Interspire