user → home_router(nat 192.168.1.0/24) → mikrotik_router(nat 10.99.99.0/24) → INTERNET → dst_server(web)
tracert to dst_server:
C:\Users\Use>tracert 8.8.8.8:
1 1 ms 1 ms 1 ms 192.168.1.1 (home_router)
2 2 ms 1 ms 1 ms 10.99.99.254 (mikrotik_router)
3 1 ms 1 ms 1 ms *
4 2 ms 2 ms 2 ms *
5 9 ms 8 ms 9 ms *
6 26 ms 26 ms 25 ms dst_server
I need to know mikrotik NAT address (not real internet address), in current situation ip(user comp) is 10.99.99.1
I have access to computer(by programm), how to get this address. Can i create a special web page on mikrotik, who return ip NAT address in mikrotik? or have different way?
It is a little unclear in your diagram what IP is assigned to what interface, and what you are referring to as a NAT IP. Your diagram contradicts the traceroute output. Is the following accurate?
The home router has two interfaces, LAN and WAN. You need to dynamically determine its WAN IP address.
The only way I can think of doing that is to host a web server (or any other service that can return a result somehow) on the 10.99.99.0/24 network (cannot be done on RouterOS) that runs a scripting language or program that returns the client IP address it sees as accessing the service. That way 192.168.1.100 would be able to fetch that page and be returned 10.99.99.1, the IP address the home router is NAT’d to. Alternatively the server could run i a third network attached to the Mikrotik router provided the router doesn’t NAT out that interface. The server could be virtualized inside of RouterOS, but would be a VM.