Situation
John Smith Ltd has two web services in the LAN that must be reachable from the internet with a name and a valid certificate:
| Site | Public name | Internal service |
|---|---|---|
| Company website | www.johnsmith.test |
web server 192.168.10.40 with WordPress, http on port 80 |
| ERP | erp.johnsmith.test |
192.168.10.41, http on port 8080 |
There is one public address, 203.0.113.10, and one port 443. With a port publication you could forward 443 to one server only, and the certificate would have to be handled by the server itself. The reverse proxy solves both things: the appliance’s web server (nginx) answers on 80 and 443, tells the sites apart by the name requested, terminates TLS with a Let’s Encrypt certificate and forwards the request to the internal service. The internal servers never see the internet directly and can stay on plain http.
What you need
- The First office scenario completed.
- A registered public domain (in the manual
johnsmith.test) and access to the DNS panel of the domain’s provider. - Ports 80 and 443 of the address 203.0.113.10 reachable from the internet: Let’s Encrypt validates the domain on port 80. If there is a provider’s device in front of Argos, it must not filter them.
- No port publication taking TCP 80 or 443 on the WAN zone: the two exclude each other.
- An e-mail address for Let’s Encrypt (here
it@johnsmith.test). - The nginx and certbot packages, installed with Argos. If they are missing, the page says so: “The proxy service is not installed (package nginx): the proxies are saved but not served.”, “The Let’s Encrypt client is not installed (package certbot): only the appliance CA’s certificate can be served.”.
Steps
The public DNS records
-
In the domain provider’s panel create two A records:
www.johnsmith.test. A 203.0.113.10 erp.johnsmith.test. A 203.0.113.10This part is done outside Argos. Wait until the records are visible: in Events and diagnostics → Diagnostics choose “DNS lookup”, type
www.johnsmith.testin “Name” and press “Run”. The answer must be 203.0.113.10. If in DNS and DHCP → Local DNS you have a record with the same name (the example company has one, forwww.johnsmith.test: see step 8), the appliance’s resolver answers with that: in that case choose “Server” “Custom” and type an external DNS server in “Server address”, for example9.9.9.9.
The internal services
- Still in Events and diagnostics → Diagnostics, “TCP port check”: “Host”
192.168.10.40, “Port”80, “Run”; then “Host”192.168.10.41, “Port”8080. Both must answeropen. The proxy connects from there: if the appliance does not reach them, neither do the visitors.
The first site
-
Go to Published services → Reverse proxy and press “Add reverse proxy” (the + button at the top right). In the “Site” section:
- “Name”:
Website(what the proxy is called in the console). - “Internal service”:
http://192.168.10.40. The format ishttp(s)://host[:port], with no path; the appliance itself is not allowed. - “Public names”: type
www.johnsmith.testin the field below the list and press the + button (“Add name”) or Enter. The first name gives the certificate its name; you can add others (up to 20), as long as they all point to the appliance. - “Enabled”: on.
In the “Certificate” section:
- “Certificate”: “Let’s Encrypt”.
- “Let’s Encrypt contact”:
it@johnsmith.test(if the console already uses Let’s Encrypt, the field is offered with its address).
The “Firewall” section holds the list of zones, each with its own switch: ports 80 and 443 open on the interfaces of the zones switched on. For a new proxy WAN is already on. Leave it so.
In the “Options” section leave the values offered: “Pass the Host header” on (the web server sees the public name, as a site with several names expects), “WebSocket” off, “Request buffering” on, timeouts at 0.


Reverse proxy: the company website - “Name”:
-
Press “Create reverse proxy”. “Reverse proxy saved” and “Opening the ports: confirm the firewall apply in the header” appear: it is the first time the WAN zone opens ports 80 and 443, so the page starts the firewall apply by itself. In the “Keep the new ruleset?” dialog press “Confirm” within 60 seconds.
-
After the confirmation the appliance requests the certificate from Let’s Encrypt in the background; it takes up to a few minutes. Meanwhile the site is already served, with a certificate signed by the appliance’s CA, and the list row shows “Waiting for the Let’s Encrypt certificate”. Press “Reload” in the list’s bar after a couple of minutes: the notice disappears once the certificate has arrived.
For the technician The save writes
/etc/nginx/conf.d/argos-proxies.conf(a server on 80 that answers the ACME challenge and redirects to https, and one on 443 that terminates TLS and doesproxy_pass), tests it withnginx -tand reloads nginx; if nginx refuses it, the previous file comes back. The firewall gets, in the WAN zone’s inbound chain, a rule that accepts tcp 80 and 443 for the reverse proxies. The certificate is the certbot lineageargos-proxy-<id>; the renewals are done by the daily check. The internal service receives the requests from the appliance’s LAN address, with the visitor’s real address in theX-Real-IPandX-Forwarded-Forheaders, and with theX-Argos-Reverse-Proxyheader.
The second site
-
Press “Add reverse proxy” again:
- “Name”:
ERP. - “Internal service”:
http://192.168.10.41:8080. - “Public names”:
erp.johnsmith.test. - “Certificate”: “Let’s Encrypt”, “Let’s Encrypt contact”
it@johnsmith.test. - “Firewall” section: WAN zone on.
- “Maximum request body”:
50m. An empty value means the default limit, 1 MB: a larger attachment would be refused. - “WebSocket”: switch it on if the ERP updates its pages in real time (its vendor will tell you).
- “Read timeout (seconds)”: if the ERP generates reports that take minutes, raise it, for example to
300.
Press “Create reverse proxy”. This time ports 80 and 443 of the WAN are already open in the running firewall: no apply is needed, and the Let’s Encrypt certificate is requested at once, during the save. The save can take up to three minutes; at the end “Reverse proxy saved” appears.
- “Name”:
Checking the certificate
-
Select each proxy. In the “Certificate” section, the “Served certificate” box must read “Let’s Encrypt — until” and a date about three months away. Below, in the “Firewall” section, “Ports 80 and 443 are open in the running firewall.” appears.


