Hello.
I have a double routed LAN due to a slightly unusual kind of internet connection technology (side access to a rural directional WiFi AP). My internet connection already passes a Mikrotik router (RB750) with default gateway 192.168.88.1.
I want to allow access via internet to network devices in a deeper LAN, behind another router (192.168.88.0/24 to 192.168.0.0/24), which have IP addresses 192.168.0.17x and provide HTTP portals at port 8080 each. With the help from the managing internet provider, a dst-nat rule was added to prepare incoming access, selected via port numbers (our.dynamic.dns:817x to second.router.ip:817x):
[General]
Chain = dstnat
Protocol = 6 (tcp)
Dst. Port = 8170-8179
In. Interface = pppoe-out1
[Action]
Action = dst-nat
To Addresses = 192.168.88.252
Previously, there was a Windows Server 2012 R2 as NAT router for the LAN, running some additional services. Via WireShark I could confirm that packets arrived as expected. Then I tried to add NAT routing rules to the server, using two different techniques (via port forwarding dialogs, and via “netsh interface portproxy”). In both cases, connections were refused, no port forwarding happened. Eventually someone convinced me that a Windows Server 2012 R2 may simply refuse to do some services for security reasons … so I bought another Mikrotik router (hEX lite) to do what it is supposed to do.
Internet IP = 192.168.88.243 – different device, different DHCP IP from the first router, where I adapted the previously reported NAT rule: To Addresses = 192.168.88.243
Local IP = 192.168.0.1 – like the usual default of the Windows server, to avoid reconfiguring all clients with fixed IP’s
Here I added a NAT route with specific port translation:
[General]
Chain = dstnat
Protocol = 6 (tcp)
Dst. Port = 8170
In. Interface = ether1-gateway
[Action]
Action = dst-nat
To Addresses = 192.168.0.170
To Ports = 8080
But to my disappointment, same result: wget our.dynamic.dns:8170 => Connection refused.
Now I wonder if I lack of some general knowledge regarding such a cascade (our.dynamic.dns:8**170** => second.router.ip:8**170** => 192.168.0.170:8080). Is that possible at all?