This article explains why a self-traffic-policy entry appears in the output of the show security flow session command. This policy is automatically assigned to traffic that is either generated by the SRX device itself or destined to the SRX device (to-the-box traffic). Since self-traffic-policy is an implicit policy, it cannot be modified or removed.
show security flow session
Session ID: 4295563572, Policy name: self-traffic-policy/1, Timeout: 4, Session State: Valid
In: 172.16.10.3/500 --> 192.168.1.2/500;udp, Conn Tag: 0x0, If: .local..0, Pkts: 1, Bytes: 675,
Out: 192.168.1.2/500 --> 172.16.10.3/500;udp, Conn Tag: 0x0, If: ge-0/0/1.0, Pkts: 1, Bytes: 644,
The self-traffic-policy entry is seen in the show security flow session output when:
Since self-traffic-policy is an implicit policy, it cannot be modified or removed. This is expected behavior and does not require any changes.