Reverse proxy: the Let's Encrypt certificate served If it still reads “Appliance CA — until …”, press “Request certificate”: the request starts at once and can take up to three minutes. The button is disabled while the form has unsaved changes, or while the ports are closed in the running firewall.
Optional: the sites from the LAN too
-
The office PCs that open
https://www.johnsmith.test/get 203.0.113.10 from the public DNS and reach the appliance from the LAN. A proxy answers only the clients of the zones on its list: from the LAN the connection is closed without an answer. To serve the offices too, open each proxy, switch on LAN in the zone list of the “Firewall” section and press “Save reverse proxy”. The proxy’s zones have changed: the page starts the firewall apply and you press “Confirm” in the dialog.For a service behind a reverse proxy this is the right way. Local DNS pointing the name at the internal address (see Reaching a published service from inside by its public name) instead takes the LAN straight to the server, without the proxy and without its certificate: for the ERP it does not work, because it answers in http on 8080, not in https on 443.
In the example company
www.johnsmith.testhas a local DNS record pointing to 192.168.10.40 (“Website (split DNS)”): as long as it is there, the offices open the site straight from the web server, in http, and the proxy’s LAN zone is not needed for that name. If you want the site to open in https with the Let’s Encrypt certificate from the LAN too, delete the record in DNS and DHCP → Local DNS and switch on LAN in the proxy.
The web application firewall
Two public sites get, every day, requests from scanners and robots looking for vulnerabilities: passwords tried on wp-login.php, UNION SELECT in the parameters, /.env. The reverse proxy’s web application firewall (WAF) recognises them and refuses them before they reach the servers. It needs behavioural analysis on in Protection → Inspector, which is its default.
-
The company website is a WordPress. Open “Website”: in the “Web application firewall (WAF)” block the “Mode” is already “Block”, as for every new proxy. Set “Application profile” to “WordPress” and press “Save reverse proxy”. The profile lets through what WordPress normally sends: a login with a password full of symbols, a post about SQL, the block editor. The WAF takes the configuration at once, without applying the firewall.


