Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Use the APN function to allow or deny access to specific access point names (APNs). By default, the device permits all APNs. To enable APN filtering, you must specify one or more APNs. To specify an APN, you need to know the domain name of the network (for example, and, the operator ID. Because the domain name (network ID) portion of an APN can potentially be very long and contain many characters, you can use the wildcard (*) as the first character of the APN string.

From Junos OS Release 20.4R1 onwards, the [edit security gprs gtp profile profile-name] hierarchy level is replaced by [edit security gtp profile profile-name].


  • pattern-string—To specify APN pattern string, such as “”.

  • imsi-prefix-digits—To specify an IMSI prefix.

    The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

security—To view this statement in the configuration.

security-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 10.0. Support.