Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCNSE topic 1 question 501 discussion

Actual exam question from Palo Alto Networks's PCNSE
Question #: 501
Topic #: 1
[All PCNSE Questions]

A firewall engineer creates a destination static NAT rule to allow traffic from the internet to a webserver hosted behind the edge firewall. The pre-NAT IP address of the server is 153.6.12.10, and the post-NAT IP address is 192.168.10.10. Refer to the routing and interfaces information below.





What should the NAT rule destination zone be set to?

  • A. None
  • B. Inside
  • C. DMZ
  • D. Outside
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jhoncena
Highly Voted 1 year ago
Answer should be D .. Outside to outside based on below : The destination zone in the NAT rule is determined after the route lookup of the destination IP address in the original packet (that is, the pre-NAT destination IP address). https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-networking-admin/nat/nat-configuration-examples/destination-nat-exampleone-to-one-mapping
upvoted 10 times
jhoncena
1 year ago
I know both routing entries refer to Inside but the question is asking about the configuration part not the logical flow .. we need to configure outside > to > outside
upvoted 1 times
jhoncena
1 year ago
No Inside should be correct : )
upvoted 2 times
...
...
netsof
10 months, 1 week ago
Good thinking you are correct, but check again the Routing table...
upvoted 3 times
...
...
Knowledge33
Highly Voted 11 months, 1 week ago
Selected Answer: D
The answer is D, not B guys. We don't care about the routing table. When a paccket arrive on the outside Interface, The PAN checks first if there is a DNAT configured for this trafic, and If the trafic is allowed. Then It can proceed with the forwarding lookup (Routing table). That's why we need Outside>Outside NAT. B is totally wrong. There is no NAT on the Inside zone. FOrget the Routing table. It doesn't matter.
upvoted 8 times
Knowledge33
10 months, 2 weeks ago
My bad. The response is B
upvoted 5 times
Eluis007
1 week, 2 days ago
A NAT rule is configured based on the zone associated with a pre-NAT IP address. https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-networking-admin/nat/nat-policy-rules/nat-policy-overview
upvoted 1 times
...
...
laroux
11 months ago
> The destination zone in the NAT rule is determined after the route lookup of the destination IP address in the original packet (that is, the pre-NAT destination IP address). https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-networking-admin/nat/nat-configuration-examples/destination-nat-exampleone-to-one-mapping
upvoted 1 times
...
...
Icke1973
Most Recent 2 days, 5 hours ago
Selected Answer: B
net 153.6.12.0/27 will be routed to inside and is not an outside ip.
upvoted 1 times
...
hcir
1 month ago
I just tested it in the lab, and the answer is B. Inside. NAT uses the pre-NAT zone. The Zone is determined by the route lookup which for the destination IP is "inside".
upvoted 2 times
...
cloudconnect
1 month, 2 weeks ago
Selected Answer: D
The webserver having this 153.6.12.10 address that appears to be reachable through eth1/2 on the inside zone is a U-NAT situation - where internal users need to access a server using the server's external public IP instead of its private IP address. But, it doesn't mean that the internet users are accessing the network through eth1/2 on the firewall, as shown in route table.
upvoted 2 times
...
scanossa
1 month, 2 weeks ago
Selected Answer: D
The original connection comes from Outside to Outside. When it translates it to a different destination IP address, you do not specify any zone at all
upvoted 1 times
...
Pacheco
2 months, 1 week ago
Selected Answer: D
Answer is D, but I get why some people are saying B, since DNAT is one of the trickiest things to get right in PAN fws. It's just a matter of knowing and remembering the NAT formula, so let me explain: Everyone voting for B is correct in that the final destination zone for the traffic is going to be inside, but that's not the question here; the question is "what should the NAT rule dest zone be set to?", basically, "what should you use as the dest zone for your NAT rule?", so they're just throwing routing in there to throw you off, because for this question routing doesn't even matter because it will happen ***after*** NAT policy lookup. If you have ever configured NAT for public access to your website, for example, you know usually source and dest zones for DNAT are the same in PAN (outside to outside); routing will take care of sending the packet to it's real destination after NAT policy is evaluated.
upvoted 3 times
Pacheco
2 months, 1 week ago
From this link (that shows you an image of the actual policy): https://docs.paloaltonetworks.com/pan-os/10-1/pan-os-networking-admin/nat/nat-configuration-examples/destination-nat-exampleone-to-one-mapping "The firewall receives the ARP request packet for destination 192.0.2.100 on the Ethernet1/1 interface and processes the request. The firewall responds to the ARP request with its own MAC address because of the destination NAT rule configured. The NAT rules are evaluated for a match. For the destination IP address to be translated, a destination NAT rule from zone Untrust-L3 to zone Untrust-L3 must be created to translate the destination IP of 192.0.2.100 to 10.1.1.100. After determining the translated address, the firewall performs a route lookup for destination 10.1.1.100 to determine the egress interface. In this example, the egress interface is Ethernet1/2 in zone DMZ."
upvoted 2 times
Pacheco
2 months, 1 week ago
And if you're worried about the fact that outside is not the real dest zone, remember the "formula" for configuring DNAT on PAN is: NAT rule: pre-NAT IPs + pre-NAT zones Sec rule: pre-NAT source zones + pre-NAT source and dest IP + post-NAT zone (yes, it doesn't make sense on paper to use the "real" dest zone for the sec rule with a pre-nat IP, but that's just how PAN does it. You can confirm this with the link above). Since the secpol is going to be evaluated after NAT and route lookup, using the pre-NAT source zone and post-NAT dest zone for the sec rule is going to take care of the correct routing and allowing of the packet. If you have ever taken the Firewall Essentials class, check your student manual for the destination NAT section. Answer is D.
upvoted 2 times
...
...
...
Marshpillowz
2 months, 2 weeks ago
Selected Answer: B
I think B
upvoted 1 times
...
omgt2k2
2 months, 3 weeks ago
Selected Answer: B
The routing table shows that the destination network lives on the "inside" zone and not the "outside". look at this KB: https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClGZCA0
upvoted 1 times
...
JRKhan
3 months ago
Selected Answer: B
Both the pre and post nat addresses are in the inside zone so the destination zone in the nat policy will be Inside as well.
upvoted 1 times
...
Metgatz
3 months, 4 weeks ago
Selected Answer: B
Public IP is Eth 1/2 which is Inside Zone - Option B inside
upvoted 1 times
...
Metgatz
3 months, 4 weeks ago
Public IP is Eth 1/2 which is Inside Zone - Option B inside
upvoted 1 times
...
Andromeda1800
4 months ago
Selected Answer: B
In my opinion B is correct.
upvoted 2 times
...
ItVik
4 months, 3 weeks ago
Selected Answer: B
Inside as Public IP is Eth 1/2 which is Inside Zone.
upvoted 2 times
...
missakid
5 months, 2 weeks ago
Selected Answer: B
The most common mistakes when configuring NAT and security rules are the references to the zones and address objects. The addresses used in destination NAT rules always refer to the original IP address in the packet (that is, the pre-translated address). The destination zone in the NAT rule is determined after the route lookup of the destination IP address in the original packet (that is, the pre-NAT destination IP address). https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-admin/networking/nat/nat-configuration-examples/destination-nat-exampleone-to-one-mapping
upvoted 2 times
Pacheco
2 months, 1 week ago
"The destination zone in the NAT rule is determined after the route lookup of the destination IP address in the original packet (that is, the pre-NAT destination IP address)." This statement is not correct and your own link proves it: The NAT rules are evaluated for a match. For the destination IP address to be translated, a destination NAT rule from zone Untrust-L3 to zone Untrust-L3 must be created to translate the destination IP of 192.0.2.100 to 10.1.1.100. After determining the translated address, the firewall performs a route lookup for destination 10.1.1.100 to determine the egress interface. In this example, the egress interface is Ethernet1/2 in zone DMZ.
upvoted 1 times
wallaka
3 weeks, 3 days ago
There isn't a DMZ zone in the question so I'm not sure why you keep quoting the explanation with DMZ.
upvoted 1 times
...
...
...
Jeyram02
6 months ago
Answer D,because rule NAT Outside-Oustside and rule Security is Outside-Inside.
upvoted 2 times
...
ChiaPet75
7 months, 2 weeks ago
This is a bit of a tough one. The routing table shows that the destination network lives on the "inside" zone and not the "outside".
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...