Use the CLI commands in this procedure to add a port to a whitelist. You enter each port separately. You can add up to 256 port whitelist entries.
Important
After you add a port to a whitelist, use the
policymgr refresh-policycommand in the CLI configuration mode to refresh the policy configuration.Make sure the port whitelist is enabled after you have added the ports to the whitelist. For details about how to enable a port whitelist, Enabling or Disabling a Port Whitelist Using the CLI on page 1.
Go to CLI configuration mode.
hostname > enable hostname # configure terminalSpecify the port to add to a whitelist.
hostname (config) # policymgr whitelist port <port_number>Repeat the previous step for each port you want to add.
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 add three ports to a whitelist.
hostname (config) # policymgr whitelist port 443
hostname (config) # policymgr refresh-policy
hostname (config) # policymgr whitelist port 8080
hostname (config) # policymgr refresh-policy
hostname (config) # policymgr whitelist port 9000
hostname (config) # policymgr refresh-policy
hostname (config) # show policymgr whitelist port
Port Based whitelist enabled: yes
Port Whitelist Entries: 3 / 256
Subnetf port whitelist detail:
port 1: 443
port 2: 8080
port 3: 9000