To use the sample packet-mirroring application:
/SDK/scriptServices/packetMirroring/ldif/service.ldif
You can obtain ldapadd from the following Web site:
To load data into the Juniper Networks database, you need the IP address of the database and the database credentials. The default bind distinguished name (DN) for the database is cn=umcadmin, o=umc and the password is admin123.
You can make these substitutions by defining the parameter substitutions in the packetMirroring service (serviceName=packetMirroring, o=Services, o=umc) with the SRC CLI or by passing the values through the SAE core API.
For information about parameter substitutions, see Configuring Parameters for the Script Service for Packet Mirroring. For information about passing the values through the SAE core API, see Defining RADIUS Attributes for Dynamic Authorization Requests with the SAE Core API.
For information about subscriptions, see Overview of Subscriptions.
When a PPP subscriber is subscribed to the packet-mirroring service, configure the service as an activate-on-login service at user connection time. After the subscriber has logged in through the SAE remote API, the packet-mirroring service can be subscribed to the PPP subscriber and activated. When the service is activated, a CoA request is sent to the router running JUNOSe Software that includes the PPP subscriber’s accounting session ID to start packet mirroring for this subscriber.
When a DHCP subscriber is subscribed to the packet-mirroring service, configure the service as an activate-on-login service at user connection time. After the subscriber has logged in through the SAE remote API, the packet-mirroring service can be subscribed to the DHCP subscriber and activated. When the service is activated, a CoA request is sent to the router running JUNOSe Software that includes the DHCP subscriber’s IP address and virtual router name for the router running JUNOSe Software to start packet mirroring for this subscriber.
You can use DHCP option 82 to identify the subscriber session. For example, if you set DHCP option 82 as the user login name, an external application can use this setting to search for the subscriber session. The following subscriber classification script illustrates this example:
- [retailername=default,o=Users,o=UMC?loginName=<-dhcp[82].suboptions[1].string->?sub?(interfaceName=<-dhcp[82].suboptions[1].string->)]
- loginType = “ ADDR”
- [<-retailerDN->??sub?(uniqueID=<-userName->)]
- retailerDN != “ “
- & userName != “ “
- [<-unauthenticatedUserDn->]
- loginType == "ADDR"
- loginType == "AUTHADDR"
Packet mirroring for DHCP subscribers does not involve RADIUS authentication, so you might have to configure authentication to grant all IP subscriber management interfaces access without authentication. For example, configure the router running JUNOSe Software with the following authentication:
You can still configure other subscribers to use RADIUS authentication. For example, configure the router running JUNOSe Software with the following authentication for PPP subscribers: