apps gtp-whitelist
Use the apps gtp-whitelist command to configure GTP whitelisting.
Note: The apps gtp-whitelist commands are not persistent across a node restart, nor do they appear in the output of the running configuration.
The apps gtp-whitelist command has the following syntax:
apps gtp-whitelist alias <GTP whitelist file alias> add
imsi <IMSI number > |
create
delete
imsi <IMSI number> |
destroy
fetch <add | delete> <URL for a GTP whitelist file>
The following table describes the arguments for the apps gtp-whitelist command:
Argument |
Description |
|||||||||||||||||||||||||||
gtp-whitelist alias <GTP whitelist file alias> |
Specifies an alias of the whitelist file. Examples of valid names are wlist, imsi-database_2. |
|||||||||||||||||||||||||||
add imsi <IMSI number| |
Specifies actions for add as follows:
For example: (config) # apps gtp-whitelist alias wlf1 add imsi 318260109318283 (config) # apps gtp-whitelist alias ran_db add ran 210.32.345678912 apps gtp-whitelist alias ran_db add ran 755.56.0xf12345678
|
|||||||||||||||||||||||||||
create |
Creates a new whitelist. For example: (config) # apps gtp-whitelist alias wlf1 create To create a whitelist, refer to How to Create a Whitelist. |
|||||||||||||||||||||||||||
delete <all | imsi <IMSI number> | |
Specifies actions for delete as follows:
When using delete all to delete a whitelist, unlike destroy, you do not have to delete the whitelist maps, the GigaSMART operation, or disassociate the GigaSMART group from the whitelist.
Examples: (config) # apps gtp-whitelist alias wlf1 delete imsi 318260109318283 (config) # apps gtp-whitelist alias wlf1 delete all |
|||||||||||||||||||||||||||
destroy |
Destroys a whitelist. For example: (config) # apps gtp-whitelist alias wlf1 destroy When using destroy to delete a whitelist, unlike delete all, you must first delete the whitelist maps, the GigaSMART operation, and disassociate the GigaSMART group from the whitelist before deleting the whitelist. For the procedure to destroy the whitelist, refer to How to Delete a Whitelist. |
|||||||||||||||||||||||||||
fetch <add | delete> <URL for a GTP whitelist file> |
Specifies actions for fetch as follows:
For both add and delete, whitelist files must adhere to the following:
To fetch a specified whitelist file from a location, use one of the following formats:
For GTP whitelisting in a cluster, only fetch the whitelist to the master node in the cluster. On non-master nodes, fetch is not available. Examples: (config) # apps gtp-whitelist alias wlf1 fetch add http://1.1.1.1/tftp/temp/MyIMSIs1.txt (config) # apps gtp-whitelist alias wlf1 fetch delete http://1.1.1.1/tftp/temp/MyIMSIstoDelete.txt Note:
|
How to Create a Whitelist
To create a whitelist, use the following CLI command sequence:
Task |
Command |
Create the whitelist. |
(config) # apps gtp-whitelist alias wlf1 create |
Associate the GigaSMART group to the whitelist. |
(config) # gsparams gsgroup gsg1 gtp-whitelist add wlf1 |
Configure the GigaSMART operation. |
(config) # gsop alias gtp_wl1 flow-ops gtp-whitelist lb app gtp metric hashing key imsi port-list gsg1 |
Add single entry to the whitelist. |
(config) # apps gtp-whitelist alias wlf1 add imsi 318260109318283 |
Create from one to ten second level maps, the whitelist maps. When the map configuration is complete, the whitelist will take effect. Note: If no whitelist add rule is specified in the map, all traffic (all interfaces and all versions) will be passed. |
(config) # map alias GTP-Whitelist |
How to Delete a Whitelist
To destroy the entire whitelist, use the following CLI command sequence:
Task |
Command |
Delete a whitelist map. |
(config) # no map alias GTP-Whitelist |
Delete the GigaSMART operation. |
(config) # no gsop alias gtp_wl1 |
Disassociate the GigaSMART group from the whitelist. (You do not need to delete the gsgroup.) |
(config) # gsparams gsgroup gsg1 gtp-whitelist delete |
Destroy () the entire whitelist. |
(config) # apps gtp-whitelist alias wlf1 destroy |
Related Commands
The following table summarizes other commands related to the apps gtp-whitelist command:
Task |
Command |
Configures a rule for a whitelist map. |
# map alias <whitelist map> whitelist add gtp <interface | version> |
Displays a particular IMSI associated with the GigaSMART group. |
# show gsgroup flow-whitelist alias gsg1 imsi 318260109318283 |
Displays the GTP whitelist entry count. |
# show apps gtp-whitelist alias wlf1 count |
For whitelist maps, displays the total number of IMSI entries (under WL). |
# show map brief |
For whitelist maps, displays the total number of IMSI entries. |
# show map alias <whitelist map> |
For whitelist maps, displays the total number of IMSI entries. |
# show map stats alias <whitelist map> |