Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring Custom Applications

This example shows how to configure custom applications to support GGSN pooling scenario 1.

Requirements

This example uses the following hardware and software components:

  • A high-end SRX Series device
  • A PC
  • Junos OS Release 12.1-X44-D2

Before you begin, configure the required GGSN policy. See Example: Configuring a GGSN Custom Policy.

Overview

In this example, you create applications src_2123 and src_3386 to identify source ports 2123 and 3386 for both TCP and UDP.

First you configure a custom application called src_2123.You set the application protocol to gprs-gtp-c. Then you set the networking protocol type to UDP. You set the source port to 2123 and the destination port to 0-0.

Then you configure another custom application called src_3386. You set the application protocol to gprs-gtp-v0. Then you set the networking protocol type to UDP. Finally, you set the source port to 3386 and the destination port to 0-0.

Configuration

Configuring Custom Applications

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

set applications application src_2123 application-protocol gprs-gtp-cset applications application src_2123 protocol udpset applications application src_2123 source-port 2123set applications application src_2123 destination-port 0-0set applications application src_3386 application-protocol gprs-gtp-v0set applications application src_3386 protocol udpset applications application src_3386 source-port 3386set applications application src_3386 destination-port 0-0

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.

To configure custom policy applications:

  1. Configure the first custom application and application protocol name.
    [edit applications]user@host# set application src_2123 application-protocol gprs-gtp-c
  2. Configure the networking protocol type.
    [edit applications]user@host# set application src_2123 protocol udp
  3. Configure the source port number.
    [edit applications]user@host#set application src_2123 source-port 2123
  4. Configure the TCP or UDP destination port number.
    [edit applications]user@host# set application src_2123 destination-port 0-0
  5. Configure the second custom application and application protocol name.
    [edit applications]user@host# set application src_3386 application-protocol gprs-gtp-v0
  6. Configure the networking protocol type.
    [edit applications]user@host# set application src_3386 protocol udp
  7. Configure the source port number.
    [edit applications]user@host# set application src_3386 source-port 3386
  8. Configure the destination port number.
    [edit applications]user@host# set application src_3386 destination-port 0-0

Results

From configuration mode, confirm your configuration by entering the show applications command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

[edit]user@host# show applications
application src_2123 {application-protocol gprs-gtp-c;protocol udp;source-port 2123;destination-port 0-0;}application src_3386 {application-protocol gprs-gtp-v0;protocol udp;source-port 3386;destination-port 0-0;}

If you are done configuring the device, enter commit from configuration mode.

Published: 2015-02-11