Community discussions

MikroTik App
 
Angel83
just joined
Topic Author
Posts: 5
Joined: Sat Oct 11, 2014 2:48 pm

Subdomain redirection (NAT) to the local IP address.

Sat Mar 23, 2024 12:08 pm

Please help me redirect (NAT) the connection from outside HTTP/HTTPS so that after entering the subdomain, the connection will be redirected to a specific IP address and port in the local network.

WAN->http://test1.domain.com:80-->LAN->192.168.88.101:91
WAN->http://test2.domain.com:80-->LAN->192.168.88.102:92
WAN->https://test3.domain.com:443-->LAN->192.168.88.103:93
WAN->https://test4.domain.com:443-->LAN->192.168.88.104:94

Is it possible? Is it possible to achieve the effect using Layer7 and Web Proxy?
 
User avatar
loloski
Member
Member
Posts: 351
Joined: Mon Mar 15, 2021 9:10 pm

Re: Subdomain redirection (NAT) to the local IP address.

Sat Mar 23, 2024 12:15 pm

You need reverse proxy for that like nginx or haproxy, you can do port forwarding on port 80 to a local reverse proxy from there handle the routing logic

Who is online

Users browsing this forum: Bing [Bot], jvanhambelgium, Pilo2710 and 25 guests