I have a RUTX08, WAN network is 10.0.1.0/24 and LAN is 10.0.2.0/24 .
In LAN I have a host 10.0.2.20 that does not have the default gateway configured. I want to access that device from WAN using 10.0.1.20 as a NAT address. RUTX08 should answer ARP requests for 10.0.1.20 in WAN and redirect traffic to LAN host 10.0.2.20. It should also have masquerading so that host 10.0.2.20 sees the traffic coming from RUTX08's address 10.0.2.1, not from 10.0.1.20 (because of the missing gateway on the host). Returning traffic in WAN should also have 10.0.1.20 as source because hosts in 10.0.1.0/24 are not aware of network 10.0.2.0/24 and RUTX08 is not the default gateway in either networks.
So my question is, what iptables rules should I define in the Custom rules section of RUTX08 config? I tried netmap and snat/dnat but didn't succeed, probably missing something.
Thanks in advance!