This message was posted by a user wishing to remain anonymous
We are trying to determine how we can record or log specific routing/forwarding events where our SRX device is configured in flow-mode and performs source NAT for our inside network and translates these address pools to a public address configured on a local interface which links to our ISP for traffic leaving our site.
We have a filter applied on our inside interface which matches traffic destined to certain IP blocks and one term is configured to mark this for packet-mode.
This seems counter intuitive given that Juniper confirms that packet-mode is not supported under source NAT and so in attempting to confirm this on the SRX, we have tried using the operational command:
show security show security flow session nat source-prefix X.X.X.X
where X.X.X.X is a known internal IP address that we know is covered by NAT because of the above command providing output of the sessions held by the host and for which NAT has been applied.
However, given that we have those terms where we match specific traffic to use packet-mode, where does this traffic go?
We don't have particular routing policy for the destination targets and they simply follow the default route towards our ISP. However, without NAT, these shouldn't go anywhere.
How can we have the SRX log these particular events where the filter allows the traffic, puts in packet-mode, and (we assume) is not routing it out? Is there such a log we can generate or look at?
We did think about using filter term counters which did let us see that packets matching the term criteria entering the inside interface on the firewall but a similar term (using different filter) set on the outside interface going to our ISP with another counter did not get any hits. We are assuming then that this is due to packet-mode causing these packets to not get routed out due to missing crucial NAT piece (because we use source NAT).
-------------------------------------------