I have multiple public IP address on my WAN interface, How do i create a NAT rule to change to outgoing IP address from specific internal private IP
Thank you
/ip firewall nat
add chain=srcnat src-address=<internal address> out-interface=<WAN> action=src-nat to-addresses=<public address>
If your public address is a dynamic one, the above code wont’t work when your IP changes…
So, if you have a static Public IP use the code sob posted… if your IP is dynamic, then you should replace the second source nat with masquerade without using “to addresses”
Thanx Sob, working perfect