Cannot set up port forwarding on Mikrotik
Hope someone here will be able to help me.
My ISP provides a ZTE router, to which I have my MikroTIK RB4011 connected. I also have public IPv4 (dynamic = changes when ZTE router is rebooted)
The IP of Mikoritk in ZTE network is 192.168.1.4/24
Network on Mikrotik is: 192.168.64.0/18 with masquerade enabled, so all devices have access to internet.
DMZ on ZTE is enabled and set up for 192.168.1.4
Now, what I want to reach is:
When reaching my public IP 109.XXX.XXX.XXX, I want this traffic to be forwarded to VM with IP 192.168.88.123.
I tested several rules, but none of them worked
/ip/firewall/nat> add chain=dstnat action=dst-nat dst-port=80 dst-address=192.168.1.1 protocol=tcp to-addresses=192.168.88.123
ip firewall/ nat add chain=srcnat src-address=192.168.1.1 dst-address=192.168.88.123 out-interface=ether10 action=masquerade /ip/firewall/filter> add action=accept chain=foward comment="Allow port forwarding" connection-nat-state=dstnat connection-state=new disabled=no in-interface=ether1
Both rules I tried to set up did not work.
The schema of what I want to reach looks like below:
109.XXX.XXX.XXX/192.168.1.1 -> 192.168.1.4 (192.168.64.0/18) -> 192.168.88.123
Does anyone of you know how can I fix this? I tried many more solutions found in Google, but none of them worked