Link to home
Start Free TrialLog in
Avatar of Amin El-Zein
Amin El-Zein

asked on

mikrotik nating

Hello,
i have mikrotik that have ip on lan is 192.168.1.1 i want when the client request this ip nat to external web server so the client will not knowing the ip of web server
so how i can do it ?
thanks.
Avatar of CompProbSolv
CompProbSolv
Flag of United States of America image

You are trying to have a local (192.168.1.x) IP address map to a public address?  I wouldn't expect that this router can do it.  NAT is used for the other direction: access to the router's public address goes to local private addresses.

Does the client access the IP by number or by name?  If by name then you have some ability to control that through DNS.
Avatar of Amin El-Zein
Amin El-Zein

ASKER

hello,
in short word i want to point mikrotik lan address to external web server on internet
for exmaple
when request 192.168.1.1 the client will open for example msn.com ip
any suggest ?
I'm not aware of how it would be possible in the router.  I see a serious problem with ANY internet access at that point.

For example, if a user wants to go to Google.com, the computer will send the packet to the router at 192.168.1.1, which would then pass it to the next hop.  If you have 192.168.1.1 redirected to msn.com's IP, it wouldn't get past there.

You could do some sorts of redirection with an internal web server that would get to the outside internet or you could possibly do some redirection with a different LAN address (such as 192.168.1.2 as a second address on the router).
o dont want to use it with web server regarding the browser cash problem....
i done it … by using dstnat and src nat .
thanks.
ASKER CERTIFIED SOLUTION
Avatar of Amin El-Zein
Amin El-Zein

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial