# Port 80 on the internet, any port on CrushMFT

The question everyone asks: "My CrushMFT listens on 8080 (or 8443). Why does Let's Encrypt want port 80 (or 443)?"

Because the authority **cannot be told a port**. To check that you control `files.example.com`, it calls that name on the internet, from several places at once:

| Way | It always calls |
|---|---|
| Through port 80 (http-01) | port **80**, plain HTTP |
| Through port 443 (tls-alpn-01) | port **443**, TLS |

What happens to that call on your side is up to your network. A router, firewall, cloud security group or load balancer receives it on port 80 or 443 and forwards it to a port of CrushMFT, which may have any number:

```
internet ──▶ files.example.com:80 ──▶ your router / firewall ──▶ CrushMFT HTTP :8080
internet ──▶ files.example.com:443 ─▶ your router / firewall ──▶ CrushMFT HTTPS :8443
```

**You do not choose a port in CrushMFT.** While the check runs, every HTTP port (for port 80's way) and every TLS port (for port 443's way) of every CrushMFT server and DMZ answers it. The order form lists them: "Port 80 on the internet must reach one of these". What must be true is the forward.

## Port 80

- Forward TCP port 80 of your public address to an HTTP port of CrushMFT (or of its DMZ).
- The HTTP port may redirect everything to HTTPS: the check is answered before the redirect.
- Port 80 must stay open: every renewal checks again.
- No HTTP port at all: add one in IP / Servers (any number), or prove the name through port 443 or DNS.

## Port 443

- Forward TCP port 443 to an HTTPS port of CrushMFT (or of its DMZ), unchanged.
- Other clients on that port keep getting the real certificate during the check.
- Works with TLS 1.2 and 1.3.

## A proxy in front

Something in front that **ends TLS itself** (a load balancer with its own certificate, a reverse proxy, Cloudflare's orange cloud) answers port 443 itself: tls-alpn-01 cannot work through it. Use port 80 (let the proxy pass `/.well-known/acme-challenge/` to CrushMFT) or DNS. A balancer that passes TCP through unchanged is fine.

## Another web server answers

"The authority reached a web server for NAME, but not CrushMFT": port 80 of the name goes to another server (a web site, the router's own page, an old forward). Check the forward and that the name points at this address.

## Redirects

The authority follows a redirect only to `http://` on port 80 or `https://` on port 443. A redirect to `https://name:8443/` fails. CrushMFT's own HTTPS redirect is not in the way: the check is answered before it.

## IPv6

The authority tries IPv6 first when the name has an AAAA record. An AAAA record that does not reach CrushMFT (an IPv6 address of the router with no forward) makes the check fail, even when IPv4 works. Remove the AAAA record or forward IPv6 too. The step "The names point here" warns when a name has an IPv6 address.

## Checking a forward

From a machine outside your network: `curl -v http://files.example.com/.well-known/acme-challenge/test` should be answered by CrushMFT (a 404 from CrushMFT is fine; a page of another server or no answer is not).
