Hello! I have a mikrotik router with a dedicated static IP address. Its subnet is 192.168.0.0/24. It has a PPTP server running on it. I also have a second OpenWRT router with a subnet of 192.168.8.0/24, which is connected to the mikrotik router as a PPTP client. The routing between the networks is configured, and the nodes in one subnet can see the nodes in the other subnet. Previously, port forwarding was configured for the mikrotik subnet
add action=dst-nat chain=dstnat comment="Web Server and DSPhoto" dst-port=80,8080 in-interface=pppoe-out1 protocol=tcp to-addresses=192.168.0.36 to-ports=80
add action=dst-nat chain=dstnat dst-address=внешнийIP dst-port=80,8080 protocol=tcp src-address=192.168.0.0/24 to-addresses=192.168.0.36
add action=masquerade chain=srcnat dst-address=192.168.0.36 dst-port=80,8080 protocol=tcp src-address=192.168.0.0/24
I simply replaced the subnet 0 with subnet 8 in the above settings, but it didn't work. How can I do it correctly?
As I understand the problem is that the node 192.168.8.36 receives packets from the microtik and sends responses to the internet through its gateway in OpenWRT (192.168.8.1) But in this casi it should be send through 192.168.0.1. But how should I do it?