Understanding GTP APN Filtering
An access point name (APN) is an information element (IE) included in the header of a GPRS tunneling protocol (GTP) packet that provides information about how to reach a network. An APN comprises two elements:
- Network ID—Identifies the name of an external network such as mobiphone.com.
- Operator ID—Uniquely identifies the operators’ public land mobile network (PLMN) such as mnc123.mcc456.
By default, the device permits all APNs. However, you can configure the device to perform APN filtering to restrict access to roaming subscribers to external networks.
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, mobiphone.com) and, optionally, 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. The wildcard indicates that the APN is not limited only to mobiphone.com but also includes all the characters that might precede it.
You may also set a selection mode for the APN. The selection mode indicates the origin of the APN and whether or not the Home Location Register (HLR) has verified the user subscription. You set the selection mode according to the security needs of your network. Possible selection modes include the following:
- Mobile Station—Mobile station-provided APN, subscription
not verified.
This selection mode indicates that the mobile station (MS) provided the APN and that the HLR did not verify the user’s subscription to the network.
- Network—Network-provided APN, subscription not
verified.
This selection mode indicates that the network provided a default APN because the MS did not specify one, and that the HLR did not verify the user’s subscription to the network.
- Verified—MS or network-provided APN, subscription
verified.
This selection mode indicates that the MS or the network provided the APN and that the HLR verified the user’s subscription to the network.
APN filtering applies only to create-pdp-request messages. When performing APN filtering, the device inspects GTP packets to—look for APNs that match APNs that you set. If the APN of a GTP packet matches an APN that you specified, the device then verifies the selection mode and only forwards the GTP packet if both the APN and the selection mode match the APN and the selection mode that you specified. Because APN filtering is based on perfect matches, using the wildcard (*) when setting an APN suffix can prevent the inadvertent exclusion of APNs that you would otherwise authorize. The device automatically denies all other APNs that do not match.
Additionally, the device can filter GTP packets based on the combination of an International Mobile Subscriber Identity (IMSI) prefix and an APN.
Related Topics
JUNOS Software Feature Support Reference for SRX Series and J Series Devices