The company website's WAF -
The ERP is software written for the company, and nobody knows for sure what its forms send. Open “ERP”, set “Mode” to “Detection only” and save: the WAF logs what it would refuse and lets it through. For a couple of weeks, look at Events and diagnostics → WAF now and then. The ERP’s “Noticed” rows that come from the company’s addresses are almost always false positives: press “Exclude for this proxy” on the row and confirm. When nothing good shows up for a few days, set “Mode” back to “Block”.
The console and ports 80 and 443
Argos’s console uses 443 too, and nginx tells them apart by name:
- The reverse proxy does not move the console. The proxies’ names go to the proxies; the appliance’s address and the console’s names (
argos,argos.johnsmith.test, the local DNS records pointing to the appliance) go to the console. A proxy cannot use one of the console’s names: the save answers “The console answers to this name (hostname, FQDN or Let’s Encrypt certificate: Settings)”. - From the WAN the console stays closed. On the WAN zone 443 is open for the proxies, but the console answers only where it is switched on in System → Management access: whoever opens
https://203.0.113.10/from the internet gets a refusal (403). To manage it from outside see Managing the console from outside, safely. - The console moves to 8000 only if a port publication takes 443 on a zone where the console answers. A reverse proxy never does that, and Argos refuses a publication on TCP 80 or 443 in a proxy’s zones. If one day it happens some other way, System status → Status says so: “The console answers on port 8000: a publication takes 443 elsewhere on the console’s zones — remove or move the publication and the console moves back to 443”.
Verification
The list of proxies. In Published services → Reverse proxy each row shows the name, the public names, the internal service, “Enabled” and “Let’s Encrypt”, with no yellow warnings.
From the internet (for example from a phone on the mobile network): https://www.johnsmith.test/ and https://erp.johnsmith.test/ open with the padlock, with no warnings; the certificate is issued by Let’s Encrypt for the site’s name. http://www.johnsmith.test/ redirects to https. From a computer outside the company:
curl -I http://www.johnsmith.test/
openssl s_client -connect erp.johnsmith.test:443 -servername erp.johnsmith.test </dev/null | grep -E "subject|issuer"
The first command answers 301 with Location: https://www.johnsmith.test/; the second shows the site’s name in the subject and Let’s Encrypt as the issuer.
The WAF. From a computer outside the company:
curl -s -o /dev/null -w "%{http_code}\n" "https://www.johnsmith.test/?id=1'%20OR%20'1'='1"
answers 403, and a browser on the same address shows “Request blocked”. In Events and diagnostics → WAF the request appears: proxy “Website”, “Blocked”, rule 942100. The site’s normal page answers 200 as before.
In the firewall log. In Events and diagnostics → Firewall, “Show” “Passed” and filter 443: the visits appear with rule zone-wan-in (the connection ends on the appliance), destination 203.0.113.10.
On the internal servers. The web server’s log shows 192.168.10.1, the appliance, as the client. The visitor’s real address is in the X-Real-IP and X-Forwarded-For headers: configure the server to read them if you need them in your statistics.
If something goes wrong
“Saved, but the certificate was not issued; error in the validation phase: check the public DNS names and that port 80 reaches the appliance.” appears. Let’s Encrypt could not validate the name. Check that the A record points to 203.0.113.10 (step 1, with an external DNS server) and that port 80 reaches the appliance from the internet. Once the problem is fixed, open the proxy and press “Request certificate”. Meanwhile the site stays served with the appliance CA’s certificate.
The proxy’s row reads “Ports 80 and 443 are still closed in the running firewall: apply it from the header.”. The apply the page started was not confirmed, and the previous firewall came back. Apply from the header and confirm.
The row reads “Not served by the proxy”. The proxy did not accept the site, or it is not installed. On save, “Saved, but the proxy did not take the site” appears with the reason; the technical detail is in Events and diagnostics → System.
The site answers “502 Bad Gateway”. The proxy does not reach the internal service: server off, wrong address or port, or http and https swapped. Repeat the check of step 2 and check “Internal service”.
The ERP refuses attachments with “413 Request Entity Too Large”. Raise “Maximum request body” (100m, 2g; 0 for no limit).
The ERP’s real-time pages do not update, or long sessions drop after a minute. Switch on “WebSocket” or raise “Read timeout (seconds)”.
The ERP builds wrong addresses (with 192.168.10.41:8080) in its links or redirects. Leave “Pass the Host header” on and set the ERP’s public address in the ERP itself, https://erp.johnsmith.test.
From the LAN the site does not open: the connection closes without an answer. The proxy does not have the LAN zone switched on in the “Firewall” section (step 8).
A page of the site answers “Request blocked”. The WAF refused a request the site must accept (a false positive): a typical example is a WordPress tagline with <html> in it. Open Events and diagnostics → WAF, filter with the site’s name or the address of whoever saw the block, and on the row press “Exclude for this proxy”. For a WordPress site, check first that the proxy has the “WordPress” “Application profile”. If it cannot wait, set the proxy to “Detection only” while you look.
Status says “The WAF is not inspecting: behavioural analysis does not answer, …”. Requests pass unchecked. In System status → Status, in the Services card, look at behavioural analysis and restart it from its menu; if it does not come back, the detail is in Events and diagnostics → System.
Status says “The WAF’s configuration was not applied, the previous one stays: …”. The last change of the WAF was refused by its check, and the previous one runs. The reason is in the message; save the proxy again after correcting it, or ask support.
In Protection → Inspector behavioural analysis does not switch off. The message says “Behavioural analysis cannot be turned off while a reverse proxy’s WAF is on: switch the WAF off first (Published services → Reverse proxy)”: set “Mode” to “Off” in the proxies with their WAF on, then switch behavioural analysis off.
The save is refused.
- “Use http(s)://host[:port] with an IPv4 address or a host name”: no path after the host, no spaces.
- “The appliance itself cannot be proxied”: the internal service points to one of the appliance’s addresses.
- “Another proxy answers this name” or “A name is listed twice”: each public name belongs to one proxy only.
- “A port publication takes TCP 80 or 443 on one of these zones: switch it off or move it”: in Published services → Port publication there is a publication on those ports in the WAN zone.
- “Choose at least one zone”: a proxy without zones opens nothing.
- “The WAF needs behavioural analysis (Protection → Inspector)”: the WAF is on while behavioural analysis is off. Switch it on, or set “Mode” to “Off”.
- “Another request to Let’s Encrypt is running: retry in a minute” or “Another certificate operation is running: retry in a minute”: wait and try again.