Community discussions

MikroTik App
 
AE8U
just joined
Topic Author
Posts: 13
Joined: Sun Nov 24, 2024 8:50 pm

Port forwarding FQDN

Tue Dec 03, 2024 1:29 am

I have a MikroTik hAP ac lite (RB951). I do not have a static ip address from my ISP, so my WAN ip address changes periodically. Also, I have a domain (xxxxx.link) that is hosted by Cloudflare. And I have an app running that automatically updates cloudflare everytime my external ip address changes.

I access my home network by using that domain. I want to set up port forwarding to access various devices at my home (such as cameras) by port forwarding the domain to specific ports. How do I do that?

I am not currently running any local DNS on the RB951.

Thanks,
Mike
 
User avatar
loloski
Member
Member
Posts: 420
Joined: Mon Mar 15, 2021 9:10 pm

Re: Port forwarding FQDN

Tue Dec 03, 2024 4:46 am

You need reverse proxy in TCP mode to do this, you can put haproxy or nginx as reverse proxy in a container inside the TIK or you can do it outside your router and make port forwarding
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: Port forwarding FQDN

Tue Dec 03, 2024 4:57 am

The RB951 does not support containers, but running the Cloudflare container be best way to get traffic to the Mikrotik.

You can create a dst-nat in /ip/firewall for the port to enable port forwarding. Since the FQDN point's the router IP, that's all that's technically needed. Your relaying on the security of the NVR/etc with just port forwarding.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1611
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: Port forwarding FQDN

Tue Dec 03, 2024 7:06 am

@AE8U, try to avoid exposing your internal network devices with open ports whenever possible. Instead, consider using VPN like WireGuard or ZeroTier. MikroTik has a built-in DDNS feature for handling dynamic IP changes called IP Cloud.

Who is online

Users browsing this forum: vingjfg and 18 guests