Ok, I think I've found the answer.
The trick is to open ports on the Huawei router redirected to the LAN IP address of the Mikrotik. In my case, I open port TCP 6040 to 192.168.92.2.
Then, on the Mikrotik, I add these lines:
IP address 8.8.8.8 is just an example. But I've tested it with my required public IPs and it seems to work fine!
The trick is to open ports on the Huawei router redirected to the LAN IP address of the Mikrotik. In my case, I open port TCP 6040 to 192.168.92.2.
Then, on the Mikrotik, I add these lines:
Code:
/ip firewall address-list add address=8.8.8.8 list=my_allowed_ips/ip firewall nat add action=dst-nat chain=dstnat dst-port=6040 protocol=tcp src-address-list=my_allowed_ips to-addresses=192.168.92.5/ip route add disabled=no dst-address=0.0.0.0/0 gateway=192.168.92.1
IP address 8.8.8.8 is just an example. But I've tested it with my required public IPs and it seems to work fine!
Statistics: Posted by Leolo — Tue Jan 30, 2024 7:23 pm