Hi All,
I have a few Mikrotik 750GL running routerOS 6.35.2 and here is a simple task that I need to do:
The Mikrotik got an IP of 192.168.1.21 for its WAN port. Its LAN network is 192.168.88.1/24 and all I would like to do is to route all web request on port 80 from network 192.168.1.1/24 to a host within MikroTik LAN with the IP 192.168.88.68. So here is what I have set up for DSTNAT
[admin@MikroTik] /ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; default configuration
chain=srcnat action=masquerade out-interface=ether1-gateway
I took this straight out from the manual. Yet it did not work at all. Anyone have any idea what else do I need to add for this simple forwarding task to work?
Anyone? Please help.
One more note, the same router with the same NAT rule was working on RouterOS 4.x and then after I upgrade the firmware to 6.35.2 it stop working.
Are you trying to access the web page from the internet, from something on the 192.168.1.0 LAN, or something on the 192.168.88.0 LAN? All three have different answers.
If you are trying from a device on the internet, you will need to set up port forwarding in whatever router is NATing your internet address to the 192.168.1.0 LAN.
If you are trying to access the web page from a device on the 192.168.1.0 LAN, it should work. Your NAT rule appears to be correct (unless I missed something, or you have a firewall rule that is blocking it).
If you are trying from some device on the 192.168.88.0 LAN, it will depend on what IP you are trying to reach. If you are trying to point to the 192.168.1.21 address, you will need to set up a hairpin NAT rule in the MikroTik. If you are trying to point to the 192.168.88.68 address, you should get to the web server just fine.
Thanks Jim,
192.168.1.23 is the WAN address for the RT450 router. The LAN subnet for RT450 is 192.168.88.0. All I would like to do is to have any client from within 192.168.1.0/24 to be able to hit the web server on port 80 of the host 192.168.88.68 on the RT450 LAN port.
Here is my firewall filter (this came from default setting after reset)
[admin@MikroTik] > ip fire fil pr
Flags: X - disabled, I - invalid, D - dynamic
0 D ;;; special dummy rule to show fasttrack counters
chain=forward
Yes to both but I forget the command line method. Pretty sure there are up/down arrows for moving rule -or even possible to drag/drop them with the mouse.
Haven’t read back over the thread, so excuse this question if it’s already been answered: are you doing any policy routing / any kind of load balancing multiple ISPs or anything in the mangle table?