Router forwarding and the Overview checks
Make the four port forwards on your router, set the public ports so your Relay's addresses carry no port number, and follow a red row on the Overview to its fix.
- Length
- 4:43
- Published
- Language
- English
Transcript
After this film, your Relay's addresses work from anywhere, without a port number. You need your Relay on a NAS, its DNS records, and your router's port forwarding page. Your NAS sits behind your router, and the router lets nothing in by itself. Three kinds of traffic have to come in: visitors, devices, and calls. A device calls out from its own network, and that call arrives at your router from outside.
So each kind needs a forward: a rule that passes one port on to the NAS. Start with the web: visitors come in on port 443, the standard port for HTTPS. Forward 443 on the router to 28443, where the Relay listens on your NAS. Forward 80 the same way, to 28081: the Relay's plain HTTP port. Let's Encrypt only checks on these two ports before it gives your Relay a certificate. And your visitors get addresses without a port number.
Devices connect on port 28022: forward that one with the same number. Calls use port 3478 over UDP, again with the same number. That makes four forwards, and you make them in your router's own settings. Your Relay does not know about those forwards, so its links still carry port 28443. Tell it that visitors use 443 and 80, and the port number disappears. In your Relay's dashboard, click Settings, then Network.
Further down is Domain, ports and access, with the ports your Relay listens on. Set Public HTTPS port to 443, and Public HTTP port to 80. Then click Save, at the bottom of this form. The change now waits in this bar: nothing changes until the restart. Click Restart now, and confirm it with the Restart button that follows. The Relay is away for a few seconds, and devices reconnect by themselves.
From now on, the addresses and links it hands out carry no port number. At the top of this page is the Network table, with a row for each service. Inside is the port on your NAS, and On the router is the port from outside. For the web, it now reads 80 and 443, matching the rules on your router. Every row also has a coloured dot: dark blue means the Relay does not know. Here it says forwarding is off: you made the rules yourself, so it cannot see them.
So this table shows what the Relay was told, not what the internet sees. The Overview checks your Relay every time you open it. The word at the top sums it up, and a green dot means checked and fine. It checks your DNS records and your certificates, but not your router's forwards. Here is a mistake that is easy to make at your DNS provider. The wildcard record points at your NAS's address inside your own network.
Nobody outside can reach that address, so no visitor ever arrives. Now the word at the top says needs attention, and its dot is red: checked, and wrong. The row below says why: names resolve somewhere other than this Relay. Every red row has a button that takes you to the page where you fix it. Here that is Check DNS: click it once, and you see the result. The notice names the address the wildcard points to, and the one it should be.
Fix the record at your DNS provider with your public address, and check again. Back on the Overview the row is gone, and the word is all fine again. Suppose your router only forwards 28443, with the same number: why does your Relay get no certificate? Before the answer, pause the film and think about it. Let's Encrypt only checks on ports 80 and 443, so those two need a forward.