Community discussions

MikroTik App
 
banjopicker
just joined
Topic Author
Posts: 6
Joined: Mon Sep 29, 2014 8:50 pm

custom portforwarding depending on URL

Tue Oct 14, 2014 6:15 am

I have set up a web camera on my mikrotik home network, but my wife cannot view it at work because they have all outgoing ports except for 80 blocked. If I map 80 to the webcam she can see it fine, but I would rather not dedicate and expose the camera as the homepage on port 80 to the outside world.

To complicate things a little, my home network does not have a fixed IP, so I have to use ddns, and have setup no-ip.com to work successfully. So http://myddnsname.ddns.net/ succesfully accesses my network. I have various ports exposed to the outside that successfully forward to different devices on the network.

What I would like to do is redirect all requests to a specific url so that they maps to a specific server/port (the camera) on my network, eg http://myddnsname.ddns.net/camera transparently connects to 192.168.1.250:25081

This way, as far as my wife's employer is concerned, only port 80 is being used on her side, and on my side, I can direct traffic to different internal appliances/ports based only on the URL, all coming through the port 80 that is exposed to the world.

Is this practical?

Thanks,
BP
 
SystemErrorMessage
Member
Member
Posts: 390
Joined: Sat Dec 22, 2012 9:04 pm

Re: custom portforwarding depending on URL

Tue Oct 14, 2014 10:39 am

This isnt a mikrotik configuration problem, it is a web server configuration of getting content from another machine on the LAN and displaying it.