How to map two static WAN ips to one Private ip?

Hi

I want to map two public/wan ips on my MTik to one private ip. I have a NAS synology that i can not assigne permently two static IP. I can add a virtual ip but after reboot i have to manually do it again. That wont work for me.

I want to run test DNS server on LAN and WAN access, and i need to have to uniq public IPs base on namecheap.com domain for running own DNS server requirements.. FYI.


This is what i have done so far. See below.


/ip address
add interface=LAN address=192.168.88.10/24
add interface=WAN address=1.1.1.1/32
add interface=WAN address=2.2.2.2/32

/ip firewall nat
add chain=srcnat out-interface=WAN src-address=192.168.88.10 action=src-nat to-address=1.1.1.1
add chain=srcnat out-interface=WAN src-address=192.168.88.10 action=src-nat to-address=2.2.2.2
add chain=dstnat in-interface=WAN dst-address=1.1.1.1 action=dst-nat to-address=192.168.88.10
add chain=dstnat in-interface=WAN dst-address=2.2.2.2 action=dst-nat to-address=192.168.88.10


Doesnt work btw.


Any help is appreciated.

BTW. is it possible/doable?

thx

Are you really configuring 2 IP adresses to one interface?.
Maybe just action=masquerade instead if src-nat works.
Are you having any firewall filter rules?

I have 3 static ips.

One is use to route thru the othe two ( subnet of /30 )

So i assigne the 1st one to WAN and the other two i assigned to one bridge interface.


And then i run 1:1 ip mapping so my synology get the WAN ip and the other Secondary DNS get the ip from /30.

And i also do Hair-Pin Nating so i can access the portal login to the Synology on my Local LAN.

All works LOL.

Little question. Does it may a difference if i assign the /30 static ips to the WAN eth? likt the 1st ip? will that interfere with teh 1st ip? I masquerade the 1st entire LAN.


Thx