1-1 NAT: private to public

Hello,

I have multiple gateways and I need to ensure traffic for a specific public domain is routed through a specific gateway in order to have a static public IP going to this public domain. The easiest solution I found is to overwrite IP of domain in my DNS server to a private IP routing to my specific gateway (on a dummy interface). This parts works well. Then I need to create a 1:1 NAT mapping from this private IP to real public IP for the domain. This parts is not working. 1.2.3.4 is the public IP of domain. Private IP is 10.0.0.2.

 destination {
     rule 150 {
         description "1-to-1 NAT"
         destination {
             address 1.2.3.4
         }
         inbound-interface dum0
         protocol all
         translation {
             address 10.0.0.2
         }
     }
 }
 source {
    rule 150 {
         description "1-to-1 NAT"
         outbound-interface dum0
         protocol all
         source {
             address 10.0.0.2
         }
         translation {
             address 1.2.3.4
         }
     }
 }

Here is a schema. My laptop is behind gateway 1 and I need to reach server only through gateway 2 in order to always have the same public static IP. Gateway 1 is not having a public static IP.

Any ideas ? Maybe there was an easiest solution ?

Thanks

I don’t understand, why use dummy?