masquerade with a specific Public IP

Hello.
Have some problem. I need to masquerade local computer with a specific public IP.
Now it works on “Out.Interface”, but my out interface have 2 IP addresses: x.x.x.102 and x.x.x.106, I need my local computer masqurade with 106, but it masquerades with 102.
Is it possible to configure this?

Thanks.

Instead of action=masquerade I should to use action=same

Thanks a lot! :smiley:

actually you can use action=src-nat that will double as masquerade, but you can set to what IP to do natting. action=same is more specific see here:
http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/NAT#Properties

To NAT with a specified source address on the WAN interface configure your rule like below,
/ip firewall nat add chain=srcnat src-address=“specific host or range of addresses inside the network” action=src-nat to-addresses=“outside address you want, in this case .106”

or in a valid way of writing the rule for you to paste in to your router and edit is

/ip firewall nat add chain=srcnat src-address=10.0.0.5/32 action=src-nat to-addresses=1.1.1.106



Ryan