Help in proper nat inside multiple subnet
Posted: Sun Nov 26, 2017 7:14 pm
Hi.
I need to correctly forward a connection from a subnet to another one. In the same time the IP to be used must be the public one.
In the diagram the configuration and the nat configuration I'm using.
If the PC A try to reach the SERVER A using the public domain name is correctly forwarded.
The problem is if the PC B try to reach the server A. (the router B is a classic router with the WAN connection in the server subnet and the LAN in another subnet and the ip of router B as gateway for that subnet.
What I think is that if the PC B ask for the public IP:port the packet go out and reach the server correctly but the server reply cannot reach the subnet correctly, because the mikotik router doesn't know about the second subnet.
How can I solve it ?
thank you for the support
I need to correctly forward a connection from a subnet to another one. In the same time the IP to be used must be the public one.
In the diagram the configuration and the nat configuration I'm using.
If the PC A try to reach the SERVER A using the public domain name is correctly forwarded.
The problem is if the PC B try to reach the server A. (the router B is a classic router with the WAN connection in the server subnet and the LAN in another subnet and the ip of router B as gateway for that subnet.
What I think is that if the PC B ask for the public IP:port the packet go out and reach the server correctly but the server reply cannot reach the subnet correctly, because the mikotik router doesn't know about the second subnet.
How can I solve it ?
thank you for the support