Dokwe Proxy
On this page
Dokwe Proxy puts an app that only works inside your office, such as a staff portal on a server called intranet, on the internet at an address like https://staff-portal-proxy.dokwe.com, or on your own domain such as https://portal.yourcompany.com. People outside the office open that address like any website.
A small connector runs on a computer in your office. It connects out to Dokwe over HTTPS on port 443, the same way a browser does, so you don't open any ports on your firewall and nothing in your office listens on the internet. Dokwe receives visitors, applies your access rules, and passes allowed requests to the connector, which fetches the page from your internal server.
Owners and admins of a workspace can create and change proxies. Members can see their status. For an overview of what it's for, see the Dokwe Proxy product page.
Create a proxy#
Open Proxy in the sidebar (under Run) and choose New proxy.
- Name: what your team calls the app.
- Internal address: how the app is opened inside the office, such as
http://intranetorhttp://10.0.0.24:8080. - Your own domain (optional): such as
portal.yourcompany.com. Every proxy gets a Dokwe address,<name>-proxy.dokwe.com, either way, so you can leave this empty and add it later. - Paths to publish: only these are reachable from the internet, such as
/portal. Everything else on the internal server answers "Not found". Use/to publish the whole site.
Protection is on from the start: sign-in attempts are limited, links that point at the internal server are rewritten to the address the visitor used, and fixed files (CSS, scripts, images) are cached by Dokwe. Server admin pages such as phpMyAdmin and server status pages are never published, whatever paths you choose.
Install the connector#
After you create the proxy, Dokwe shows a one-line install command with the connector's token in it. Anyone who has the token can connect this proxy, so keep the command within your IT team. Owners and admins can show it again under Connectors → Add a connector; Dokwe stores the token encrypted.
Run it on a computer in your office that can open the internal address. It needs to stay on.
Windows (PowerShell, run as administrator):
irm https://dokwe.com/api/proxy/install.ps1 | iex; Install-DokweConnector -Token dkp_...macOS and Linux (Linux needs systemd):
curl -fsSL https://dokwe.com/api/proxy/install.sh | sudo bash -s -- --token dkp_...On a Mac, paste it into Terminal and enter your Mac password when asked. It runs as a background service (launchd) that starts with the Mac.
On Windows, Microsoft Defender reports frp, the open-source tunnel the connector runs, as potentially unwanted software, because attackers use it too. The installer allows only the connector's folder, C:\ProgramData\DokweProxy, in Defender and says so as it does it. If your antivirus is managed centrally, or isn't Defender, ask whoever manages it to allow that folder.
The installer downloads the connector (about 12 MB), checks its fingerprint before running it, and installs it as a service that starts with the computer and restarts if it stops. The proxy's page shows the computer as online within a few seconds.
The installer also adds a small helper that checks in with Dokwe over HTTPS every 30 seconds (every minute on Windows). It's what makes Reconnect work, below.
To keep the app reachable when one computer is off, choose Add a connector and run the same command on a second computer. Dokwe spreads requests across every connector that's online, and the computers already connected stay connected.
Go live, then add your own domain#
The proxy's Overview shows two steps until they're done:
- Connector installed.
- Live on its Dokwe address. As soon as the connector is in, Dokwe opens the app through it and serves it on
<name>-proxy.dokwe.comwith HTTPS. Open it on your phone, sign in and try a few pages. The name comes from the proxy's name (a short suffix is added if it's taken), and it never changes.
Your own domain is optional and can be added any time, when you create the proxy or later under Settings. Add the DNS record shown on the Overview where your domain is managed: a CNAME to proxy.dokwe.com, or an A record if your DNS host can't add a CNAME there. Dokwe checks every few minutes, or choose Check now. Once the record is live, Dokwe gets the HTTPS certificate and serves the app on your domain too. The Dokwe address keeps working, so staff can switch over at their own pace.
Adding, changing or removing your own domain never needs the connector reinstalled.
Access rules#
The Access rules tab sets what is published and how it's protected:
| Setting | What it does |
|---|---|
| Published paths | The only paths that reach your internal server. |
| Sign-in pages | Pages that get the strict limit: 10 attempts a minute per visitor. |
| Start page | Where / sends visitors, such as /portal/. |
| Limit all requests | 20 requests a second per visitor, so one visitor can't slow the app for everyone. |
| Fix internal links | Rewrites links to the internal server inside pages, scripts and styles. |
| Cache fixed files | CSS, scripts and images are kept at Dokwe for an hour, so they cross your office connection less. |
| Require HTTPS for a year (HSTS) | Turn on once the address is settled. |
Changes take effect within seconds and don't need the connector reinstalled. Changing the internal address does: the Connectors tab marks connectors that need the install command run again.
Microsoft sign-in#
Turn on Require Microsoft sign-in at the top of Access rules and nobody reaches your app until they've signed in with their work Microsoft account. Visitors go straight to Microsoft's sign-in page, which shows your organisation's logo, then come back to the page they asked for and see your app's own sign-in as usual. Microsoft asks for MFA according to your organisation's rules.
You use your own app registration in Microsoft Entra, so your IT team stays in control of it. Setting it up takes about ten minutes:
- In the Microsoft Entra admin centre, open App registrations and choose New registration.
- Name it after the portal, for example "Staff portal (Dokwe)". Under Supported account types, choose Accounts in this organizational directory only (Single tenant).
- Under Redirect URI, choose Web and paste the address Dokwe shows on the Access rules card, such as
https://staff-portal-proxy.dokwe.com/.dokwe/auth/callback. If the proxy has your own domain too, add its address under Authentication after registering. Then choose Register. - On the registration's Overview page, copy the Application (client) ID and the Directory (tenant) ID into Dokwe.
- Under Certificates & secrets, choose New client secret and pick when it expires. Copy its Value (not its Secret ID) into Dokwe straight away: Microsoft only shows it once.
- Under API permissions, choose Grant admin consent so staff aren't asked to approve the app themselves.
- In Dokwe, choose Test sign-in. A new tab goes through the Microsoft sign-in with these values and says whether it worked. Nothing changes for visitors until you choose Save changes.
Who gets in. By default, everyone with a work account in your organisation. Guests invited from other organisations can't sign in. To limit it further, either:
- choose Only members of these groups and paste the groups' object IDs. The registration must send groups in its tokens: under Token configuration, choose Add groups claim, tick Security groups and, under ID, choose Group ID. Accounts in more than 200 groups can't be checked this way, so for large organisations use the next option instead; or
- keep Everyone in your Microsoft organisation and let Microsoft decide: in Enterprise applications, open the app, set Assignment required to Yes under Properties, and add the people or groups under Users and groups. Microsoft then refuses everyone else before they reach Dokwe.
Requiring MFA. Microsoft decides when to ask for MFA. To require it every time someone opens this portal, create a Conditional Access policy that targets the app and grants access only with multifactor authentication. Conditional Access needs Microsoft Entra ID P1, which Microsoft 365 Business Premium, E3 and E5 include. Without it, turning on security defaults makes Microsoft ask everyone for MFA.
Staying signed in. People stay signed in for the time you choose (8 hours by default) on each address. Sign everyone out on the card ends every session at once, for example after someone leaves. Paths without Microsoft sign-in stay open for parts that apps or devices call without a browser; everything else needs sign-in.
When the secret expires. Microsoft client secrets expire. When Microsoft starts refusing it, visitors see that sign-in isn't working, and owners, admins and your alert addresses get an email. Make a new secret in Entra, then choose Replace secret on the card.
The Logs tab shows which Microsoft account made each request.
Test copy#
Try a change before visitors get it. On the proxy's page, choose Make a test copy. The copy starts with the same access rules and Microsoft sign-in settings, at its own address: <name>-test-proxy.dokwe.com. It reaches your app through the live proxy's connectors, so there's nothing to install, and visitors to the live address see no change.
Switch between them with Live and Test copy at the top of the proxy's page. On the copy, change the access rules or Microsoft sign-in and try them at the copy's address. Its Overview lists what differs from live, and its Logs show only its own requests.
When it works, choose Apply to live. Dokwe lists each setting that will change, then gives the live proxy those settings within a few seconds. The copy stays, matching live, ready for the next change. Delete test copy removes it and its logs; the live proxy isn't affected.
A few things to know:
- Each proxy has one test copy.
- The copy can't try a different internal server or port, because it uses the live proxy's connectors. Change those on the live proxy, and the copy follows.
- Testing Microsoft sign-in on the copy needs the copy's address on the app registration as a redirect URI. Before applying, make sure the live addresses are there too, or nobody can sign in to the live proxy.
- The copy doesn't send down alerts: the live proxy's alerts already cover the connectors they share.
What your app sees#
Requests reach your app as if they came from inside the office, so it needs no changes. If your app or framework reads request headers, this is what it gets:
| Header | Value |
|---|---|
Host | The internal address, such as intranet or 10.0.0.24:8080 |
X-Real-IP | The visitor's IP address |
X-Forwarded-For | The visitor's IP address, then Dokwe's |
X-Forwarded-Proto | https: visitors always arrive over HTTPS |
X-Forwarded-Host | The proxy's Dokwe address, even when the visitor used your own domain |
Links and redirects your app builds from the internal address or the Dokwe address are rewritten to the address the visitor used, as long as Fix internal links is on (it is by default).
Monitoring and alerts#
Dokwe checks each proxy through the tunnel every 30 seconds. If it can't reach the app three times in a row, workspace owners and admins, and any addresses you add under Settings, get an email and a push notification saying why: the connector is offline, or the connector is online but the internal server isn't answering. A second message follows when it's back.
The Overview shows uptime over the last 7 days, requests and visitors today, the median page load and how much was served from Dokwe's cache. The Logs tab lists recent requests with their status, time and country, and marks the ones Dokwe blocked.
Dokwe keeps request logs for 30 days. They hold the time, method, path, status, response time, the size each way, IP address and country. Query strings, request bodies, cookies and form data are never stored.
Usage and forecast#
The Usage tab shows what a proxy has served over 7 days, 30 days, 90 days or 12 months:
- requests, people signed in, data sent and received, page load and errors;
- requests per day, the busiest hours of the week (in your own time zone) and the top pages.
Dokwe adds up each day's requests and keeps those daily totals for 2 years, so the tab goes back further than the 30-day request log. Signed-in people are counted from a short fingerprint of each account, not the address itself.
Next 12 months forecasts requests, data sent, the busiest minute, people signed in and page load at the busiest hour. It sums days into weeks, fits the trend and shows a likely range around it. The range is wide while history is short and narrows as it builds up. The forecast starts after 14 days and is marked Early estimate for the first 90. After a year it also repeats last year's busy and quiet weeks.
What it will demand puts those numbers 3, 6 and 12 months out, including the bandwidth the connector's link needs at the busiest minute. If page load at the busiest hour is climbing, the tab says when it would pass 2 seconds. Page load is measured at Dokwe's edge, so it includes the office link and the app itself. Dokwe can't see CPU, memory or disk on the internal server.
Printable report opens the same figures on one page; your browser can save it as a PDF.
Reconnecting after an outage#
The connector keeps retrying by itself when the office connection drops. After a long outage, or when a laptop wakes from sleep, it can stay stuck on a connection that's gone. Two things bring it back:
- Automatically. If a connector has been offline for more than 2 minutes but its computer is reaching Dokwe again, Dokwe restarts it. It tries again every 5 minutes until the connector is back.
- Reconnect. Owners and admins can open Connectors and choose Reconnect next to an offline computer. The connector restarts the next time the computer checks in: within 30 seconds if it's online, or as soon as its network is back.
If the page says a computer isn't reaching Dokwe, the problem is on that computer: check that it's on and connected to the internet. Connectors installed before Reconnect existed show Needs the install command again; run it once on that computer.
Tokens#
If a token may have leaked, open Connectors and choose Make a new token. Connectors using the old token are disconnected within 30 seconds; run the new install command on each computer.
Transferring a proxy#
Owners and admins can move a proxy to another workspace from Settings → Transfer this proxy:
- To one of my workspaces moves it straight away, into a workspace where you're also an owner or admin.
- To someone else emails them a link. They sign in with that address, pick one of their workspaces and accept. The link lasts 72 hours, and you can cancel it until then.
The proxy keeps its Dokwe address and your own domain, and keeps serving while it moves. Connectors keep running: they connect with the proxy's token, so nothing is reinstalled. Its access rules, Microsoft sign-in, test copy, request logs and usage history move with it. The Also send alerts to addresses are cleared, so the new workspace's owners and admins get its alerts, and the sign-in page shows the new workspace's name.
A transfer is refused when the receiving workspace's plan has no room for another app or for the proxy's connector machines. Both workspaces' audit logs record it. A test copy can't be moved on its own; it goes with its live proxy.
Removing a proxy#
Settings → Delete proxy stops publishing the app immediately and deletes its request logs and usage history. The connector on your computer keeps trying to connect until you remove it. The delete dialog shows the command for this; it needs no token, so it also works after the proxy is gone. Run it on each computer the connector is installed on:
- Windows (PowerShell as administrator):
irm https://dokwe.com/api/proxy/uninstall.ps1 | iex; Uninstall-DokweConnector -Proxy <name> - macOS and Linux:
curl -fsSL https://dokwe.com/api/proxy/uninstall.sh | sudo bash -s -- --proxy <name>
<name> is the proxy's name on the edge, the first part of its Dokwe address; the dialog fills it in. If the computer's connector belongs to a different proxy, the command says so and removes nothing. It removes the services or scheduled tasks, the connector and helper, their settings and logs, and on Windows the Defender exclusion.