How do I configure port forwarding on my Mikrotik to direct traffic to the server running cloudflared?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I configure port forwarding on my Mikrotik to direct traffic to the server running cloudflared?
Asked by:
102 Viewed 102 Answers
Responsive Ad After Question

Answer (102)

Best Answer
(422)
On your Mikrotik, you'll need to create a NAT rule. Go to IP -> Firewall -> NAT. Add a new rule with the following: Chain: `dstnat`, Protocol: `tcp` or `udp` (depending on your service), Dst. Port: the port you want to forward (e.g., 80, 443), In. Interface: your WAN interface, Action: `dst-nat`, To Addresses: the IP address of the server running `cloudflared`, To Ports: the port `cloudflared` is listening on locally.