Use the CLI commands in this procedure to remove a port from a whitelist on the Network Security appliance. You remove each port separately.
Important
After you remove a port from a whitelist, use the
policymgr refresh-policycommand in the CLI configuration mode to refresh the policy configuration.
Prerequisites
Administrator or Operator access to the Network Security appliance
You have added one or more ports to a port whitelist on the Network Security appliance. For details about how to add a port to a port whitelist, Adding ports to a whitelist using the CLI.
Go to CLI configuration mode.
hostname > enable hostname # configure terminalSpecify the port number to remove from a whitelist.
hostname (config) # no policymgr whitelist port <port_number>Repeat the previous step for each port you want to remove.
Save your changes.
hostname (config) # write memoryRefresh the policy configuration.
hostname (config) # policymgr refresh-policyVerify the configuration for a port whitelist.
hostname (config) # show policymgr whitelist port
Example
This example shows how to remove three ports from a whitelist.
hostname (config) # no policymgr whitelist port 443
hostname (config) # policymgr refresh-policy
hostname (config) # no policymgr whitelist port 8080
hostname (config) # policymgr refresh-policy
hostname (config) # no policymgr whitelist port 9000
hostname (config) # policymgr refresh-policy
hostname (config) # show policymgr whitelist port
Port Based whitelist enabled: yes
Port Whitelist Entries: 0 / 256
Subnetf port whitelist detail: