Community discussions

MikroTik App
 
User avatar
mohamadmf68
just joined
Topic Author
Posts: 1
Joined: Tue Jan 25, 2022 12:13 pm
Location: iran
Contact:

Direct subdomains from the Internet to the internal network

Tue Jan 25, 2022 12:52 pm

Hi,
I have a mikrotik os in virtual machine with a fixed internet ip to which I have connected a domain
I added a subdomain in the DNS Static section
Now I want anyone from anywhere in the world to enter one of the subdomains to connect to an internal network like this:

sub.domain.com -> 185.51.xxx.xxx -> 192.172.0.2
sub1.domain.com -> 185.51.xxx.xxx -> 192.172.0.3

All ports are open on internal servers
thank you
Programmer and interested in music and astronomy
 
Sob
Forum Guru
Forum Guru
Posts: 8204
Joined: Mon Apr 20, 2009 9:11 pm

Re: Direct subdomains from the Internet to the internal network

Thu Jan 27, 2022 3:34 am

Short answer: Not possible with RouterOS.

Longer answer: If it would be only for unencrypted http (not https), it's possible to misuse web proxy as reverse proxy, but it's not the best idea and I wouldn't use it for anything serious.
Come on people, do you really have to quote full posts? It's annoying and in most cases useless.
 
MrHae
newbie
Posts: 45
Joined: Wed May 26, 2021 7:40 pm

Re: Direct subdomains from the Internet to the internal network

Thu Jan 27, 2022 6:28 am

Hi,
I have a mikrotik os in virtual machine with a fixed internet ip to which I have connected a domain
I added a subdomain in the DNS Static section
Now I want anyone from anywhere in the world to enter one of the subdomains to connect to an internal network like this:

sub.domain.com -> 185.51.xxx.xxx -> 192.172.0.2
sub1.domain.com -> 185.51.xxx.xxx -> 192.172.0.3

All ports are open on internal servers
thank you
you have to setup your subdomains at your Domain Portal/Hosting Portal

Who is online

Users browsing this forum: kevinds, mkx, Sebastian90000, Semrush [Bot], Zacharias and 53 guests