How to NAT the private address to a routed public IP address

Hi all,
I have connected to an upstream provider through a WAN. I have my organisation’s public IP and AS. I have connected to the upstream provider by ebgp peering. I have announced my public IP pool. Now, I have assigned a public ip from my pool to an interface and want to NAT 10.x.x.x IP pool to my Public IP interface and not to the peering IP. Can someone tell me how to do this?

Thanks and regards,

ram

Go to IP > Firewall > NAT and create a new rule:
Chain: srcnat
out interface: $Your_WAN_Interface
Action: masquerade

Lum3nz

I will suggest that you get a separate router for NAT and allow the BGP router to do BGP while the second router does the distribution job and NATing. But if you insist on using the same router, then you have to create a loopback interface (bridge interface with no port attached), Add the public IP on the interface and NAT the local IPs behind that interface.