Netmap for multiple IP addresses

I have managed to configure Netmap for one public IP address.
Supose we have two WAN IP-s like 80.80.80.80 and 81.81.81.81
and one LAN IP like 192.168.1.1. I want to have 81.81.81.81 asigned to
192.168.1.10, I used the following configuration:

/ip address
address=80.80.80.80 interface=WAN
address=81.81.81.81 interface=WAN
address=192.168.1.1 interface=LAN

/ip firewall nat
chain=dstnat dst-address=81.81.81.81 action=netmap to-address=192.168.1.10
chain=srcnat src-address=192.168.1.10 action=netmap to-address=81.81.81.81

Now, if I want to netmap a whole range of public IP address to the local network,
it turns out I need to asign all those addresses to the WAN interface. Is there any way
to do this not using the above configuration?

Thank you, Toni

actually, all you’ve done is simple src/dst-nat. ‘netmap’ is used to map 1:1 subranges: for example, map 192.168.0.0/24 to 80.80.80.0/24

if you don’t want to add all addresses to router interface - you may use Proxy ARP feature

Yes, that is exactly what I want to do, map 192.168.1.0/24 to 81.81.81.0/24,
and of course without adding all the IP address.
In this case I should do what? Just use proxy-arp on the WAN interface?

try something like

/ip firewall nat
chain=dstnat dst-address=81.81.81.0/24 action=netmap to-address=192.168.1.0/24
chain=srcnat src-address=192.168.1.0/24 action=netmap to-address=81.81.81.0/24

/ip route add dst-address=81.81.81.0/24 type=unreachable
/interface ethernet set WAN arp=proxy-arp

Thanks for your input, although I don’t quite understand it :slight_smile:
What is used for “type=unreachable” in routes?

Thank you again, Toni

I hope, it helps ProxyARP to know that it should answer ‘81.81.81.X’ ARP queries =) if you have default gateway on WAN - it should keep silence, as far as I understand that…

I see, I’ll let you know if this is going to work