Skip to main content
sims
Explorer II
Mar 27, 2019 6:29 PM UTC
Solved

NAT BASIC

Hi , I have the following Nat enabled policy Incoming interface is 10.1.1.1/24 Outgoing interface ip 4.4.4.4/24 And route  to  destination 8.8.8.8  via  gateway 10.1.1.1   If I ping 8.8.8.8 from source 10.2.2.2/24 . What will be the source ip? What if I ping 10.1.1.1 , the host 8.8.8.8 will reply? Thanks
    Toshi_Esumi
    SuperUser
    Apr 1, 2019 4:56 PM UTC

    NAT works only for through traffic that would match the policy. Pining the interface coming from the same interface wouldn't hit the policy. It's called "local-in" traffic. The source wouldn't change in the reply packets.

    3 replies

    Toshi_Esumi
    SuperUser
    SuperUser
    Mar 27, 2019 6:57 PM UTC

    If your default route (unless you have more specific route for 8.8.8.8) is pointing toward the outgoing interface, it would be SNATed with 4.4.4.4. That's what 8.8.8.8 side sees in the ping packet source IP, then where it would reply to.

    If you run sniffer like "diag sniffer packet any 'host 8.8.8.8' 4", you would see those address changes at the NAT.

    Translate
    sims
    simsAuthor
    Explorer II
    Apr 1, 2019 4:45 PM UTC

    Hi,

    What if i ping the incoming interface , there will be any translation 

    Thanks  

    Translate
    Toshi_Esumi
    SuperUser
    SuperUser
    Apr 1, 2019 4:56 PM UTC

    NAT works only for through traffic that would match the policy. Pining the interface coming from the same interface wouldn't hit the policy. It's called "local-in" traffic. The source wouldn't change in the reply packets.

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024