Community discussions

MikroTik App
 
zhex900
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Mon Apr 15, 2013 5:34 pm

Map local ip to a public web address

Tue May 27, 2014 8:32 am

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?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Map local ip to a public web address

Tue May 27, 2014 8:38 am

Are you sure you want to write 192.168.2 and see Google's webpage? How it could be useful if it was possible?
 
zhex900
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Mon Apr 15, 2013 5:34 pm

Re: Map local ip to a public web address

Tue May 27, 2014 8:44 am

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.
 
noib
Member Candidate
Member Candidate
Posts: 291
Joined: Fri Jan 25, 2013 6:04 pm
Location: France
Contact:

Re: Map local ip to a public web address

Wed May 28, 2014 3:03 pm

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.
 
zhex900
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Mon Apr 15, 2013 5:34 pm

Re: Map local ip to a public web address

Wed May 28, 2014 3:35 pm

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
 
noib
Member Candidate
Member Candidate
Posts: 291
Joined: Fri Jan 25, 2013 6:04 pm
Location: France
Contact:

Re: Map local ip to a public web address

Fri May 30, 2014 12:18 pm

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.