> Source: [sk39789](https://support.checkpoint.com/results/sk/sk39789)

# sk39789 - How do I choose a different Default Filter in FireWall-1?

| Property | Value |
|----------|-------|
| Solution ID | sk39789 |
| Date Created | 2009-04-14 |
| Last Modified | 2018-04-04 |
| Technical Level | General |

## Symptoms

- In FW-1 NG and NGX, several Default Filters are available (located in $FWDIR/lib)

defaultfilter.boot which is installed by default, allows all outgoing as well as incoming communications on ports, which there were previous outgoing communications. ICMP and Broadcast packets are also allowed.

## Solution

To change the Default Filter proceed as follows:

1. Copy over and rename the relevant desired Default Filter INSPECT file (defaultfilter.boot or defaultfilter.drop) to $FWDIR/conf/defaultfilter.pf

nokia\[admin\]# cp $FWDIR/lib/defaultfilter.ipso $FWDIR/conf/defaultfilter.pf

2. Compile the Default Filter by running the command

nokia\[admin\]# **fw defaultgen**

The output will be in $FWDIR/state/default.bin

3. Copy over default.bin to the default filter file path $FWDIR/boot

nokia\[admin\]# cp $FWDIR/state/default.bin $FWDIR/boot

4. If the Security Policy has not yet been installed, run **cpconfig** to regenerate the **Initial Policy** (open and close it).

**Note:** Modifying *$FWDIR/conf/defaultfilter.pf* to have your own defaultfilter is not supported.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
