Session mirroring commands are hidden by default. You must have a login with sufficient permission to configure session mirroring. The set system login class class-name permissions pgcp-session-mirroring-control command grants this permission.
Step-by-Step Procedure
To configure session mirroring:
- [edit services pgcp ]
- user@host#edit session-mirroring delivery-function
df-1
- [edit services pgcp session-mirroring delivery-function
df-1]
- user@host#set network-operator-id ABCDE
- [edit services pgcp session-mirroring delivery-function
df-1]
- user@host#set destination-address 10.1.1.63
- [edit services pgcp session-mirroring delivery-function
df-1]
- user@host#set destination-port 15000
- [edit services pgcp session-mirroring delivery-function
df-1]
- user@host#set source-address 10.1.1.43
- [edit services pgcp session-mirroring delivery-function
df-1]
- user@host#set source-port 10000
To disable session mirroring:
- [edit services pgcp session-mirroring]
- user@host#set disable-session-mirroring
To re-enable session mirroring:
- [edit services pgcp session-mirroring]
- user@host#delete disable-session-mirroring
To protect mirrored traffic that is sent from the PG to the delivery function, you can use IPSec. To have IPSec and PGCP performed on the same PIC, you create PGCP and IPSec service sets and chain these service-sets using routing-options.
To create the service sets and routing options:
- [edit services service-set pgcp-svc-set]
- user@host#set pgcp-rules pgcp-rule
- user@host#set next-hop-service inside-service-interface
sp-1/0/0.10
- user@host#set next-hop-service outside-service-interface
sp-1/0/0.20
- [edit services service-set ipsec-svc-set]
- user@host#set next-hop-service inside-service-interface
sp-1/0/0.30
- user@host#set next-hop-service outside-service-interface
sp-1/0/0.40
- user@host#set ipsec-vpn-options local-gateway
1.0.0.1
- user@host#set ipsec-vpn-rules ipsec1
- [edit]
- user@host#set routing-options static route
1.0.0.3/32 next-hop sp-1/0/0.30
The mirrored packets that are generated on sp-1/0/0 have the destination address of the delivery function. In this case 1.0.0.3.