Page 1 of 1

Map local ip to a public web address

Posted: Tue May 27, 2014 8:32 am
by zhex900
Hi,

I want to map a local ip address (192.168.88.2) to a public address (http://www.google.com). So whenever I enter 192.168.2 it will go to http://www.google.com. How do I do this? Is it possible to do this?

Re: Map local ip to a public web address

Posted: Tue May 27, 2014 8:38 am
by jarda
Are you sure you want to write 192.168.2 and see Google's webpage? How it could be useful if it was possible?

Re: Map local ip to a public web address

Posted: Tue May 27, 2014 8:44 am
by zhex900
Yes. I want redirect all traffic from an ip address to a web address.

In my situation, I want my Mikrotik router to talk to a radius server with no static ip. Radius client only can have a static ip address of the radius server. It's a problem because my radius server's ip address will change. So I thought if I have a dummy static local ip address, it can point to the radius server web address.

Re: Map local ip to a public web address

Posted: Wed May 28, 2014 3:03 pm
by noib
You can create a L2TP ot PPTP connection between your Radius (ptp Client) and your Mikrotik device(Ptp Server). If the radius server IP changes, the PtP connection reconnects and you will still have the same Ptp IP.

Re: Map local ip to a public web address

Posted: Wed May 28, 2014 3:35 pm
by zhex900
I am not not familiar with L2TP. Is this setup what you referring?

http://wiki.mikrotik.com/wiki/Manual:Interface/L2TP

This will work for me. But it will take some time for me to learn how to implement this.

Thanks

Re: Map local ip to a public web address

Posted: Fri May 30, 2014 12:18 pm
by noib
Yes; on your Mikrotik device put something like
/interface l2tp-server server
set default-profile=default enabled=yes
/ppp secret
add local-address=10.200.4.2 name=l2tp_radius password=123456etc  remote-address=10.200.4.1 service=l2tp
Then on the radius side, use a pptp/l2tp client to connect to your mikrotik. Once connexion is established, your radius server can be accessed as 10.200.4.1, whatever is his real IP.