Skip to main content
cofounder
New Member
June 5, 2021
Question

NAT public ip to private ip

  • June 5, 2021
  • 1 reply
  • 3033 views

hi hello there,

 

i have questing about NAT, i have public ip x.x.x.x/28 and y.y.y.y/29. and i want some of the public ip is NAT to my private ip. for example i want to x.x.x.5 NAT to 192.168.100.50 or y.y.y.5 NAT to 192.168.100.51. and maybe add some port forwarding so service in that server can expose to internet, let say port 2222 from public ip forward to port 22 private ip.

 

currently i have configure my fortigate with this, but still no luck

 

 

 

and i realise that, i have /28 public ip. but only 1 ip that i can ping from internet, the one that i can ping is my public ip in interface wan1, why the rest of 13 public ip cannot ping from internet ?

cus i have experience with mikrotik and i can do ping to all my 14 ip subnet /28.

 

anyone can help me?

 

    1 reply

    patelr
    Staff
    Staff
    August 2, 2024

    Hello @cofounder ,

     

    Have you reviewed https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-use-a-VIP-s-External-IP-Address-for-Source/ta-p/189947 ? This document will provide in-depth information on how to set VIP, and IPv4 policy based on VIP.

     

    Thanks,
    Ronak Patel